about summary refs log tree commit homepage
path: root/t/import.t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-14 00:30:33 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-14 00:30:33 +0000
commitdca7dc77cdc0ce8b2b1fc440a2a45011b58ba112 (patch)
treea805bb97d618bd51e43cb1520b62911784cfba9a /t/import.t
parentf5ca5437df27c558b1f2672014ecf43adf3ca2f0 (diff)
downloadpublic-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.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/import.t b/t/import.t
index 92c82b99..ca597720 100644
--- a/t/import.t
+++ b/t/import.t
@@ -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();