-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial git-repo test support (#13)
- Loading branch information
Christopher White
committed
Oct 10, 2019
1 parent
0d376f1
commit 4f2b91a
Showing
3 changed files
with
121 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use strict; | ||
use warnings; | ||
use lib::relative '.'; | ||
use TestKit; | ||
|
||
use App::GitFind; | ||
use Capture::Tiny qw(capture); | ||
|
||
my $repo = make_git_repo; | ||
|
||
my ($stdout, $stderr, $exit) = capture { | ||
App::GitFind->new(-argv => [$repo->wc_path], -searchbase=>$repo->wc_path)->run; | ||
}; | ||
is $exit, number(0), 'Success'; | ||
is $stdout, '', 'No files found (as expected in an empty repo)'; | ||
|
||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters