Reading database from ...
------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/t2 93.7 50.0 n/a 100.0 84.0
Total 93.7 50.0 n/a 100.0 84.0
------------------------------------------ ------ ------ ------ ------ ------
Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...
tests/t2
line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2002-2014, Paul Johnson (paul@pjcj.net)
4
5 # This software is free. It is licensed under the same terms as Perl itself.
6
7 # The latest version of this software should be available from my homepage:
8 # http://www.pjcj.net
9
10 1 1 use strict;
1
1
11 1 1 use warnings;
1
1
12
13 1 my @x;
14
15 sub xx {
16 11 11 $x[shift]++;
17 }
18
19 1 for (0 .. 10) {
20 time &&
21 *** 11 50 $x[1]++;
22
23 *** 11 50 $x[2]++
24 if time;
25
26 11 for (0 .. 2) {
27 33 $x[3]++;
28 }
29
30 *** 11 50 if (time) {
31 11 xx(4);
32 } else {
33 *** 0 $x[5]++;
34 }
35 }
Branches
--------
line err % true false branch
----- --- ------ ------ ------ ------
21 *** 50 11 0 if time
23 *** 50 11 0 if time
30 *** 50 11 0 if (time) { }
Covered Subroutines
-------------------
Subroutine Count Location
---------- ----- -----------
BEGIN 1 tests/t2:10
BEGIN 1 tests/t2:11
xx 11 tests/t2:16