example/nexting.pl

filter: Statementstmt 64.2% 9 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 66.6% 10 / 15 CC 1 SCAR 0.0
CC
1
Cov
64%
p
1.0
CRAP 1.0
« example/eval.pl ↑ Summary example/test-require.pl »
1 #!/usr/bin/env perl
2 # For testing next, next+ next-, step+, step-, and set different;
3 1 ▶sub p() {
Subroutine p: called CC=1 SCAR=0.0
4 1 return 5;
5 };
6  
7 # To have something to "step different" with.
8 1 my $x=1; my $y=2;
9 1 $x=$y; $y = 4; $x += $y;
10 1 $x=6; $y = p(); my $z = p();
11  
12 # To have something to "step" with
13 0 $x = 8;
14 0 $x += $y;
15 0 $x += $z;
16 0 $x += 5;
17 0 $x -= 5;
18  
« example/eval.pl ↑ Summary example/test-require.pl »