1use strict; 2use warnings; 3use Test::More; 4 5unless ( $ENV{RELEASE_TESTING} ) { 6 plan( skip_all => "Author tests not required for installation" ); 7} 8 9# Ensure a recent version of Test::Pod::Coverage 10my $min_tpc = 1.08; 11eval "use Test::Pod::Coverage $min_tpc"; 12plan 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 17my $min_pc = 0.18; 18eval "use Pod::Coverage $min_pc"; 19plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" 20 if $@; 21 22all_pod_coverage_ok({ also_private => [qw/BUILDARGS/] }); 23done_testing; 24