mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-05 18:32:58 +00:00
tests: more git_repository_head_detached() coverage
This commit is contained in:
parent
c436ed26e0
commit
f36fb761dc
@ -177,3 +177,12 @@ void test_repo_head__retrieving_an_orphaned_head_returns_GIT_EORPHANEDHEAD(void)
|
|||||||
|
|
||||||
cl_assert_equal_i(GIT_EORPHANEDHEAD, git_repository_head(&head, repo));
|
cl_assert_equal_i(GIT_EORPHANEDHEAD, git_repository_head(&head, repo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test_repo_head__can_tell_if_an_orphaned_head_is_detached(void)
|
||||||
|
{
|
||||||
|
git_reference *head;
|
||||||
|
|
||||||
|
make_head_orphaned(repo, NON_EXISTING_HEAD);
|
||||||
|
|
||||||
|
cl_assert_equal_i(false, git_repository_head_detached(repo));
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user