corpus/stack.pl

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« corpus/calc.pl ↑ Summary
1 #!perl
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use String::Koremutake;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 my $k = String::Koremutake->new;
7 1 my %hash = ('a' => 1);
8  
9 1 show();
10 1 show(1, undef, 2);
11 1 show(123);
12 1 show(-0.3);
13 1 show('a');
14 1 show('orange o rama');
15 1 show([]);
16 1 show({});
17 1 show($k);
18  
19 9 ▶sub show {
Subroutine show: called CC=1 SCAR=0.0
20 9 my($first, @rest) = @_;
21 9 print $first, @rest, "\n";
22 9 my $n = 1;
23 }
« corpus/calc.pl ↑ Summary