Enbld/Target/AttributeExtension/Command.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 75.0% 21 / 28 SCAR 14.5
CC
4
Cov
74%
make_command
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.3
« Enbld/HTML.pm ↑ Summary Enbld/Feature.pm »
1 package Enbld::Target::AttributeExtension::Command;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use parent qw/Enbld::Target::Attribute/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $make;
9  
10 sub make_command {
11  
12 138 ▶ return $make if $make;
Subroutine make_command: called CC=4 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if $Enbld::Target::AttributeExtension::Command::make 137 1 138
13  
14 1 ▶ if ( `which gmake` ) {
Branch: 2 branches
BranchTrueFalseTotal
if (`which gmake`) { } 1 0 1
elsif (`make -v 2>&1` =~ /GNU Make/) { } 0 0 0
15 1 return ( $make = 'gmake' );
16 } elsif ( `make -v 2>&1` =~ /GNU Make/ ) {
17 0 return ( $make = 'make' );
18 } else {
19 0 require Enbld::Error;
20 0 die( Enbld::Error->new( 'GNU Make is NOT installed' ));
21 }
22 }
23  
24 2 1;
« Enbld/HTML.pm ↑ Summary Enbld/Feature.pm »