Skip to content

Commit

Permalink
Make tests work on older test::More
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Mar 9, 2017
1 parent 4bccb0f commit d3f5ed8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Release history for Git-PurePerl-Walker

{{$NEXT}}
- Bugfix: Avoid test failures with -Ddefault_inc_excludes_dot
- Tests made more portable to older Test::More

[Dependencies::Stats]
- Dependencies changed since 0.004000, see misc/*.deps* for details
Expand Down
3 changes: 1 addition & 2 deletions t/01_test.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use strict;
use warnings;

use Test::More;
use Test::More tests => 2;
use FindBin;
use Path::Tiny qw(path);

Expand Down Expand Up @@ -39,4 +39,3 @@ is_deeply(
],
'Traverse whole tree'
);
done_testing;
4 changes: 1 addition & 3 deletions t/0200_firstparent.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use strict;
use warnings;

use Test::More;
use Test::More tests => 9;
use FindBin;
use Path::Tiny qw(path);

Expand Down Expand Up @@ -29,5 +29,3 @@ is( $method->_commit->sha1, $expected->{'HEAD~1'}, 'At Head~1' );
is( $method->current->sha1, $expected->{'HEAD~1'}, 'At Head~1' );
is( $method->start, $expected->{'HEAD'}, 'At Head' );
ok( !$method->has_next, "Has no more items" );

done_testing;
4 changes: 1 addition & 3 deletions t/0201_firstparent_fromhead.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use strict;
use warnings;

use Test::More;
use Test::More tests => 9;
use FindBin;
use Path::Tiny qw( path );

Expand Down Expand Up @@ -29,5 +29,3 @@ is( $method->_commit->sha1, $expected->{'HEAD~1'}, 'At Head~1' );
is( $method->current->sha1, $expected->{'HEAD~1'}, 'At Head~1' );
is( $method->start, $expected->{'HEAD'}, 'At Head' );
ok( !$method->has_next, "Has no more items" );

done_testing;
4 changes: 1 addition & 3 deletions t/03_callback.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use strict;
use warnings;

use Test::More;
use Test::More tests => 1;
use FindBin;
use Path::Tiny qw(path);

Expand All @@ -28,5 +28,3 @@ my $caller = $caller_factory->for_repository($repo);
$caller->handle( $repo->master );

is( $v->[0]->sha1, '010fb4bcf7d92c031213f43d0130c811cbb355e7', 'Callback triggered' );

done_testing;
4 changes: 1 addition & 3 deletions t/04_list.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use strict;
use warnings;

use Test::More;
use Test::More tests => 5;
use FindBin;
use Path::Tiny qw(path);
use Scalar::Util qw( refaddr );
Expand Down Expand Up @@ -53,5 +53,3 @@ my $c = Git::PurePerl::Walker::OnCommit::CallBack->new(
);
$li->add_event($c);
isnt( refaddr $li->events->[2], refaddr $c, "callback is cloned x3" );

done_testing;

0 comments on commit d3f5ed8

Please sign in to comment.