File: perl-critic.xt

package info (click to toggle)
libmodule-starter-plugin-cgiapp-perl 0.44-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 524 kB
  • sloc: perl: 1,119; makefile: 6
file content (35 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/perl

# Test that the module passes perlcritic
use Test::More;
use strict;
BEGIN {
	$|  = 1;
	$^W = 1;
}
use File::Find;

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{<tmpl_loop module_pm_files>
    <tmpl_var module_pm_files_item></tmpl_loop>
};

foreach my $file (@files) {
    critic_ok($file);
}

done_testing(scalar @files);

1;