t/zoidrc

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 77.1% 27 / 35 CC 3 SCAR 5.3
CC
3
Cov
85%
__ANON__
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.7
« b/ModuleBuildZoid.pm ↑ Summary b/test.PL »
1  
2 45 ▶use Zoidberg::Shell qw/alias/;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 45 ▶use Zoidberg::Utils qw/output error/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 45 alias { test => 'echo ok' };
6  
7 7 ▶Zoidberg::Shell->current()->{commands}{builtin_cat} = sub {
Subroutine __ANON__: called CC=2 SCAR=7.1
8 7 my $file = shift;
9 7 ▶ open FILE, $file || error "could not open $file";
Condition33%1/3
$file || error("could not open $file")
l!l&&r!l&&!r
700
MC/DC0%0/2
$file || error("could not open $file")
$file error("could not open $file")
Truth table33%1/3
A || B
A= $fileB= error("could not open $file")
ABresult
1X1
011
000
10 7 local $/;
11 7 my @lines = <FILE>;
12 7 close FILE;
13 7 output \@lines;
14 45 };
15  
16 5 ▶Zoidberg::Shell->current()->{commands}{builtin_cat_1} = sub {
Subroutine __ANON__: called CC=2 SCAR=7.1
17 5 my $file = shift;
18 5 ▶ open FILE, $file || error "could not open $file";
Condition33%1/3
$file || error("could not open $file")
l!l&&r!l&&!r
500
MC/DC0%0/2
$file || error("could not open $file")
$file error("could not open $file")
Truth table33%1/3
A || B
A= $fileB= error("could not open $file")
ABresult
1X1
011
000
19 5 local $/;
20 5 my $lines = join '', <FILE>;
21 5 close FILE;
22 5 output $lines;
23 45 };
« b/ModuleBuildZoid.pm ↑ Summary b/test.PL »