diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-05 08:42:38 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-05 08:49:07 +0100 |
| commit | cad7a1bad40c302fef02306708f6ce6279680cb4 (patch) | |
| tree | bd0a157bfa20c9a3c7ccf7f9d3058944732d8145 /tests/refs/reflog | |
| parent | f7250cc36a77e45c5a46c911548b6bd23b613411 (diff) | |
| download | libgit2-cad7a1bad40c302fef02306708f6ce6279680cb4.tar.gz | |
clar: include the function nameethomson/clar_tap
Diffstat (limited to 'tests/refs/reflog')
| -rw-r--r-- | tests/refs/reflog/reflog_helpers.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/refs/reflog/reflog_helpers.c b/tests/refs/reflog/reflog_helpers.c index 6eba8ecf9..aecb78b02 100644 --- a/tests/refs/reflog/reflog_helpers.c +++ b/tests/refs/reflog/reflog_helpers.c @@ -29,7 +29,8 @@ size_t reflog_entrycount(git_repository *repo, const char *name) void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx, const char *old_spec, const char *new_spec, - const char *email, const char *message, const char *file, int line) + const char *email, const char *message, + const char *file, const char *func, int line) { git_reflog *log; const git_reflog_entry *entry; @@ -38,7 +39,7 @@ void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx cl_git_pass(git_reflog_read(&log, repo, reflog)); entry = git_reflog_entry_byindex(log, idx); if (entry == NULL) - clar__fail(file, line, "Reflog has no such entry", NULL, 1); + clar__fail(file, func, line, "Reflog has no such entry", NULL, 1); if (old_spec) { git_object *obj = NULL; @@ -92,7 +93,7 @@ void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx git_buf_printf(&result, "\tMessage: \"%s\" != \"%s\"\n", message, entry_msg); } if (git_buf_len(&result) != 0) - clar__fail(file, line, "Reflog entry mismatch", git_buf_cstr(&result), 1); + clar__fail(file, func, line, "Reflog entry mismatch", git_buf_cstr(&result), 1); git_buf_dispose(&result); git_reflog_free(log); |
