mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
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:
parent
bad40bdb61
commit
d231164775
2 changed files with 11 additions and 2 deletions
|
@ -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)));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue