IsDev/Role/HeuristicSet/Simple.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 33 / 33 CC 3 SCAR 5.6
CC
3
Cov
100%
modules
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« IsDev/Role/Matcher/FullPath/Is/Any.pm ↑ Summary IsDev/Object.pm »
1 13 ▶use 5.008; # utf8
Subroutine BEGIN: called CC=1 SCAR=0.0
2 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Path::IsDev::Role::HeuristicSet::Simple;
7  
8 13 our $VERSION = '1.001003';
9  
10 # ABSTRACT: Simple excludes/includes set
11  
12 13 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 13 ▶use Role::Tiny qw( with requires );
Subroutine BEGIN: called CC=1 SCAR=0.0
47  
48 13 with 'Path::IsDev::Role::HeuristicSet';
49 13 requires 'heuristics', 'negative_heuristics';
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60 16 ▶sub modules {
Subroutine modules: called CC=3 SCAR=11.0
Pod documented
61 16 my ($self) = @_;
62 16 my @out;
63 16 for my $heur ( $self->negative_heuristics ) {
64 48 push @out, $self->_expand_negative_heuristic($heur);
65 }
66 16 for my $heur ( $self->heuristics ) {
67 160 push @out, $self->_expand_heuristic($heur);
68 }
69 16 return @out;
70 }
71  
72 13 1;
73  
74 __END__
« IsDev/Role/Matcher/FullPath/Is/Any.pm ↑ Summary IsDev/Object.pm »