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
48ce97dd
Commit
48ce97dd
authored
May 13, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branch: cover with test that moving a non existing branch returns ENOTFOUND
parent
b72969e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests-clar/refs/branches/move.c
+10
-0
No files found.
tests-clar/refs/branches/move.c
View file @
48ce97dd
...
@@ -60,3 +60,13 @@ void test_refs_branches_move__can_not_move_a_branch_through_its_canonical_name(v
...
@@ -60,3 +60,13 @@ void test_refs_branches_move__can_not_move_a_branch_through_its_canonical_name(v
{
{
cl_git_fail
(
git_branch_move
(
repo
,
"refs/heads/br2"
,
NEW_BRANCH_NAME
,
1
));
cl_git_fail
(
git_branch_move
(
repo
,
"refs/heads/br2"
,
NEW_BRANCH_NAME
,
1
));
}
}
void
test_refs_branches_move__moving_a_non_exisiting_branch_returns_ENOTFOUND
(
void
)
{
int
error
;
error
=
git_branch_move
(
repo
,
"where/am/I"
,
NEW_BRANCH_NAME
,
0
);
cl_git_fail
(
error
);
cl_assert_equal_i
(
GIT_ENOTFOUND
,
error
);
}
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