feat(annotated)!: add more bindings and API methods

This commit is contained in:
Aleksey Kulikov 2021-12-22 17:32:10 +03:00
parent 0176b66ba7
commit 01e939e15c
13 changed files with 498 additions and 146 deletions

View file

@ -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', () {