mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
style: stricter linting
This commit is contained in:
parent
d0f7746a01
commit
2eb50dec69
12 changed files with 47 additions and 27 deletions
|
@ -166,7 +166,7 @@ void main() {
|
|||
final duplicate = ref.duplicate();
|
||||
|
||||
expect(repo.references.length, 6);
|
||||
expect(duplicate, equals(ref));
|
||||
expect(duplicate.equals(ref), true);
|
||||
|
||||
duplicate.free();
|
||||
ref.free();
|
||||
|
@ -519,10 +519,10 @@ void main() {
|
|||
final ref2 = Reference.lookup(repo: repo, name: 'refs/heads/master');
|
||||
final ref3 = Reference.lookup(repo: repo, name: 'refs/heads/feature');
|
||||
|
||||
expect(ref1 == ref2, true);
|
||||
expect(ref1 != ref2, false);
|
||||
expect(ref1 == ref3, false);
|
||||
expect(ref1 != ref3, true);
|
||||
expect(ref1.equals(ref2), true);
|
||||
expect(ref1.notEquals(ref2), false);
|
||||
expect(ref1.equals(ref3), false);
|
||||
expect(ref1.notEquals(ref3), true);
|
||||
|
||||
ref1.free();
|
||||
ref2.free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue