1unless ($ENV{'TEST_POD_COVERAGE'}) { 2 $|++; 3 print "1..0 # Skipped: To enable POD coverage test set TEST_POD_COVERAGE=1\n"; 4 exit; 5} 6 7eval { 8 require Test::More; 9}; 10if ($@) { 11 $|++; 12 print "1..0 # Skipped: Test::More required for testing POD. Skipping.\n"; 13 exit; 14} 15 16eval { 17 require Test::Pod; 18}; 19if ($@ or (not defined $Test::Pod::VERSION) or ($Test::Pod::VERSION < 1.00)) { 20 Test::More::plan (skip_all => "Test::Pod 1.00 required for testing POD"); 21 exit; 22} 23 24Test::Pod::all_pod_files_ok(); 25 26