Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (27 sloc) 508 Bytes
#!/usr/bin/perl
# Test that the module passes perlcritic
use Test::More;
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
my @MODULES = (
'Perl::Critic 1.098',
"Test::Perl::Critic 1.01 (-profile => 'xt/perlcriticrc')",
);
# Load the testing modules
foreach my $MODULE ( @MODULES ) {
eval "use $MODULE";
if ( $@ ) {
plan( skip_all => "$MODULE not available for testing" );
}
}
my @files = qw{
lib/REST/Utils.pm
};
foreach my $file (@files) {
critic_ok($file);
}
done_testing(scalar @files);
1;
Jump to Line
Something went wrong with that request. Please try again.