summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-23 12:25:03 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-06-14 22:29:57 -0400
commitb7a46fa8505f6b1d9a4c0a844b6e8f91522257bf (patch)
treea6ac9dc74da1d73dc00fec6b88fd73f5b16c4d9e /tests
parentc43601160b6ecc66db4a26c784bbe62624305474 (diff)
downloadlibgit2-b7a46fa8505f6b1d9a4c0a844b6e8f91522257bf.tar.gz
object: move oid header parsing to object
Diffstat (limited to 'tests')
-rw-r--r--tests/libgit2/commit/parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/libgit2/commit/parse.c b/tests/libgit2/commit/parse.c
index 04366d7d2..653ed086a 100644
--- a/tests/libgit2/commit/parse.c
+++ b/tests/libgit2/commit/parse.c
@@ -56,7 +56,8 @@ void test_commit_parse__header(void)
const char *line = testcase->line;
const char *line_end = line + strlen(line);
- cl_git_pass(git_oid__parse(&oid, &line, line_end, testcase->header));
+ cl_git_pass(git_object__parse_oid_header(&oid,
+ &line, line_end, testcase->header));
cl_assert(line == line_end);
}
@@ -65,7 +66,8 @@ void test_commit_parse__header(void)
const char *line = testcase->line;
const char *line_end = line + strlen(line);
- cl_git_fail(git_oid__parse(&oid, &line, line_end, testcase->header));
+ cl_git_fail(git_object__parse_oid_header(&oid,
+ &line, line_end, testcase->header));
}
}