Enbld/Target/Attribute/CommandInstall.pm

filter: Statementstmt 80.9% 17 / 21 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 71.8% 23 / 32 CC 3 SCAR 9.0
CC
3
Cov
72%
initialize
4.4
BEGIN
1.0
BEGIN
1.0
CRAP 2.5
« Enbld/Target/Attribute/CommandConfigure.pm ↑ Summary Enbld/Target/Attribute/CommandMake.pm »
1 package Enbld::Target::Attribute::CommandInstall;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent qw/Enbld::Target::AttributeExtension::Command/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 46 ▶sub initialize {
Subroutine initialize: called CC=3 SCAR=14.8
Pod undocumented
9 46 my ( $self, $param ) = @_;
10  
11 46 ▶ if ( ! defined $param ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $param) 46 0 46
12  
13 46 $self->{value} = $self->make_command . ' install';
14 46 $self->{is_evaluated}++;
15  
16 46 return $self;
17 }
18  
19 0 ▶ if ( $param ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($param) 0 0 0
20 0 $self->SUPER::initialize( $param );
21 0 return $self;
22 }
23  
24 # empty string is valid.
25 0 $self->{is_evaluated}++;
26 }
27  
28 56 ▶sub validate {
Subroutine validate: called CC=1 SCAR=0.0
Pod undocumented
29 56 my ( $self, $string ) = @_;
30  
31 # nothing check now.
32  
33 56 return $string;
34 }
35  
36 1 1;
« Enbld/Target/Attribute/CommandConfigure.pm ↑ Summary Enbld/Target/Attribute/CommandMake.pm »