Skip to content

Commit

Permalink
add description, use done_testing everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Nov 27, 2015
1 parent dba5a63 commit 4444626
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WriteMakefile(
'Params::Validate' => 1.07,
'Clone', => 0.38,
'Test::Differences' => 0,
'Test::More' => 0.88, # done_testing
# Modern Data::Domain only works on 5.10 and higher
(($] > 5.010) ? ('Data::Domain' => 1.02) : ())
},
Expand Down
2 changes: 1 addition & 1 deletion lib/Params/Validate/Dependencies.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sub import {

=head1 NAME
Params::Validate::Dependencies
Params::Validate::Dependencies - check that the right combination of arguments is passed to a function
=head1 DESCRIPTION
Expand Down
3 changes: 2 additions & 1 deletion t/01-basics.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use warnings;

use Params::Validate::Dependencies qw(:all);

use Test::More tests => 20;
use Test::More;
END { done_testing(); }

my %pv = (
alpha => { type => SCALAR, optional => 1 },
Expand Down
3 changes: 2 additions & 1 deletion t/03-autodoco.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use warnings;

use Params::Validate::Dependencies qw(:all);

use Test::More tests => 6;
use Test::More;
END { done_testing(); }

sub doc { Params::Validate::Dependencies::document(@_) }

Expand Down
3 changes: 2 additions & 1 deletion t/git-issue-1-return-values.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use warnings;

use Params::Validate::Dependencies qw(:all);

use Test::More tests => 4;
use Test::More;
END { done_testing(); }

# gamma is compulsory, must have one of alpha/beta
my %pv = (
Expand Down
3 changes: 2 additions & 1 deletion t/git-issue-4-export-variables.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ use Clone qw(clone);
use Params::Validate ();

use Test::More;
use Test::Differences;
END { done_testing(); }

use Test::Differences;

my %old_export_tags = %{ clone(\%Params::Validate::EXPORT_TAGS) };
my @old_export = @{ clone(\@Params::Validate::EXPORT ) };
my @old_export_ok = @{ clone(\@Params::Validate::EXPORT_OK ) };
Expand Down

0 comments on commit 4444626

Please sign in to comment.