mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(tree): add bindings and api
This commit is contained in:
parent
6bd04bb09d
commit
84ee4be945
22 changed files with 316 additions and 84 deletions
|
@ -34,22 +34,19 @@ void main() {
|
|||
});
|
||||
|
||||
test('returns correct number of log entries', () {
|
||||
expect(reflog.count, 3);
|
||||
expect(reflog.count, 4);
|
||||
});
|
||||
|
||||
test('returns the log message', () {
|
||||
final entry = reflog.entryAt(0);
|
||||
expect(
|
||||
entry.message,
|
||||
"merge feature: Merge made by the 'recursive' strategy.",
|
||||
);
|
||||
expect(entry.message, "commit: add subdirectory file");
|
||||
});
|
||||
|
||||
test('returns the committer of the entry', () {
|
||||
final entry = reflog.entryAt(0);
|
||||
expect(entry.committer.name, 'Aleksey Kulikov');
|
||||
expect(entry.committer.email, 'skinny.mind@gmail.com');
|
||||
expect(entry.committer.time, 1626091184);
|
||||
expect(entry.committer.time, 1630568461);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue