IsDev/Heuristic/TestDir.pm

filter: Statementstmt 100% 24 / 24 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 100% 35 / 35 CC 2 SCAR 2.2
CC
2
Cov
100%
matches
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« IsDev/Heuristic/MYMETA.pm ↑ Summary IsDev/Heuristic/Tool/Dzil.pm »
1 7 ▶use 5.008; # utf8
Subroutine BEGIN: called CC=1 SCAR=0.0
2 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Path::IsDev::Heuristic::TestDir;
7  
8 7 our $VERSION = '1.001003';
9  
10 # ABSTRACT: Determine if a path contains a t/ or xt/ directory
11  
12 7 our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29 7 ▶use Role::Tiny::With qw( with );
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 7 with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::Dir';
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42 6 ▶sub dirs {
Subroutine dirs: called CC=1 SCAR=0.0
Pod documented
43 6 return qw( xt t );
44 }
45  
46  
47  
48  
49  
50  
51  
52  
53  
54 6 ▶sub matches {
Subroutine matches: called CC=2 SCAR=6.9
Pod documented
55 6 my ( $self, $result_object ) = @_;
56 6 ▶ if ( $self->child_exists_any_dir( $result_object, $self->dirs ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->child_exists_any_dir($result_object, $self->dirs)) 1 5 6
57 1 $result_object->result(1);
58 1 return 1;
59 }
60 5 return;
61 }
62  
63 7 1;
64  
65 __END__
« IsDev/Heuristic/MYMETA.pm ↑ Summary IsDev/Heuristic/Tool/Dzil.pm »