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
498d0801
Commit
498d0801
authored
Jul 22, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: use a `size_t`
parent
60e15ecd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
tests/iterator/iterator_helpers.c
+4
-6
tests/iterator/iterator_helpers.h
+2
-2
No files found.
tests/iterator/iterator_helpers.c
View file @
498d0801
...
@@ -18,18 +18,16 @@ static void assert_at_end(git_iterator *i, bool verbose)
...
@@ -18,18 +18,16 @@ static void assert_at_end(git_iterator *i, bool verbose)
void
expect_iterator_items
(
void
expect_iterator_items
(
git_iterator
*
i
,
git_iterator
*
i
,
in
t
expected_flat
,
size_
t
expected_flat
,
const
char
**
expected_flat_paths
,
const
char
**
expected_flat_paths
,
in
t
expected_total
,
size_
t
expected_total
,
const
char
**
expected_total_paths
)
const
char
**
expected_total_paths
)
{
{
const
git_index_entry
*
entry
;
const
git_index_entry
*
entry
;
int
count
,
error
;
size_t
count
;
int
no_trees
=
!
(
git_iterator_flags
(
i
)
&
GIT_ITERATOR_INCLUDE_TREES
);
int
no_trees
=
!
(
git_iterator_flags
(
i
)
&
GIT_ITERATOR_INCLUDE_TREES
);
bool
v
=
false
;
bool
v
=
false
;
int
error
;
if
(
expected_flat
<
0
)
{
v
=
true
;
expected_flat
=
-
expected_flat
;
}
if
(
expected_total
<
0
)
{
v
=
true
;
expected_total
=
-
expected_total
;
}
if
(
v
)
fprintf
(
stderr
,
"== %s ==
\n
"
,
no_trees
?
"notrees"
:
"trees"
);
if
(
v
)
fprintf
(
stderr
,
"== %s ==
\n
"
,
no_trees
?
"notrees"
:
"trees"
);
...
...
tests/iterator/iterator_helpers.h
View file @
498d0801
extern
void
expect_iterator_items
(
extern
void
expect_iterator_items
(
git_iterator
*
i
,
git_iterator
*
i
,
in
t
expected_flat
,
size_
t
expected_flat
,
const
char
**
expected_flat_paths
,
const
char
**
expected_flat_paths
,
in
t
expected_total
,
size_
t
expected_total
,
const
char
**
expected_total_paths
);
const
char
**
expected_total_paths
);
extern
void
expect_advance_over
(
extern
void
expect_advance_over
(
...
...
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