mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor(repository)!: use Finalizer
to automatically free allocated memory
BREAKING CHANGE: Return value of identity getter changed from Map<String, String> to Identity
This commit is contained in:
parent
aef440e345
commit
813de89745
42 changed files with 74 additions and 130 deletions
|
@ -24,8 +24,6 @@ void main() {
|
|||
|
||||
expect(repo.path, contains('init_repo'));
|
||||
expect(repo.isBare, true);
|
||||
|
||||
repo.free();
|
||||
});
|
||||
|
||||
test('creates new standard repo at provided path', () {
|
||||
|
@ -34,8 +32,6 @@ void main() {
|
|||
expect(repo.path, contains('init_repo/.git/'));
|
||||
expect(repo.isBare, false);
|
||||
expect(repo.isEmpty, true);
|
||||
|
||||
repo.free();
|
||||
});
|
||||
|
||||
test('creates new standard repo with provided options', () {
|
||||
|
@ -54,8 +50,6 @@ void main() {
|
|||
'test repo',
|
||||
);
|
||||
expect(Remote.lookup(repo: repo, name: 'origin').url, 'test.url');
|
||||
|
||||
repo.free();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue