blib/lib/ExtUtils/Builder/Action.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 66.6% 2 / 3 totaltotal 86.2% 25 / 29 CC 2 SCAR 4.1
CC
2
Cov
90%
preference
2.0
to_code_hash
2.0
BEGIN
1.0
CRAP 1.5
« blib/lib/ExtUtils/Builder/Serializer.pm ↑ Summary blib/lib/ExtUtils/Builder/FileSet/Filter.pm »
1 package ExtUtils::Builder::Action;
2 21 $ExtUtils::Builder::Action::VERSION = '0.020';
3 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 57 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7 57 my ($class, %args) = @_;
8 57 return bless { %args }, $class;
9 }
10  
11 10 ▶sub preference {
Subroutine preference: called CC=2 SCAR=6.9
Pod documented
12 10 my ($self, @possibilities) = @_;
13 10 my $map = $self->_preference_map;
14 10 ▶ my @keys = @possibilities ? @possibilities : keys %{$map};
Branch: 1 branch
BranchTrueFalseTotal
@possibilities ? : 5 5 10
15 10 my ($ret) = reverse sort { $map->{$a} <=> $map->{$b} } @keys;
16 10 return $ret;
17 }
18  
19 0 ▶sub to_code_hash {
Subroutine to_code_hash: not called CC=1 SCAR=6.9
Pod documented
20 0 my ($self, %opts) = @_;
21 return {
22 0 code => $self->to_code(%opts),
23 }
24 }
25  
26 21 1;
27  
28 #ABSTRACT: The ExtUtils::Builder Action role
29  
30 __END__
« blib/lib/ExtUtils/Builder/Serializer.pm ↑ Summary blib/lib/ExtUtils/Builder/FileSet/Filter.pm »