7 if (my $head = `git rev-parse HEAD`) {
8 plan skip_all => "Test disabled until after merge"
9 if $head ne `git rev-parse master`;
11 die "\n\n=================\n!!! Fix the test and remove temporary header !!!\n=================\n\n";
14 eval "use Pod::Coverage 0.19";
15 plan skip_all => 'Pod::Coverage 0.19 required' if $@;
16 eval "use Test::Pod::Coverage 1.04";
17 plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
19 plan skip_all => 'set TEST_POD to enable this test'
20 unless ( $ENV{TEST_POD} || -e 'MANIFEST.SKIP' );
22 my @modules = sort { $a cmp $b } ( Test::Pod::Coverage::all_modules() );
24 # Since this is about checking documentation, a little documentation
25 # of what this is doing might be in order...
26 # The exceptions structure below is a hash keyed by the module
27 # name. The value for each is a hash, which contains one or more
28 # (although currently more than one makes no sense) of the following
30 # skip => a true value means this module is not checked
31 # ignore => array ref containing list of methods which
32 # do not need to be documented.
40 'SQL::Abstract::Test' => { skip => 1 },
41 'DBIx::Class::Storage::Debug::PrettyPrint' => { skip => 1 },
44 foreach my $module (@modules) {
47 skip "$module - No user visible methods",
49 if ( $exceptions->{$module}{skip} );
51 # build parms up from ignore list
54 [ map { qr/^$_$/ } @{ $exceptions->{$module}{ignore} } ]
55 if exists( $exceptions->{$module}{ignore} );
57 # run the test with the potentially modified parm set
58 pod_coverage_ok( $module, $parms, "$module POD coverage" );