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
a6c0e4d2
Commit
a6c0e4d2
authored
Oct 11, 2011
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor indentation issues
parent
b3f993e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
tests/t09-tree.c
+7
-8
No files found.
tests/t09-tree.c
View file @
a6c0e4d2
...
@@ -187,22 +187,22 @@ BEGIN_TEST(write3, "write a hierarchical tree from a memory")
...
@@ -187,22 +187,22 @@ BEGIN_TEST(write3, "write a hierarchical tree from a memory")
must_pass
(
git_treebuilder_write
(
&
subtree_id
,
repo
,
builder
));
must_pass
(
git_treebuilder_write
(
&
subtree_id
,
repo
,
builder
));
git_treebuilder_free
(
builder
);
git_treebuilder_free
(
builder
);
// create parent tree
// create parent tree
must_pass
(
git_tree_lookup
(
&
tree
,
repo
,
&
id
));
must_pass
(
git_tree_lookup
(
&
tree
,
repo
,
&
id
));
must_pass
(
git_treebuilder_create
(
&
builder
,
tree
));
must_pass
(
git_treebuilder_create
(
&
builder
,
tree
));
must_pass
(
git_treebuilder_insert
(
NULL
,
builder
,
"new"
,
&
subtree_id
,
040000
));
must_pass
(
git_treebuilder_insert
(
NULL
,
builder
,
"new"
,
&
subtree_id
,
040000
));
must_pass
(
git_treebuilder_write
(
&
id_hiearar
,
repo
,
builder
));
must_pass
(
git_treebuilder_write
(
&
id_hiearar
,
repo
,
builder
));
git_treebuilder_free
(
builder
);
git_treebuilder_free
(
builder
);
git_tree_close
(
tree
);
git_tree_close
(
tree
);
must_be_true
(
git_oid_cmp
(
&
id_hiearar
,
&
id3
)
==
0
);
must_be_true
(
git_oid_cmp
(
&
id_hiearar
,
&
id3
)
==
0
);
// check data is correct
// check data is correct
must_pass
(
git_tree_lookup
(
&
tree
,
repo
,
&
id_hiearar
));
must_pass
(
git_tree_lookup
(
&
tree
,
repo
,
&
id_hiearar
));
must_be_true
(
2
==
git_tree_entrycount
(
tree
));
must_be_true
(
2
==
git_tree_entrycount
(
tree
));
git_tree_close
(
tree
);
git_tree_close
(
tree
);
close_temp_repo
(
repo
);
close_temp_repo
(
repo
);
END_TEST
END_TEST
...
@@ -215,4 +215,3 @@ BEGIN_SUITE(tree)
...
@@ -215,4 +215,3 @@ BEGIN_SUITE(tree)
ADD_TEST
(
write2
);
ADD_TEST
(
write2
);
ADD_TEST
(
write3
);
ADD_TEST
(
write3
);
END_SUITE
END_SUITE
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