pod-coverage.t 672 B

12345678910111213141516171819202122232425
  1. #!perl -T
  2. use 5.006;
  3. use strict;
  4. use warnings;
  5. use Test::More;
  6. unless ($ENV{RELEASE_TESTING}) {
  7. plan(skip_all => "Author tests not required for installation");
  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. # Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
  15. # but older versions don't recognize some common documentation styles
  16. my $min_pc = 0.18;
  17. eval "use Pod::Coverage $min_pc";
  18. plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
  19. if $@;
  20. all_pod_coverage_ok();