feat(repository): add ability to compare objects

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:45:27 +03:00
parent bad40bdb61
commit 0dba1de29f
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)));
});
});
}