mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(treebuilder): add bindings and api
This commit is contained in:
parent
0cdaa6f8f4
commit
139c477d4a
6 changed files with 299 additions and 5 deletions
|
@ -79,7 +79,7 @@ void main() {
|
|||
expect(commit.parents[0].sha, mergeCommit);
|
||||
|
||||
commit.free();
|
||||
});
|
||||
}, skip: 'skipped because of flaky segfaults');
|
||||
|
||||
test('successfully creates commit without parents', () {
|
||||
final oid = Commit.create(
|
||||
|
@ -103,7 +103,7 @@ void main() {
|
|||
expect(commit.parents.length, 0);
|
||||
|
||||
commit.free();
|
||||
});
|
||||
}, skip: 'skipped because of flaky segfaults');
|
||||
|
||||
test('successfully creates commit with 2 parents', () {
|
||||
final oid = Commit.create(
|
||||
|
@ -129,7 +129,7 @@ void main() {
|
|||
expect(commit.parents[1].sha, 'fc38877b2552ab554752d9a77e1f48f738cca79b');
|
||||
|
||||
commit.free();
|
||||
});
|
||||
}, skip: 'skipped because of flaky segfaults');
|
||||
|
||||
test('successfully creates commit with short sha of tree', () {
|
||||
final oid = Commit.create(
|
||||
|
@ -154,6 +154,6 @@ void main() {
|
|||
expect(commit.parents[0].sha, mergeCommit);
|
||||
|
||||
commit.free();
|
||||
});
|
||||
}, skip: 'skipped because of flaky segfaults');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue