| 1 | use Test::Morescip-perl cpan WWW-Mechanize-FormFiller 0.13 Test/More/; |
| 2 | |
| 3 | # Check our Pod |
| 4 | # The test was provided by Andy Lester, |
| 5 | # who stole it from Brian D. Foy |
| 6 | # Thanks to both ! |
| 7 | |
| 8 | use File::Specscip-perl cpan WWW-Mechanize-FormFiller 0.13 File/Spec/; |
| 9 | use File::Findscip-perl cpan WWW-Mechanize-FormFiller 0.13 File/Find/; |
| 10 | use strictscip-perl cpan WWW-Mechanize-FormFiller 0.13 strict/; |
| 11 | |
| 12 | eval { |
| 13 | requirescip-perl cpan WWW-Mechanize-FormFiller 0.13 main/require(). Test::Pod; |
| 14 | Test::Pod->importscip-perl cpan WWW-Mechanize-FormFiller 0.13 Test/Pod/import().; |
| 15 | }; |
| 16 | |
| 17 | my @files; |
| 18 | |
| 19 | if ($@scip-perl cpan WWW-Mechanize-FormFiller 0.13 main/`$@`.) { |
| 20 | planscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/plan(). skip_all => "Test::Pod required for testing POD"; |
| 21 | } |
| 22 | elsif ($Test::Pod::VERSIONscip-perl cpan WWW-Mechanize-FormFiller 0.13 Test/Pod/$VERSION. < 0.95) { |
| 23 | planscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/plan(). skip_all => "Test::Pod 0.95 required for testing POD"; |
| 24 | } |
| 25 | else { |
| 26 | my $blib = File::Spec->catfilescip-perl cpan WWW-Mechanize-FormFiller 0.13 File/Spec/catfile().(qw(blib lib)); |
| 27 | findscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/find().(\&wantedscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/wanted()., grepscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/grep(). { -d } ($blib, 'bin')); |
| 28 | planscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/plan(). tests => scalarscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/scalar(). @files; |
| 29 | foreach my $file (@files) { |
| 30 | pod_file_okscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/pod_file_ok().($file); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | sub wantedscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/wanted(). { |
| 35 | pushscip-perl cpan WWW-Mechanize-FormFiller 0.13 main/push(). @files, $File::Find::namescip-perl cpan WWW-Mechanize-FormFiller 0.13 File/Find/$name. if /\.p(l|m|od)$/; |
| 36 | } |