]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blob - t/92-pod-coverage.t
Directly test the truth of $ok in ok()
[perl/modules/Test-Leaner.git] / t / 92-pod-coverage.t
1 use strict;
2 use warnings;
3 use Test::More;
4
5 # Ensure a recent version of Test::Pod::Coverage
6 my $min_tpc = 1.08;
7 eval "use Test::Pod::Coverage $min_tpc";
8 plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage" if $@;
9
10 # Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
11 # but older versions don't recognize some common documentation styles
12 my $min_pc = 0.18;
13 eval "use Pod::Coverage $min_pc";
14 plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" if $@;
15
16 all_pod_coverage_ok({
17  also_private => [ qw<
18   NO_PLAN
19   SKIP_ALL
20   carp
21   croak
22   is_like
23   is_unlike
24  > ],
25 });