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
e4aa7f58
Commit
e4aa7f58
authored
Nov 12, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs: cover git_reference_name_to_oid() unfound behavior
parent
80d9d1df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests-clar/refs/read.c
+4
-0
No files found.
tests-clar/refs/read.c
View file @
e4aa7f58
...
...
@@ -223,6 +223,7 @@ void test_refs_read__trailing(void)
void
test_refs_read__unfound_return_ENOTFOUND
(
void
)
{
git_reference
*
reference
;
git_oid
id
;
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_reference_lookup
(
&
reference
,
g_repo
,
"TEST_MASTER"
));
...
...
@@ -232,6 +233,9 @@ void test_refs_read__unfound_return_ENOTFOUND(void)
git_reference_lookup
(
&
reference
,
g_repo
,
"refs/tags/test/master"
));
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_reference_lookup
(
&
reference
,
g_repo
,
"refs/tags/test/farther/master"
));
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_reference_name_to_id
(
&
id
,
g_repo
,
"refs/tags/test/farther/master"
));
}
static
void
assert_is_branch
(
const
char
*
name
,
bool
expected_branchness
)
...
...
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