Debian Codegraph @

t/author/pod-coverage.t

raw
1 use strict;
2 use warnings;
3 use Test::More;
4
5 # Are we an author test?
6 plan skip_all => 'Skipping author tests'
7 unless $ENV{RUN_AUTHOR_TESTS};
8
9 # Ensure a recent version of Test::Pod::Coverage
10 my $min_tpc = 1.08;
11 eval "use Test::Pod::Coverage $min_tpc";
12 plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
13 if $@;
14
15 # Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
16 # but older versions don't recognize some common documentation styles
17 my $min_pc = 0.18;
18 eval "use Pod::Coverage $min_pc";
19 plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
20 if $@;
21
22 all_pod_coverage_ok();