recurse-test.pl untested

filter: Statementstmt 0.0% 0 / 5 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 9 CC 2 SCAR 17.9
CC
2
Cov
0%
r
6.0
CRAP 6.0
1 sub r {
2 my $x = shift;
3  
4 warn "in $x";
5  
6 r(++$x) unless $x > 5;
7
8 warn "depth on way back: $x";
9 }
10  
11 r(2);