mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor: use ffi Arena for resource management
This commit is contained in:
parent
d0bb7aaa0f
commit
747996b40c
17 changed files with 629 additions and 582 deletions
|
@ -214,6 +214,11 @@ void main() {
|
|||
});
|
||||
|
||||
group('setHead', () {
|
||||
late Reference head;
|
||||
|
||||
setUp(() => head = repo.head);
|
||||
tearDown(() => head.free());
|
||||
|
||||
test('successfully sets head when target is reference', () {
|
||||
expect(repo.head.name, 'refs/heads/master');
|
||||
expect(repo.head.target.sha, lastCommit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue