Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 66 lines (53 sloc) 2.475 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
Reading database from ...


------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/default_param 100.0 n/a 100.0 100.0 100.0
Total 100.0 n/a 100.0 100.0 100.0
------------------------------------------ ------ ------ ------ ------ ------


Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...

tests/default_param

line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2004-2012, 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 sub p
14 {
15 2 100 2 my $x = shift || 11;
16 2 100 my $y = shift || [];
17 2 100 my $z = shift || {};
18 }
19
20 1 p $_, $_, $_ for 0, 1;


Conditions
----------

or 2 conditions

line err % l !l expr
----- --- ------ ------ ------ ----
15 100 1 1 shift() || 11
16 100 1 1 shift() || []
17 100 1 1 shift() || {}


Covered Subroutines
-------------------

Subroutine Count Location
---------- ----- ----------------------
BEGIN 1 tests/default_param:10
BEGIN 1 tests/default_param:11
p 2 tests/default_param:15
Something went wrong with that request. Please try again.