refactor!: use Oid instead of String for arguments

This commit is contained in:
Aleksey Kulikov 2021-10-13 15:31:20 +03:00
parent 23787adc3a
commit 1972c6d1ab
39 changed files with 264 additions and 290 deletions

View file

@ -54,15 +54,15 @@ void main() {
final entry = index['file'];
final otherEntry = index['feature_file'];
expect(entry.id == otherEntry.id, false);
expect(entry.oid == otherEntry.oid, false);
expect(entry.mode, isNot(GitFilemode.blobExecutable));
entry.path = 'some.txt';
entry.id = otherEntry.id;
entry.oid = otherEntry.oid;
entry.mode = GitFilemode.blobExecutable;
expect(entry.path, 'some.txt');
expect(entry.id == otherEntry.id, true);
expect(entry.oid == otherEntry.oid, true);
expect(entry.mode, GitFilemode.blobExecutable);
});