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
5b071115
Commit
5b071115
authored
Jul 04, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add test commit with angle brackets in the author name
parent
111ee3fe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
8 deletions
+9
-8
tests-clar/network/remotelocal.c
+2
-2
tests-clar/refs/branches/foreach.c
+2
-2
tests-clar/refs/foreachglob.c
+2
-2
tests-clar/resources/testrepo.git/objects/1b/8cbad43e867676df601306689fe7c3def5e689
+0
-0
tests-clar/resources/testrepo.git/objects/25/8f0e2a959a364e40ed6603d5d44fbb24765b10
+0
-0
tests-clar/resources/testrepo.git/refs/heads/haacked
+1
-0
tests-clar/revwalk/basic.c
+2
-2
No files found.
tests-clar/network/remotelocal.c
View file @
5b071115
...
...
@@ -107,7 +107,7 @@ void test_network_remotelocal__retrieve_advertised_references(void)
cl_git_pass
(
git_remote_ls
(
remote
,
&
count_ref__cb
,
&
how_many_refs
));
cl_assert_equal_i
(
how_many_refs
,
2
1
);
cl_assert_equal_i
(
how_many_refs
,
2
2
);
}
void
test_network_remotelocal__retrieve_advertised_references_from_spaced_repository
(
void
)
...
...
@@ -121,7 +121,7 @@ void test_network_remotelocal__retrieve_advertised_references_from_spaced_reposi
cl_git_pass
(
git_remote_ls
(
remote
,
&
count_ref__cb
,
&
how_many_refs
));
cl_assert_equal_i
(
how_many_refs
,
2
1
);
cl_assert_equal_i
(
how_many_refs
,
2
2
);
git_remote_free
(
remote
);
/* Disconnect from the "spaced repo" before the cleanup */
remote
=
NULL
;
...
...
tests-clar/refs/branches/foreach.c
View file @
5b071115
...
...
@@ -48,7 +48,7 @@ static void assert_retrieval(unsigned int flags, unsigned int expected_count)
void
test_refs_branches_foreach__retrieve_all_branches
(
void
)
{
assert_retrieval
(
GIT_BRANCH_LOCAL
|
GIT_BRANCH_REMOTE
,
9
);
assert_retrieval
(
GIT_BRANCH_LOCAL
|
GIT_BRANCH_REMOTE
,
10
);
}
void
test_refs_branches_foreach__retrieve_remote_branches
(
void
)
...
...
@@ -58,7 +58,7 @@ void test_refs_branches_foreach__retrieve_remote_branches(void)
void
test_refs_branches_foreach__retrieve_local_branches
(
void
)
{
assert_retrieval
(
GIT_BRANCH_LOCAL
,
7
);
assert_retrieval
(
GIT_BRANCH_LOCAL
,
8
);
}
struct
expectations
{
...
...
tests-clar/refs/foreachglob.c
View file @
5b071115
...
...
@@ -46,7 +46,7 @@ static void assert_retrieval(const char *glob, unsigned int flags, int expected_
void
test_refs_foreachglob__retrieve_all_refs
(
void
)
{
/* 7 heads (including one packed head) + 1 note + 2 remotes + 6 tags */
assert_retrieval
(
"*"
,
GIT_REF_LISTALL
,
1
6
);
assert_retrieval
(
"*"
,
GIT_REF_LISTALL
,
1
7
);
}
void
test_refs_foreachglob__retrieve_remote_branches
(
void
)
...
...
@@ -56,7 +56,7 @@ void test_refs_foreachglob__retrieve_remote_branches(void)
void
test_refs_foreachglob__retrieve_local_branches
(
void
)
{
assert_retrieval
(
"refs/heads/*"
,
GIT_REF_LISTALL
,
7
);
assert_retrieval
(
"refs/heads/*"
,
GIT_REF_LISTALL
,
8
);
}
void
test_refs_foreachglob__retrieve_partially_named_references
(
void
)
...
...
tests-clar/resources/testrepo.git/objects/1b/8cbad43e867676df601306689fe7c3def5e689
0 → 100644
View file @
5b071115
File added
tests-clar/resources/testrepo.git/objects/25/8f0e2a959a364e40ed6603d5d44fbb24765b10
0 → 100644
View file @
5b071115
File added
tests-clar/resources/testrepo.git/refs/heads/haacked
0 → 100644
View file @
5b071115
258f0e2a959a364e40ed6603d5d44fbb24765b10
tests-clar/revwalk/basic.c
View file @
5b071115
...
...
@@ -129,8 +129,8 @@ void test_revwalk_basic__glob_heads(void)
i
++
;
}
/* git log --branches --oneline | wc -l => 1
3
*/
cl_assert
(
i
==
1
3
);
/* git log --branches --oneline | wc -l => 1
4
*/
cl_assert
(
i
==
1
4
);
}
void
test_revwalk_basic__push_head
(
void
)
...
...
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