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
afdf8dcb
Commit
afdf8dcb
authored
Sep 17, 2011
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some forgotten asserts in the status tests
parent
8320001d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/t18-status.c
+4
-4
No files found.
tests/t18-status.c
View file @
afdf8dcb
...
@@ -144,7 +144,7 @@ BEGIN_TEST(statuscb0, "test retrieving status for worktree of repository")
...
@@ -144,7 +144,7 @@ BEGIN_TEST(statuscb0, "test retrieving status for worktree of repository")
counts
.
expected_paths
=
entry_paths0
;
counts
.
expected_paths
=
entry_paths0
;
counts
.
expected_statuses
=
entry_statuses0
;
counts
.
expected_statuses
=
entry_statuses0
;
git_status_foreach
(
repo
,
status_cb
,
&
counts
);
must_pass
(
git_status_foreach
(
repo
,
status_cb
,
&
counts
)
);
must_be_true
(
counts
.
entry_count
==
counts
.
expected_entry_count
);
must_be_true
(
counts
.
entry_count
==
counts
.
expected_entry_count
);
must_be_true
(
counts
.
wrong_status_flags_count
==
0
);
must_be_true
(
counts
.
wrong_status_flags_count
==
0
);
must_be_true
(
counts
.
wrong_sorted_path
==
0
);
must_be_true
(
counts
.
wrong_sorted_path
==
0
);
...
@@ -174,7 +174,7 @@ BEGIN_TEST(statuscb1, "test retrieving status for a worktree of an empty reposit
...
@@ -174,7 +174,7 @@ BEGIN_TEST(statuscb1, "test retrieving status for a worktree of an empty reposit
must_pass
(
remove_placeholders
(
TEST_STD_REPO_FOLDER
,
"dummy-marker.txt"
));
must_pass
(
remove_placeholders
(
TEST_STD_REPO_FOLDER
,
"dummy-marker.txt"
));
must_pass
(
git_repository_open
(
&
repo
,
TEST_STD_REPO_FOLDER
));
must_pass
(
git_repository_open
(
&
repo
,
TEST_STD_REPO_FOLDER
));
git_status_foreach
(
repo
,
status_cb1
,
&
count
);
must_pass
(
git_status_foreach
(
repo
,
status_cb1
,
&
count
)
);
must_be_true
(
count
==
0
);
must_be_true
(
count
==
0
);
git_repository_free
(
repo
);
git_repository_free
(
repo
);
...
@@ -242,7 +242,7 @@ BEGIN_TEST(statuscb2, "test retrieving status for a purged worktree of an valid
...
@@ -242,7 +242,7 @@ BEGIN_TEST(statuscb2, "test retrieving status for a purged worktree of an valid
counts
.
expected_paths
=
entry_paths2
;
counts
.
expected_paths
=
entry_paths2
;
counts
.
expected_statuses
=
entry_statuses2
;
counts
.
expected_statuses
=
entry_statuses2
;
git_status_foreach
(
repo
,
status_cb
,
&
counts
);
must_pass
(
git_status_foreach
(
repo
,
status_cb
,
&
counts
)
);
must_be_true
(
counts
.
entry_count
==
counts
.
expected_entry_count
);
must_be_true
(
counts
.
entry_count
==
counts
.
expected_entry_count
);
must_be_true
(
counts
.
wrong_status_flags_count
==
0
);
must_be_true
(
counts
.
wrong_status_flags_count
==
0
);
must_be_true
(
counts
.
wrong_sorted_path
==
0
);
must_be_true
(
counts
.
wrong_sorted_path
==
0
);
...
@@ -325,7 +325,7 @@ BEGIN_TEST(statuscb3, "test retrieving status for a worktree where a file and a
...
@@ -325,7 +325,7 @@ BEGIN_TEST(statuscb3, "test retrieving status for a worktree where a file and a
counts
.
expected_paths
=
entry_paths3
;
counts
.
expected_paths
=
entry_paths3
;
counts
.
expected_statuses
=
entry_statuses3
;
counts
.
expected_statuses
=
entry_statuses3
;
git_status_foreach
(
repo
,
status_cb
,
&
counts
);
must_pass
(
git_status_foreach
(
repo
,
status_cb
,
&
counts
)
);
must_be_true
(
counts
.
entry_count
==
counts
.
expected_entry_count
);
must_be_true
(
counts
.
entry_count
==
counts
.
expected_entry_count
);
must_be_true
(
counts
.
wrong_status_flags_count
==
0
);
must_be_true
(
counts
.
wrong_status_flags_count
==
0
);
must_be_true
(
counts
.
wrong_sorted_path
==
0
);
must_be_true
(
counts
.
wrong_sorted_path
==
0
);
...
...
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