Debian Codegraph @

xt/release/trailing-space.t

raw
1 #!perl
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7
8 eval "use Test::TrailingSpace";
9 if ($@)
10 {
11 plan skip_all => "Test::TrailingSpace required for trailing space test.";
12 }
13 else
14 {
15 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->new(
21 {
22 root => '.',
23 filename_regex => qr#(?:\.(?:t|pm|pl|xs|c|h|txt|pod|PL)|README|Changes|TODO|LICENSE)\z#,
24 },
25 );
26
27 # TEST
28 $finder->no_trailing_space(
29 "No trailing space was found."
30 );