mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(annotated)!: add more bindings and API methods (#26)
This commit is contained in:
parent
0176b66ba7
commit
fe570a6990
13 changed files with 498 additions and 146 deletions
|
@ -57,19 +57,6 @@ void main() {
|
|||
);
|
||||
});
|
||||
|
||||
test('successfully lookups annotated commit for provided oid', () {
|
||||
final annotated = AnnotatedCommit.lookup(repo: repo, oid: tip);
|
||||
expect(annotated, isA<AnnotatedCommit>());
|
||||
annotated.free();
|
||||
});
|
||||
|
||||
test('throws when trying to lookup annotated commit with invalid oid', () {
|
||||
expect(
|
||||
() => AnnotatedCommit.lookup(repo: repo, oid: repo['0' * 40]),
|
||||
throwsA(isA<LibGit2Error>()),
|
||||
);
|
||||
});
|
||||
|
||||
test(
|
||||
'throws when trying to get the summary of the commit message and error '
|
||||
'occurs', () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue