| 1 | #!perl |
| 2 | |
| 3 | use strictscip-perl cpan File-Find-Object 0.3.9 strict/; |
| 4 | use warningsscip-perl cpan File-Find-Object 0.3.9 warnings/; |
| 5 | |
| 6 | use Test::Morescip-perl cpan File-Find-Object 0.3.9 Test/More/; |
| 7 | |
| 8 | eval "use Test::TrailingSpace"; |
| 9 | if ($@scip-perl cpan File-Find-Object 0.3.9 main/`$@`.) |
| 10 | { |
| 11 | planscip-perl cpan File-Find-Object 0.3.9 main/plan(). skip_all => "Test::TrailingSpace required for trailing space test."; |
| 12 | } |
| 13 | else |
| 14 | { |
| 15 | planscip-perl cpan File-Find-Object 0.3.9 main/plan(). tests => 1; |
| 16 | } |
| 17 | |
| 18 | # TODO: add .pod, .PL, the README/Changes/TODO/etc. documents and possibly |
| 19 | # some other stuff. |
| 20 | my $finder = Test::TrailingSpace->newscip-perl cpan File-Find-Object 0.3.9 Test/TrailingSpace/new().( |
| 21 | { |
| 22 | root => '.', |
| 23 | filename_regex => qr#(?:\.(?:t|pm|pl|xs|c|h|txt|pod|PL)|README|Changes|TODO|LICENSE)\z#, |
| 24 | abs_path_prune_re => undef, |
| 25 | }, |
| 26 | ); |
| 27 | |
| 28 | # TEST |
| 29 | $finder->no_trailing_spacescip-perl cpan File-Find-Object 0.3.9 Test/TrailingSpace/no_trailing_space().( |
| 30 | "No trailing space was found." |
| 31 | ); |