mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-06-23 09:19:26 -04:00
test: add more tests for throws and their messages
This commit is contained in:
parent
d6eae1e9ed
commit
127849519d
80 changed files with 2741 additions and 1501 deletions
|
@ -82,6 +82,20 @@ void main() {
|
|||
expect(credentials.toString(), contains('KeypairFromAgent{'));
|
||||
});
|
||||
|
||||
test('sucessfully clones repository with provided username', () {
|
||||
final callbacks = const Callbacks(credentials: Username('git'));
|
||||
|
||||
final repo = Repository.clone(
|
||||
url: 'https://git@github.com/libgit2/TestGitRepository',
|
||||
localPath: cloneDir.path,
|
||||
callbacks: callbacks,
|
||||
);
|
||||
|
||||
expect(repo.isEmpty, false);
|
||||
|
||||
repo.free();
|
||||
});
|
||||
|
||||
test('sucessfully clones repository with provided keypair', () {
|
||||
final keypair = const Keypair(
|
||||
username: 'git',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue