Skip to content

Commit

Permalink
Improved coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesg committed May 4, 2014
1 parent cdef7a3 commit b1a5f38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions t/09-diff.t
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ is scalar(@patches), 2;

foreach my $patch (@patches) {
my @hunks = $patch -> hunks;
ok (eval { $patch -> hunks(0) });
ok (!eval { $patch -> hunks(1) });
ok (!eval { $patch -> hunks($diff) });
is $patch -> hunk_count, 1;
Expand Down
2 changes: 1 addition & 1 deletion t/10-clone.t
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ok (!eval { $repo = Git::Raw::Repository -> clone($remote_url, $path, {
'credentials' => sub {
my ($url, $user) = @_;
return Git::Raw::Cred -> sshkey(
$user, 'invalid', 'invalid');
$user, 'invalid', 'invalid', 'invalid');
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion t/11-stash.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Git::Raw::Stash -> foreach($repo, sub { die 'This should not be called' });
my $untracked_file = $repo -> workdir . 'untracked';
write_file($untracked_file, 'this is an untracked file');

$repo -> stash($me, 'stash untracked files', ['include_untracked']);
$repo -> stash($me, 'stash untracked files', [undef, 'include_untracked']);

my @stashes;
Git::Raw::Stash -> foreach($repo, sub {
Expand Down

0 comments on commit b1a5f38

Please sign in to comment.