blib/lib/ExtUtils/Builder/Action/Perl.pm

filter: Statementstmt 88.8% 16 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 2 / 2 totaltotal 85.7% 24 / 28 CC 2 SCAR 3.6
CC
2
Cov
85%
to_code_hash
2.0
message
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/ExtUtils/Builder/FileSet/Filter.pm ↑ Summary blib/lib/ExtUtils/Builder/Action/Composite.pm »
1 package ExtUtils::Builder::Action::Perl;
2 12 $ExtUtils::Builder::Action::Perl::VERSION = '0.020';
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 ▶use parent 'ExtUtils::Builder::Action::Primitive';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 7 ▶sub _preference_map {
Subroutine _preference_map: called CC=1 SCAR=0.0
9 return {
10 7 execute => 3,
11 code => 2,
12 command => 1,
13 flatten => 0,
14 };
15 }
16  
17 0 ▶sub message {
Subroutine message: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19 0 return $self->{message};
20 }
21  
22 3 ▶sub to_code_hash {
Subroutine to_code_hash: called CC=2 SCAR=7.0
Pod documented
23 3 my ($self, %opts) = @_;
24 3 my %result = (
25 modules => [ $self->modules ],
26 code => $self->to_code(skip_loading => 1, %opts),
27 );
28 3 ▶ $result{message} = $self->{message} if defined $self->{message};
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"message"} 0 3 3
29 3 return \%result;
30 }
31  
32 12 1;
33  
34 # ABSTRACT: A base-role for Code actions
35  
36 __END__
« blib/lib/ExtUtils/Builder/FileSet/Filter.pm ↑ Summary blib/lib/ExtUtils/Builder/Action/Composite.pm »