summaryrefslogtreecommitdiff
path: root/tests/libgit2/blame/blame_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libgit2/blame/blame_helpers.h')
-rw-r--r--tests/libgit2/blame/blame_helpers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/libgit2/blame/blame_helpers.h b/tests/libgit2/blame/blame_helpers.h
new file mode 100644
index 000000000..5b34b4aef
--- /dev/null
+++ b/tests/libgit2/blame/blame_helpers.h
@@ -0,0 +1,14 @@
+#include "clar_libgit2.h"
+#include "blame.h"
+
+void hunk_message(size_t idx, const git_blame_hunk *hunk, const char *fmt, ...) GIT_FORMAT_PRINTF(3, 4);
+
+void check_blame_hunk_index(
+ git_repository *repo,
+ git_blame *blame,
+ int idx,
+ size_t start_line,
+ size_t len,
+ char boundary,
+ const char *commit_id,
+ const char *orig_path);