Reading database from ...
------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/E2.pm 100.0 n/a n/a 100.0 100.0
tests/E3.pm 100.0 n/a n/a 100.0 100.0
tests/eval_merge 66.6 50.0 50.0 n/a 62.5
Total 71.4 50.0 50.0 100.0 70.0
------------------------------------------ ------ ------ ------ ------ ------
Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...
tests/E2.pm
line err stmt bran cond sub code
1 # Copyright 2004-2014, Paul Johnson (paul@pjcj.net)
2
3 # This software is free. It is licensed under the same terms as Perl itself.
4
5 # The latest version of this software should be available from my homepage:
6 # http://www.pjcj.net
7
8 package E2;
9
10 print "E2\n";
11
12 1 1 sub E2 { print "E2::E2\n" }
13
14 1
Covered Subroutines
-------------------
Subroutine Count Location
---------- ----- --------------
E2 1 tests/E2.pm:12
tests/E3.pm
line err stmt bran cond sub code
1 # Copyright 2004-2014, Paul Johnson (paul@pjcj.net)
2
3 # This software is free. It is licensed under the same terms as Perl itself.
4
5 # The latest version of this software should be available from my homepage:
6 # http://www.pjcj.net
7
8 package E3;
9
10 print "E3\n";
11
12 1 1 sub E3 { print "E3::E3\n" }
13
14 1
Covered Subroutines
-------------------
Subroutine Count Location
---------- ----- --------------
E3 1 tests/E3.pm:12
tests/eval_merge
line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 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 use lib "tests";
11
12 *** 1 50 $x = shift || 0;
13 1 print "1 - $x\n";
14 *** 1 50 if (!$x) {
15 1 eval "use E2"; eval "use E3";
1
16 1 E2::E2(); E3::E3();
1
17 } else {
18 *** 0 eval "use E3"; eval "use E4";
*** 0
19 *** 0 E3::E3(); E4::E4();
*** 0
20 }
21 1 print "2 - $x\n";
Branches
--------
line err % true false branch
----- --- ------ ------ ------ ------
14 *** 50 1 0 if (not $x) { }
Conditions
----------
or 2 conditions
line err % l !l expr
----- --- ------ ------ ------ ----
12 *** 50 0 1 shift @ARGV || 0