b/test.PL

filter: Statementstmt 100% 10 / 10 Branchbran 50.0% 1 / 2 Conditioncond 40.0% 2 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 66.6% 14 / 21 CC 1 SCAR 0.0
CC
1
Cov
76%
BEGIN
1.0
CRAP 1.0
« t/zoidrc ↑ Summary blib/cat »
1  
2 1 ▶use Module::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 my $b = Module::Build->current;
5 1 my $perl = $b->perl;
6  
7 1 for (
8 [
9 $b->localize_file_path('blib/cat'),
10 qq{#!$perl\nopen FILE, \$ARGV[0] || die "\$0: could not open \$ARGV[0]";} .
11 qq{\nlocal \$/;\nprint <FILE>;\nclose FILE;\n}
12 ],
13 [
14 $b->localize_file_path('blib/echo'),
15 qq{#!$perl\nprint join(q/ /, \@ARGV), "\\n";\n}
16 ],
17 [
18 $b->localize_file_path('blib/false'),
19 qq{#!$perl\nexit 1;\n}
20 ],
21 [
22 $b->localize_file_path('blib/true'),
23 qq{#!$perl\nexit 0;\n}
24 ],
25 ) {
26 4 ▶ open FILE, ">$$_[0]" || die "Could not write to file: $$_[0]";
Condition50%1/2
">$_->[0]" || die("Could not write to file: $_->[0]")
l!l
40
MC/DC0%0/1
">$_->[0]" || die("Could not write to file: $_->[0]")
">$_->[0]"
Truth table50%1/2
A
A= ">$_->[0]"
Aresult
11
00
27 4 print FILE $$_[1];
28 4 ▶ close FILE || die "Could not write to file: $$_[0]";
Branch: 1 branch
BranchTrueFalseTotal
close FILE or die "Could not write to file: $_->[0]" 4 0 4
29 4 ▶ chmod 0755, $$_[0] || $!;
Condition33%1/3
$_->[0] || $!
l!l&&r!l&&!r
400
MC/DC0%0/2
$_->[0] || $!
$_->[0] $!
Truth table33%1/3
A || B
A= $_->[0]B= $!
ABresult
1X1
011
000
30 }
31  
« t/zoidrc ↑ Summary blib/cat »