mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: improve coverage
This commit is contained in:
parent
d75acbfdd3
commit
d6eae1e9ed
71 changed files with 710 additions and 229 deletions
|
@ -38,6 +38,7 @@ void main() {
|
|||
expect(submodule.workdirOid?.sha, null);
|
||||
expect(submodule.ignore, GitSubmoduleIgnore.none);
|
||||
expect(submodule.updateRule, GitSubmoduleUpdate.checkout);
|
||||
expect(submodule.toString(), contains('Submodule{'));
|
||||
|
||||
submodule.free();
|
||||
});
|
||||
|
@ -70,6 +71,10 @@ void main() {
|
|||
final subHead = submoduleRepo.head;
|
||||
expect(submoduleRepo, isA<Repository>());
|
||||
expect(subHead.target.sha, submoduleHeadSha);
|
||||
expect(
|
||||
submodule.workdirOid?.sha,
|
||||
'49322bb17d3acc9146f98c97d078513228bbf3c0',
|
||||
);
|
||||
|
||||
subHead.free();
|
||||
submoduleRepo.free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue