X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F92-pod-coverage.t;h=0e001f8a365c245021fa1dbb0525627b0ee30e0a;hb=254ae9b36d4bdcc79ab4a2dacd3d717b5cea1f9e;hp=79ffd62f708a9c146f767ab95867ec4476e8f0df;hpb=91e50cd9ec30efd628f6221947d7a523eebb2248;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/t/92-pod-coverage.t b/t/92-pod-coverage.t index 79ffd62..0e001f8 100644 --- a/t/92-pod-coverage.t +++ b/t/92-pod-coverage.t @@ -5,20 +5,15 @@ use warnings; use Test::More; -# Ensure a recent version of Test::Pod::Coverage -my $min_tpc = 1.08; -eval "use Test::Pod::Coverage $min_tpc"; -plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage" if $@; +use lib 't/lib'; +use VPIT::TestHelpers; -# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version, -# but older versions don't recognize some common documentation styles -my $min_pc = 0.18; -eval "use Pod::Coverage $min_pc"; -plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" if $@; +load_or_skip_all('Test::Pod::Coverage', '1.08', [ ]); +load_or_skip_all('Pod::Coverage', '0.18' ); my $trustparents = { coverage_class => 'Pod::Coverage::CountParents' }; -plan tests => 16; +plan tests => 21; pod_coverage_ok('Test::Valgrind'); @@ -34,7 +29,16 @@ pod_coverage_ok('Test::Valgrind::Command::Aggregate', $trustparents); pod_coverage_ok('Test::Valgrind::Command::Perl', $trustparents); pod_coverage_ok('Test::Valgrind::Command::PerlScript', $trustparents); -pod_coverage_ok('Test::Valgrind::Parser::Suppressions::Text'); +pod_coverage_ok('Test::Valgrind::Component'); + +pod_coverage_ok('Test::Valgrind::Parser'); +pod_coverage_ok('Test::Valgrind::Parser::Suppressions::Text', $trustparents); +pod_coverage_ok('Test::Valgrind::Parser::Text', $trustparents); +pod_coverage_ok('Test::Valgrind::Parser::XML', $trustparents); +pod_coverage_ok('Test::Valgrind::Parser::XML::Twig', { + %$trustparents, + also_private => [ qr/^handle_/, qw ], +}); pod_coverage_ok('Test::Valgrind::Report'); pod_coverage_ok('Test::Valgrind::Session');