mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(blob): add bindings and api
This commit is contained in:
parent
88d064bda2
commit
f0803298c8
14 changed files with 455 additions and 143 deletions
|
@ -3,25 +3,24 @@ import 'package:libgit2dart/libgit2dart.dart';
|
|||
|
||||
void main() {
|
||||
late Signature signature;
|
||||
const name = 'Some Name';
|
||||
const email = 'some@email.com';
|
||||
const time = 1234567890;
|
||||
const offset = 0;
|
||||
|
||||
setUp(() {
|
||||
signature = Signature.create(
|
||||
name: name,
|
||||
email: email,
|
||||
time: time,
|
||||
offset: offset,
|
||||
);
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
signature.free();
|
||||
});
|
||||
group('Signature', () {
|
||||
const name = 'Some Name';
|
||||
const email = 'some@email.com';
|
||||
const time = 1234567890;
|
||||
const offset = 0;
|
||||
|
||||
setUp(() {
|
||||
signature = Signature.create(
|
||||
name: name,
|
||||
email: email,
|
||||
time: time,
|
||||
offset: offset,
|
||||
);
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
signature.free();
|
||||
});
|
||||
|
||||
test('successfully creates with provided time and offset', () {
|
||||
expect(signature, isA<Signature>());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue