blib/lib/Test/File/IsSorted.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 31 / 31 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/App/File/IsSorted.pm ↑ Summary
1 package Test::File::IsSorted;
2 2 $Test::File::IsSorted::VERSION = '0.0.6';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use parent 'Test::Builder::Module';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use List::Util 1.34 qw/ all /;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use File::IsSorted ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 my $CLASS = __PACKAGE__;
12  
13 sub are_sorted
14 {
15 1 ▶ my ( $paths, $name ) = @_;
Subroutine are_sorted: called CC=1 SCAR=0.0
Pod documented
16  
17 1 my $tb = $CLASS->builder;
18  
19 1 my $checker = File::IsSorted->new;
20 return $tb->ok(
21 scalar(
22 2 ▶ all { $checker->is_file_sorted( +{ path => $_ } ); }
Subroutine __ANON__: called CC=1 SCAR=0.0
23 1 @$paths
24 ),
25 $name
26 );
27 }
28  
29 2 1;
30  
31 __END__
« blib/lib/App/File/IsSorted.pm ↑ Summary