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
f0fa1c1a
Commit
f0fa1c1a
authored
Feb 27, 2012
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add revwalk glob test
parent
155aca2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tests-clar/revwalk/basic.c
+15
-0
No files found.
tests-clar/revwalk/basic.c
View file @
f0fa1c1a
...
...
@@ -117,3 +117,18 @@ void test_revwalk_basic__sorting_modes(void)
cl_git_pass
(
test_walk
(
_walk
,
&
id
,
GIT_SORT_TIME
|
GIT_SORT_REVERSE
,
commit_sorting_time_reverse
,
1
));
cl_git_pass
(
test_walk
(
_walk
,
&
id
,
GIT_SORT_TOPOLOGICAL
|
GIT_SORT_REVERSE
,
commit_sorting_topo_reverse
,
2
));
}
void
test_revwalk_basic__glob_heads
(
void
)
{
int
i
=
0
;
git_oid
oid
;
cl_git_pass
(
git_revwalk_push_glob
(
_walk
,
"heads"
));
while
(
git_revwalk_next
(
&
oid
,
_walk
)
==
GIT_SUCCESS
)
{
i
++
;
}
/* git log --branches --oneline | wc -l => 13 */
cl_assert
(
i
==
13
);
}
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