]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blob - t/92-pod-coverage.t
Switch to qw<>
[perl/modules/Test-Valgrind.git] / t / 92-pod-coverage.t
1 #!perl -T
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7
8 # Ensure a recent version of Test::Pod::Coverage
9 my $min_tpc = 1.08;
10 eval "use Test::Pod::Coverage $min_tpc";
11 plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage" if $@;
12
13 # Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
14 # but older versions don't recognize some common documentation styles
15 my $min_pc = 0.18;
16 eval "use Pod::Coverage $min_pc";
17 plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" if $@;
18
19 my $trustparents = { coverage_class => 'Pod::Coverage::CountParents' };
20
21 plan tests => 21;
22
23 pod_coverage_ok('Test::Valgrind');
24
25 pod_coverage_ok('Test::Valgrind::Action');
26 pod_coverage_ok('Test::Valgrind::Action::Captor');
27 pod_coverage_ok('Test::Valgrind::Action::Suppressions', $trustparents);
28 pod_coverage_ok('Test::Valgrind::Action::Test', $trustparents);
29
30 pod_coverage_ok('Test::Valgrind::Carp');
31
32 pod_coverage_ok('Test::Valgrind::Command');
33 pod_coverage_ok('Test::Valgrind::Command::Aggregate', $trustparents);
34 pod_coverage_ok('Test::Valgrind::Command::Perl', $trustparents);
35 pod_coverage_ok('Test::Valgrind::Command::PerlScript', $trustparents);
36
37 pod_coverage_ok('Test::Valgrind::Component');
38
39 pod_coverage_ok('Test::Valgrind::Parser');
40 pod_coverage_ok('Test::Valgrind::Parser::Suppressions::Text', $trustparents);
41 pod_coverage_ok('Test::Valgrind::Parser::Text', $trustparents);
42 pod_coverage_ok('Test::Valgrind::Parser::XML', $trustparents);
43 pod_coverage_ok('Test::Valgrind::Parser::XML::Twig', {
44  %$trustparents,
45  also_private => [ qr/^handle_/, qw<stash> ],
46 });
47
48 pod_coverage_ok('Test::Valgrind::Report');
49 pod_coverage_ok('Test::Valgrind::Session');
50 pod_coverage_ok('Test::Valgrind::Suppressions');
51
52 pod_coverage_ok('Test::Valgrind::Tool');
53 pod_coverage_ok('Test::Valgrind::Tool::memcheck', $trustparents);