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/submodule/submodule_helpers.c | |
parent | f7250cc36a77e45c5a46c911548b6bd23b613411 (diff) | |
download | libgit2-ethomson/clar_tap.tar.gz |
clar: include the function nameethomson/clar_tap
Diffstat (limited to 'tests/submodule/submodule_helpers.c')
-rw-r--r-- | tests/submodule/submodule_helpers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/submodule/submodule_helpers.c b/tests/submodule/submodule_helpers.c index 4bb064899..1d4759616 100644 --- a/tests/submodule/submodule_helpers.c +++ b/tests/submodule/submodule_helpers.c @@ -199,22 +199,22 @@ git_repository *setup_fixture_submodule_with_path(void) void assert__submodule_exists( git_repository *repo, const char *name, - const char *msg, const char *file, int line) + const char *msg, const char *file, const char *func, int line) { git_submodule *sm; int error = git_submodule_lookup(&sm, repo, name); if (error) - cl_git_report_failure(error, 0, file, line, msg); - cl_assert_at_line(sm != NULL, file, line); + cl_git_report_failure(error, 0, file, func, line, msg); + cl_assert_at_line(sm != NULL, file, func, line); git_submodule_free(sm); } void refute__submodule_exists( git_repository *repo, const char *name, int expected_error, - const char *msg, const char *file, int line) + const char *msg, const char *file, const char *func, int line) { clar__assert_equal( - file, line, msg, 1, "%i", + file, func, line, msg, 1, "%i", expected_error, (int)(git_submodule_lookup(NULL, repo, name))); } |