mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: improve coverage
This commit is contained in:
parent
d75acbfdd3
commit
d6eae1e9ed
71 changed files with 710 additions and 229 deletions
|
@ -206,5 +206,25 @@ Santa Claus <santa.claus@northpole.xx> <me@company.xx>
|
|||
|
||||
mailmap.free();
|
||||
});
|
||||
|
||||
test('successfully resolves signature', () {
|
||||
final signature = Signature.create(
|
||||
name: 'nick1',
|
||||
email: 'bugs@company.xx',
|
||||
);
|
||||
final realSignature = Signature.create(
|
||||
name: 'Some Dude',
|
||||
email: 'some@dude.xx',
|
||||
);
|
||||
final mailmap = Mailmap.empty();
|
||||
mailmap.addEntry(
|
||||
realName: 'Some Dude',
|
||||
realEmail: 'some@dude.xx',
|
||||
replaceName: 'nick1',
|
||||
replaceEmail: 'bugs@company.xx',
|
||||
);
|
||||
|
||||
expect(mailmap.resolveSignature(signature), realSignature);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue