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

filter: Statementstmt 85.7% 18 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 3 / 3 totaltotal 87.1% 27 / 31 CC 2 SCAR 3.2
CC
2
Cov
86%
execute
2.0
to_code
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/ExtUtils/Builder/Action/Perl.pm ↑ Summary blib/lib/ExtUtils/Builder/FileSet/Subst.pm »
1 package ExtUtils::Builder::Action::Composite;
2 12 $ExtUtils::Builder::Action::Composite::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';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶sub _preference_map {
Subroutine _preference_map: called CC=1 SCAR=0.0
9 return {
10 1 flatten => 3,
11 execute => 2,
12 command => 1,
13 code => 0,
14 };
15 }
16  
17 22 ▶sub execute {
Subroutine execute: called CC=2 SCAR=6.9
Pod documented
18 22 my ($self, %opts) = @_;
19 22 $_->execute(%opts) for $self->flatten(%opts);
20 22 return;
21 }
22  
23 0 ▶sub to_code {
Subroutine to_code: not called CC=1 SCAR=6.9
Pod documented
24 0 my ($self, %opts) = @_;
25 0 return map { $_->to_code(%opts) } $self->flatten(%opts);
26 }
27  
28 3 ▶sub to_command {
Subroutine to_command: called CC=1 SCAR=0.0
Pod documented
29 3 my ($self, %opts) = @_;
30 3 return map { $_->to_command(%opts) } $self->flatten(%opts);
31 }
32  
33 12 1;
34  
35 # ABSTRACT: A base role for composite action classes
36  
37 __END__
« blib/lib/ExtUtils/Builder/Action/Perl.pm ↑ Summary blib/lib/ExtUtils/Builder/FileSet/Subst.pm »