summaryrefslogtreecommitdiff
path: root/tests/libgit2/iterator/iterator_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libgit2/iterator/iterator_helpers.h')
-rw-r--r--tests/libgit2/iterator/iterator_helpers.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/libgit2/iterator/iterator_helpers.h b/tests/libgit2/iterator/iterator_helpers.h
new file mode 100644
index 000000000..1884b41a1
--- /dev/null
+++ b/tests/libgit2/iterator/iterator_helpers.h
@@ -0,0 +1,16 @@
+
+extern void expect_iterator_items(
+ git_iterator *i,
+ size_t expected_flat,
+ const char **expected_flat_paths,
+ size_t expected_total,
+ const char **expected_total_paths);
+
+extern void expect_advance_over(
+ git_iterator *i,
+ const char *expected_path,
+ git_iterator_status_t expected_status);
+
+void expect_advance_into(
+ git_iterator *i,
+ const char *expected_path);