| 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More; |
| 4 | eval "use Test::Pod::Coverage 1.04"; |
| 5 | plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@; |
| 6 | use Module::Load::Conditional qw[can_load]; |
| 7 | |
| 8 | my @modules = all_modules(); |
| 9 | foreach my $mod (@modules) { |
| 10 | if (can_load( modules => { $mod => 0 } )) { |
| 11 | pod_coverage_ok($mod, { |
| 12 | also_private => [ qw.base components has_base value., qr{^[A-Z][A-Z0-9_]*$} ] |
| 13 | }); |
| 14 | } else { |
| 15 | note("Ignoring $mod for POD coverage tests (failed to load)"); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | done_testing(); |
| 20 | |
| 21 | |
| 22 |