example/callbug.pl

filter: Statementstmt 37.5% 3 / 8 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod n/a totaltotal 30.7% 4 / 13 CC 1 SCAR 2.9
CC
1
Cov
30%
iamok
2.0
iamnotok
1.0
BEGIN
1.0
CRAP 1.3
« lib/Devel/Trepan/CmdProcessor/Command/Run.pm ↑ Summary example/my.pl »
1 0 ▶sub iamok {
Subroutine iamok: not called CC=1 SCAR=6.9
2 0 print "iamok\n";
3 }
4 0 ▶sub iamnotok {
Subroutine iamnotok: not called CC=1 SCAR=0.2
5 1 ▶ no warnings qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 print "iamnotok\n";
7 }
8 0 ▶if (scalar @ARGV) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @ARGV) { } 0 0 0
9 0 iamnotok(@ARGV);
10 } else {
11 0 iamok();
12 }
« lib/Devel/Trepan/CmdProcessor/Command/Run.pm ↑ Summary example/my.pl »