Reading database from ...
------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/module_statements 75.8 50.0 n/a 66.6 72.5
Total 75.8 50.0 n/a 66.6 72.5
------------------------------------------ ------ ------ ------ ------ ------
Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...
tests/module_statements
line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2002-2016, 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 # __COVER__ changes s/56.3/56.2/
11
12 1 1 use strict;
1
1
13 1 1 use warnings;
1
1
14
15 1 1 use lib "tests";
1
1
16
17 1 1 use Module1;
1
1
18
19 1 my @x;
20
21 sub xx {
22 11 11 $x[shift]++;
23 11 Module1::zz(0);
24 }
25
26 1 for (0 .. 10) {
27 *** 11 50 if (time) {
28 11 xx(0);
29 } else {
30 *** 0 $x[1]++;
31 }
32 }
33 # Copyright 2002-2016, Paul Johnson (paul@pjcj.net)
34
35 # This software is free. It is licensed under the same terms as Perl itself.
36
37 # The latest version of this software should be available from my homepage:
38 # http://www.pjcj.net
39
40 package Module1;
41
42 1 my $y = 7;
43 1 $y++;
44
45 sub _aa {
46 *** 0 0 $y++;
47 *** 0 die;
48 *** 0 die;
49 }
50
51 sub xx {
52 *** 0 0 $y++;
53 *** 0 die;
54 }
55
56 sub yy {
57 *** 0 0 $y++;
58 }
59
60 sub zz {
61 11 11 my $x = shift;
62 11 $x++;
63 }
64
65 1
66
67 __END__
Branches
--------
line err % true false branch
----- --- ------ ------ ------ ------
27 *** 50 11 0 if (time) { }
Covered Subroutines
-------------------
Subroutine Count Location
---------- ----- --------------------------
BEGIN 1 tests/module_statements:12
BEGIN 1 tests/module_statements:13
BEGIN 1 tests/module_statements:15
BEGIN 1 tests/module_statements:17
xx 11 tests/module_statements:22
zz 11 tests/module_statements:61
Uncovered Subroutines
---------------------
Subroutine Count Location
---------- ----- --------------------------
_aa 0 tests/module_statements:46
xx 0 tests/module_statements:52
yy 0 tests/module_statements:57