lib/Module/Install/Scripts.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 43.5% 17 / 39 CC 6 SCAR 32.4
CC
6
Cov
43%
install_script
42.0
BEGIN
1.0
BEGIN
1.0
CRAP 25.6
« lib/Module/Install/Admin.pm ↑ Summary lib/Module/Install/Inline.pm »
1 package Module::Install::Scripts;
2  
3 46 ▶use strict 'vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 46 ▶use Module::Install::Base ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 46 ▶use vars qw{$VERSION @ISA $ISCORE};
Subroutine BEGIN: called CC=1 SCAR=0.0
7 46 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
8 46 $VERSION = '1.21';
9 46 @ISA = 'Module::Install::Base';
10 46 $ISCORE = 1;
11 }
12  
13 0 ▶sub install_script {
Subroutine install_script: not called CC=6 SCAR=37.4
Pod undocumented
14 0 my $self = shift;
15 0 my $args = $self->makemaker_args;
16 0 ▶ my $exe = $args->{EXE_FILES} ||= [];
Condition0%0/2
$args->{"EXE_FILES"} ||= []
l!l
00
MC/DC0%0/1
$args->{"EXE_FILES"} ||= []
$args->{"EXE_FILES"}
Truth table0%0/2
A
A= $args->{"EXE_FILES"}
Aresult
11
00
17 0 foreach ( @_ ) {
18 0 ▶ if ( -f $_ ) {
Branch: 2 branches
BranchTrueFalseTotal
if (-f $_) { } 0 0 0
elsif (-d 'script' and -f "script/$_") { } 0 0 0
19 0 push @$exe, $_;
20 ▶ } elsif ( -d 'script' and -f "script/$_" ) {
Condition0%0/3
-d "script" and -f "script/$_"
!ll&&!rl&&r
000
MC/DC0%0/2
-d "script" and -f "script/$_"
-d "script" -f "script/$_"
Truth table0%0/3
A and B
A= -d "script"B= -f "script/$_"
ABresult
0X0
100
111
21 0 push @$exe, "script/$_";
22 } else {
23 0 die("Cannot find script '$_'");
24 }
25 }
26 }
27  
28 46 1;
« lib/Module/Install/Admin.pm ↑ Summary lib/Module/Install/Inline.pm »