diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-14 00:30:33 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-14 00:30:33 +0000 |
commit | dca7dc77cdc0ce8b2b1fc440a2a45011b58ba112 (patch) | |
tree | a805bb97d618bd51e43cb1520b62911784cfba9a /t/import.t | |
parent | f5ca5437df27c558b1f2672014ecf43adf3ca2f0 (diff) | |
download | public-inbox-dca7dc77cdc0ce8b2b1fc440a2a45011b58ba112.tar.gz |
Wrap "get-mark" and "checkpoint" commands for git-fast-import while documenting/cementing parts of the API.
Diffstat (limited to 't/import.t')
-rw-r--r-- | t/import.t | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -87,6 +87,8 @@ isnt($msg->header('Subject'), $mime->header('Subject'), 'subject mismatch'); $mime->header_set('Message-Id', '<failcheck@example.com>'); is($im->add($mime, sub { undef }), undef, 'check callback fails'); is($im->remove($mime), undef, 'message not added, so not removed'); - +is(undef, $im->checkpoint, 'checkpoint works before ->done'); $im->done; +is(undef, $im->checkpoint, 'checkpoint works after ->done'); +$im->checkpoint; done_testing(); |