diff options
Diffstat (limited to 'tests/refs/read.c')
-rw-r--r-- | tests/refs/read.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/refs/read.c b/tests/refs/read.c index 5a1f554f0..1bbc38766 100644 --- a/tests/refs/read.c +++ b/tests/refs/read.c @@ -34,7 +34,7 @@ void test_refs_read__loose_tag(void) git_buf ref_name_from_tag_name = GIT_BUF_INIT; cl_git_pass(git_reference_lookup(&reference, g_repo, loose_tag_ref_name)); - cl_assert(git_reference_type(reference) & GIT_REF_OID); + cl_assert(git_reference_type(reference) & GIT_REFERENCE_DIRECT); cl_assert(reference_is_packed(reference) == 0); cl_assert_equal_s(reference->name, loose_tag_ref_name); @@ -71,12 +71,12 @@ void test_refs_read__symbolic(void) git_oid id; cl_git_pass(git_reference_lookup(&reference, g_repo, GIT_HEAD_FILE)); - cl_assert(git_reference_type(reference) & GIT_REF_SYMBOLIC); + cl_assert(git_reference_type(reference) & GIT_REFERENCE_SYMBOLIC); cl_assert(reference_is_packed(reference) == 0); cl_assert_equal_s(reference->name, GIT_HEAD_FILE); cl_git_pass(git_reference_resolve(&resolved_ref, reference)); - cl_assert(git_reference_type(resolved_ref) == GIT_REF_OID); + cl_assert(git_reference_type(resolved_ref) == GIT_REFERENCE_DIRECT); cl_git_pass(git_object_lookup(&object, g_repo, git_reference_target(resolved_ref), GIT_OBJECT_ANY)); cl_assert(object != NULL); @@ -99,12 +99,12 @@ void test_refs_read__nested_symbolic(void) git_oid id; cl_git_pass(git_reference_lookup(&reference, g_repo, head_tracker_sym_ref_name)); - cl_assert(git_reference_type(reference) & GIT_REF_SYMBOLIC); + cl_assert(git_reference_type(reference) & GIT_REFERENCE_SYMBOLIC); cl_assert(reference_is_packed(reference) == 0); cl_assert_equal_s(reference->name, head_tracker_sym_ref_name); cl_git_pass(git_reference_resolve(&resolved_ref, reference)); - cl_assert(git_reference_type(resolved_ref) == GIT_REF_OID); + cl_assert(git_reference_type(resolved_ref) == GIT_REFERENCE_DIRECT); cl_git_pass(git_object_lookup(&object, g_repo, git_reference_target(resolved_ref), GIT_OBJECT_ANY)); cl_assert(object != NULL); @@ -167,7 +167,7 @@ void test_refs_read__packed(void) git_object *object; cl_git_pass(git_reference_lookup(&reference, g_repo, packed_head_name)); - cl_assert(git_reference_type(reference) & GIT_REF_OID); + cl_assert(git_reference_type(reference) & GIT_REFERENCE_DIRECT); cl_assert(reference_is_packed(reference)); cl_assert_equal_s(reference->name, packed_head_name); @@ -188,7 +188,7 @@ void test_refs_read__loose_first(void) cl_git_pass(git_reference_lookup(&reference, g_repo, packed_head_name)); git_reference_free(reference); cl_git_pass(git_reference_lookup(&reference, g_repo, packed_test_head_name)); - cl_assert(git_reference_type(reference) & GIT_REF_OID); + cl_assert(git_reference_type(reference) & GIT_REFERENCE_DIRECT); cl_assert(reference_is_packed(reference) == 0); cl_assert_equal_s(reference->name, packed_test_head_name); |