mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat: upgrade libgit2 to 1.4.0 (#45)
This commit is contained in:
parent
7a067beeb9
commit
d901d2e13f
16 changed files with 747 additions and 287 deletions
|
@ -146,16 +146,16 @@ void main() {
|
|||
packbuilder.free();
|
||||
});
|
||||
|
||||
test('returns hash of packfile', () {
|
||||
test('returns name of packfile', () {
|
||||
final packbuilder = PackBuilder(repo);
|
||||
final odb = repo.odb;
|
||||
|
||||
packbuilder.add(odb.objects[0]);
|
||||
Directory(packDirPath).createSync();
|
||||
|
||||
expect(packbuilder.hash.sha, '0' * 40);
|
||||
expect(packbuilder.name, isEmpty);
|
||||
packbuilder.write(null);
|
||||
expect(packbuilder.hash.sha, isNot('0' * 40));
|
||||
expect(packbuilder.name, isNotEmpty);
|
||||
|
||||
packbuilder.free();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue