Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
f36fb761
Commit
f36fb761
authored
Oct 20, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: more git_repository_head_detached() coverage
parent
c436ed26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tests-clar/repo/head.c
+9
-0
No files found.
tests-clar/repo/head.c
View file @
f36fb761
...
...
@@ -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
));
}
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
));
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment