t/test80-recurs.p

filter: Statementstmt 100% 4 / 4 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 2 SCAR 6.9
CC
2
Cov
100%
recurs
2.0
CRAP 2.0
« blib/lib/Devel/NYTProf/SubCallInfo.pm ↑ Summary t/test05.p »
1 48 ▶sub recurs {
Subroutine recurs: called CC=2 SCAR=6.9
2 48 my $depth = shift;
3 48 select(undef, undef, undef, 0.3);
4 48 ▶ recurs($depth-1) if $depth > 1;
Branch: 1 branch
BranchTrueFalseTotal
if $depth > 1 32 16 48
5 }
6  
7 16 recurs(3); # recurs gets called twice
8
« blib/lib/Devel/NYTProf/SubCallInfo.pm ↑ Summary t/test05.p »