line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::File::IsSorted; |
2
|
|
|
|
|
|
|
$Test::File::IsSorted::VERSION = '0.0.6'; |
3
|
1
|
|
|
1
|
|
108743
|
use strict; |
|
1
|
|
|
|
|
56
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use parent 'Test::Builder::Module'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
966
|
use List::Util 1.34 qw/ all /; |
|
1
|
|
|
|
|
25
|
|
|
1
|
|
|
|
|
93
|
|
9
|
1
|
|
|
1
|
|
422
|
use File::IsSorted (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
121
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $CLASS = __PACKAGE__; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub are_sorted |
14
|
|
|
|
|
|
|
{ |
15
|
1
|
|
|
1
|
1
|
19788
|
my ( $paths, $name ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
13
|
my $tb = $CLASS->builder; |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
27
|
my $checker = File::IsSorted->new; |
20
|
|
|
|
|
|
|
return $tb->ok( |
21
|
|
|
|
|
|
|
scalar( |
22
|
2
|
|
|
2
|
|
24
|
all { $checker->is_file_sorted( +{ path => $_ } ); } |
23
|
1
|
|
|
|
|
44
|
@$paths |
24
|
|
|
|
|
|
|
), |
25
|
|
|
|
|
|
|
$name |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |