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
3737537b
Commit
3737537b
authored
Jul 28, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #338 from carlosmn/del-test-index-read
Remove extra git_index_read from the tests
parents
2b7fffa8
20a7e820
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
tests/t06-index.c
+0
-11
No files found.
tests/t06-index.c
View file @
3737537b
...
@@ -51,9 +51,6 @@ BEGIN_TEST(read0, "load an empty index")
...
@@ -51,9 +51,6 @@ BEGIN_TEST(read0, "load an empty index")
must_pass
(
git_index_open
(
&
index
,
"in-memory-index"
));
must_pass
(
git_index_open
(
&
index
,
"in-memory-index"
));
must_be_true
(
index
->
on_disk
==
0
);
must_be_true
(
index
->
on_disk
==
0
);
must_pass
(
git_index_read
(
index
));
must_be_true
(
index
->
on_disk
==
0
);
must_be_true
(
git_index_entrycount
(
index
)
==
0
);
must_be_true
(
git_index_entrycount
(
index
)
==
0
);
must_be_true
(
index
->
entries
.
sorted
);
must_be_true
(
index
->
entries
.
sorted
);
...
@@ -68,9 +65,6 @@ BEGIN_TEST(read1, "load a standard index (default test index)")
...
@@ -68,9 +65,6 @@ BEGIN_TEST(read1, "load a standard index (default test index)")
must_pass
(
git_index_open
(
&
index
,
TEST_INDEX_PATH
));
must_pass
(
git_index_open
(
&
index
,
TEST_INDEX_PATH
));
must_be_true
(
index
->
on_disk
);
must_be_true
(
index
->
on_disk
);
must_pass
(
git_index_read
(
index
));
must_be_true
(
index
->
on_disk
);
must_be_true
(
git_index_entrycount
(
index
)
==
TEST_INDEX_ENTRY_COUNT
);
must_be_true
(
git_index_entrycount
(
index
)
==
TEST_INDEX_ENTRY_COUNT
);
must_be_true
(
index
->
entries
.
sorted
);
must_be_true
(
index
->
entries
.
sorted
);
...
@@ -93,9 +87,6 @@ BEGIN_TEST(read2, "load a standard index (git.git index)")
...
@@ -93,9 +87,6 @@ BEGIN_TEST(read2, "load a standard index (git.git index)")
must_pass
(
git_index_open
(
&
index
,
TEST_INDEX2_PATH
));
must_pass
(
git_index_open
(
&
index
,
TEST_INDEX2_PATH
));
must_be_true
(
index
->
on_disk
);
must_be_true
(
index
->
on_disk
);
must_pass
(
git_index_read
(
index
));
must_be_true
(
index
->
on_disk
);
must_be_true
(
git_index_entrycount
(
index
)
==
TEST_INDEX2_ENTRY_COUNT
);
must_be_true
(
git_index_entrycount
(
index
)
==
TEST_INDEX2_ENTRY_COUNT
);
must_be_true
(
index
->
entries
.
sorted
);
must_be_true
(
index
->
entries
.
sorted
);
must_be_true
(
index
->
tree
!=
NULL
);
must_be_true
(
index
->
tree
!=
NULL
);
...
@@ -108,7 +99,6 @@ BEGIN_TEST(find0, "find an entry on an index")
...
@@ -108,7 +99,6 @@ BEGIN_TEST(find0, "find an entry on an index")
unsigned
int
i
;
unsigned
int
i
;
must_pass
(
git_index_open
(
&
index
,
TEST_INDEX_PATH
));
must_pass
(
git_index_open
(
&
index
,
TEST_INDEX_PATH
));
must_pass
(
git_index_read
(
index
));
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
TEST_ENTRIES
);
++
i
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
TEST_ENTRIES
);
++
i
)
{
int
idx
=
git_index_find
(
index
,
TEST_ENTRIES
[
i
].
path
);
int
idx
=
git_index_find
(
index
,
TEST_ENTRIES
[
i
].
path
);
...
@@ -138,7 +128,6 @@ BEGIN_TEST(write0, "write an index back to disk")
...
@@ -138,7 +128,6 @@ BEGIN_TEST(write0, "write an index back to disk")
must_pass
(
copy_file
(
TEST_INDEXBIG_PATH
,
"index_rewrite"
));
must_pass
(
copy_file
(
TEST_INDEXBIG_PATH
,
"index_rewrite"
));
must_pass
(
git_index_open
(
&
index
,
"index_rewrite"
));
must_pass
(
git_index_open
(
&
index
,
"index_rewrite"
));
must_pass
(
git_index_read
(
index
));
must_be_true
(
index
->
on_disk
);
must_be_true
(
index
->
on_disk
);
must_pass
(
git_index_write
(
index
));
must_pass
(
git_index_write
(
index
));
...
...
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