mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor!: use Oid instead of String for arguments
This commit is contained in:
parent
23787adc3a
commit
1972c6d1ab
39 changed files with 264 additions and 290 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue