IsDev/NegativeHeuristic/IsDev/IgnoreFile.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 94.1% 32 / 34 CC 2 SCAR 2.5
CC
2
Cov
92%
excludes
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« IsDev/Heuristic/VCS/Git.pm ↑ Summary IsDev/Heuristic/Changelog.pm »
1 12 ▶use 5.008; # utf8
Subroutine BEGIN: called CC=1 SCAR=0.0
2 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Path::IsDev::NegativeHeuristic::IsDev::IgnoreFile;
7  
8 12 our $VERSION = '1.001003';
9  
10 # ABSTRACT: An explicit exclusion file heuristic
11  
12 12 our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51 12 ▶use Role::Tiny::With qw( with );
Subroutine BEGIN: called CC=1 SCAR=0.0
52 12 with 'Path::IsDev::Role::NegativeHeuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File';
53  
54  
55  
56  
57  
58  
59  
60  
61  
62 16 ▶sub excludes_files {
Subroutine excludes_files: called CC=1 SCAR=0.0
Pod documented
63 16 return ('.path_isdev_ignore');
64 }
65  
66  
67  
68  
69  
70  
71  
72 16 ▶sub excludes {
Subroutine excludes: called CC=2 SCAR=7.6
Pod documented
73 16 my ( $self, $result_object ) = @_;
74 16 ▶ if ( $self->child_exists_any_file( $result_object, $self->excludes_files ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->child_exists_any_file($result_object, $self->excludes_files)) 0 16 16
75 0 return 1;
76 }
77 16 return;
78 }
79 12 1;
80  
81 __END__
« IsDev/Heuristic/VCS/Git.pm ↑ Summary IsDev/Heuristic/Changelog.pm »