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
f778af68
Commit
f778af68
authored
Jun 20, 2018
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: git_remote_create_anonymous
parent
fa69195e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
tests/remote/create.c
+21
-0
No files found.
tests/remote/create.c
View file @
f778af68
...
...
@@ -125,3 +125,24 @@ void test_remote_create__with_fetchspec_invalid_url(void)
{
cl_git_assert_cannot_create_remote
(
GIT_EINVALIDSPEC
,
git_remote_create_with_fetchspec
(
&
r
,
_repo
,
NULL
,
""
,
NULL
));
}
void
test_remote_create__anonymous
(
void
)
{
git_remote
*
remote
;
git_strarray
array
;
cl_git_pass
(
git_remote_create_anonymous
(
&
remote
,
_repo
,
TEST_URL
));
cl_assert_equal_s
(
git_remote_name
(
remote
),
NULL
);
cl_assert_equal_s
(
git_remote_url
(
remote
),
TEST_URL
);
cl_git_pass
(
git_remote_get_fetch_refspecs
(
&
array
,
remote
));
cl_assert_equal_i
(
0
,
array
.
count
);
git_strarray_free
(
&
array
);
git_remote_free
(
remote
);
}
void
test_remote_create__anonymous_invalid_url
(
void
)
{
cl_git_assert_cannot_create_remote
(
GIT_EINVALIDSPEC
,
git_remote_create_anonymous
(
&
r
,
_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