Changeset 26735
- Timestamp:
- 12/15/08 13:19:06 (4 years ago)
- Location:
- lang/perl/Catalyst-Controller-Delegate/trunk/t
- Files:
-
- 5 modified
-
00load.t (modified) (4 diffs)
-
01perlcritic.t (modified) (3 diffs)
-
02pod.t (modified) (3 diffs)
-
03pod-coverage.t (modified) (3 diffs)
-
04kwalitee.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Catalyst-Controller-Delegate/trunk/t/00load.t
r26725 r26735 1 #! /usr/bin/env perl1 #! /usr/bin/env perl 2 2 # 3 3 # $Id$ … … 8 8 use version; our $VERSION = qv('0.0.1'); 9 9 10 use blib; 11 use English qw(-no_match_vars); 10 BEGIN { 11 use File::Spec; 12 use FindBin qw($Bin); 13 chdir File::Spec->catdir( $Bin, q{..} ); 14 use lib qw(lib); 15 } 12 16 use Test::Base tests => 2; 13 17 … … 19 23 require Devel::SawAmpersand; 20 24 Devel::SawAmpersand->import(qw(sawampersand)); 21 };22 if ($EVAL_ERROR){25 } 26 or do { 23 27 $WHY_SKIP_SAWAMPERSAND = 24 28 'Devel::SawAmpersand required for testing sawampersand'; 25 }29 }; 26 30 } 27 31 else { … … 37 41 skip $WHY_SKIP_SAWAMPERSAND, 1; 38 42 } 39 ok( !sawampersand(), q{$`, $&, and $' should not appear} ); ## no critic 43 ## no critic (ValuesAndExpressions::RequireInterpolationOfMetachars) 44 ok( !sawampersand(), q{$`, $&, and $' should not appear} ); 45 ## use critic 40 46 } -
lang/perl/Catalyst-Controller-Delegate/trunk/t/01perlcritic.t
r26725 r26735 1 #! /usr/bin/env perl1 #! /usr/bin/env perl 2 2 # 3 3 # $Id$ … … 8 8 use version; our $VERSION = qv('0.0.1'); 9 9 10 use blib; 11 use English qw(-no_match_vars); 10 BEGIN { 11 use File::Spec; 12 use FindBin qw($Bin); 13 chdir File::Spec->catdir( $Bin, q{..} ); 14 } 12 15 use Test::Base; 13 16 … … 20 23 require Test::Perl::Critic; 21 24 Test::Perl::Critic->import( -format => $format, -severity => 1 ); 22 };23 if ($EVAL_ERROR){25 } 26 or do { 24 27 plan skip_all => 25 28 'Test::Perl::Critic required for testing PBP compliance'; 26 }29 }; 27 30 } 28 31 else { -
lang/perl/Catalyst-Controller-Delegate/trunk/t/02pod.t
r26725 r26735 1 #! /usr/bin/env perl1 #! /usr/bin/env perl 2 2 # 3 3 # $Id$ … … 8 8 use version; our $VERSION = qv('0.0.1'); 9 9 10 use blib; 11 use English qw(-no_match_vars); 10 BEGIN { 11 use File::Spec; 12 use FindBin qw($Bin); 13 chdir File::Spec->catdir( $Bin, q{..} ); 14 } 12 15 use Test::Base; 13 16 … … 16 19 require Test::Pod; 17 20 Test::Pod->import; 18 };19 if ($EVAL_ERROR){21 } 22 or do { 20 23 plan skip_all => 'Test::Pod required for testing POD'; 21 }24 }; 22 25 } 23 26 else { -
lang/perl/Catalyst-Controller-Delegate/trunk/t/03pod-coverage.t
r26725 r26735 1 #! /usr/bin/env perl1 #! /usr/bin/env perl 2 2 # 3 3 # $Id$ … … 8 8 use version; our $VERSION = qv('0.0.1'); 9 9 10 use blib; 11 use English qw(-no_match_vars); 10 BEGIN { 11 use File::Spec; 12 use FindBin qw($Bin); 13 chdir File::Spec->catdir( $Bin, q{..} ); 14 } 12 15 use Test::Base; 13 16 … … 16 19 require Test::Pod::Coverage; 17 20 Test::Pod::Coverage->import; 18 }; 19 if ($EVAL_ERROR) { 21 my $all_modules = Test::Pod::Coverage->can('all_modules'); 22 ## no critic (TestingAndDebugging::ProhibitNoWarnings) 23 no warnings qw(redefine once); 24 ## use critic 25 *Test::Pod::Coverage::all_modules = sub { 26 my @modules = $all_modules->(@_); 27 @modules = grep { !m{^Stickam::Schema}msx } @modules; 28 return @modules; 29 }; 30 } 31 or do { 20 32 plan skip_all => 21 33 'Test::Pod::Coverage required for testing POD coverage'; 22 }34 }; 23 35 } 24 36 else { -
lang/perl/Catalyst-Controller-Delegate/trunk/t/04kwalitee.t
r26725 r26735 1 #! /usr/bin/env perl1 #! /usr/bin/env perl 2 2 # 3 3 # $Id$ … … 8 8 use version; our $VERSION = qv('0.0.1'); 9 9 10 use blib; 11 use English qw(-no_match_vars); 10 BEGIN { 11 use File::Spec; 12 use FindBin qw($Bin); 13 chdir File::Spec->catdir( $Bin, q{..} ); 14 } 12 15 use Test::Base; 13 16 … … 16 19 require Test::Kwalitee; 17 20 Test::Kwalitee->import; 18 };19 if ($EVAL_ERROR){21 } 22 or do { 20 23 plan skip_all => 'Test::Kwalitee required for testing Kwalitee'; 21 }24 }; 22 25 } 23 26 else {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)