From: Karen Etheridge Date: Thu, 3 Oct 2013 19:54:40 +0000 (-0700) Subject: ensure all tests have a plan X-Git-Tag: 1.008020~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=commitdiff_plain;h=7487778ddbf9f90fff70a7efdee64b579200922c ensure all tests have a plan --- diff --git a/t/classmethod.t b/t/classmethod.t index f928fd5..1b27a7f 100644 --- a/t/classmethod.t +++ b/t/classmethod.t @@ -1,7 +1,8 @@ use strict; use warnings; -use Test::More 'no_plan'; +use Test::More tests => 4;; + use local::lib (); diff --git a/t/coderefs_in_inc.t b/t/coderefs_in_inc.t index 02c480e..97ce9a8 100644 --- a/t/coderefs_in_inc.t +++ b/t/coderefs_in_inc.t @@ -1,12 +1,11 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 2; use File::Temp qw(tempdir); use Cwd; # Test that refs in @INC don't get mangled. -plan tests => 2; my $dir = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1); diff --git a/t/de-dup.t b/t/de-dup.t index 7763319..56b508c 100644 --- a/t/de-dup.t +++ b/t/de-dup.t @@ -1,11 +1,10 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 2; + use File::Temp qw(tempdir); use Cwd; -plan tests => 2; - my $dir = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP => 1); use local::lib (); diff --git a/t/pipeline.t b/t/pipeline.t index 886aaf0..a433f2c 100644 --- a/t/pipeline.t +++ b/t/pipeline.t @@ -1,7 +1,8 @@ use strict; use warnings; -use Test::More 'no_plan'; +use Test::More tests => 1; + use local::lib (); { diff --git a/t/subroutine-in-inc.t b/t/subroutine-in-inc.t index 13b0c47..685d76b 100644 --- a/t/subroutine-in-inc.t +++ b/t/subroutine-in-inc.t @@ -1,8 +1,6 @@ #!/usr/bin/perl -w -use Test::More; - -plan qw/no_plan/; +use Test::More tests => 1; use File::Spec; use Cwd;