feat(repository): add ability to compare objects (#55)

Add naive objects comparison based on repository path. Use with caution,
previously loaded into memory index, odb, etc. might be different.
This commit is contained in:
Aleksey Kulikov 2022-05-10 19:57:24 +03:00 committed by GitHub
parent bad40bdb61
commit d231164775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -249,5 +249,9 @@ void main() {
test('returns string representation of Repository object', () {
expect(repo.toString(), contains('Repository{'));
});
test('supports value comparison', () {
expect(repo, equals(Repository.open(tmpDir.path)));
});
});
}