Reading database from ...
------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/subs_only 100.0 n/a n/a 100.0 100.0
Total 100.0 n/a n/a 100.0 100.0
------------------------------------------ ------ ------ ------ ------ ------
Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...
tests/subs_only
line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2006-2013, 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__ test_parameters -subs_only,1
11
12 use strict;
13 use warnings;
14
15 use lib "tests";
16
17 my @x;
18
19 sub xx
20 {
21 11 11 $x[shift]++;
22 }
23
24 for (0 .. 10)
25 {
26 if (time)
27 {
28 xx(0);
29 }
30 else
31 {
32 $x[1]++;
33 }
34 }
Covered Subroutines
-------------------
Subroutine Count Location
---------- ----- ------------------
xx 11 tests/subs_only:21