Reading database from /home/pjcj/g/perl/dev/Devel-Cover-0.3209/cover_db
------------------------------------------ ------ ------ ------ ------ ------
File stmt branch cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/Alias1.pm 100.00 100.00 n/a 100.00 100.00
tests/alias1 100.00 n/a n/a n/a 100.00
Total 100.00 100.00 n/a 100.00 100.00
------------------------------------------ ------ ------ ------ ------ ------
tests/Alias1.pm
line err stmt branch cond sub code
1 # Copyright 2004, Paul Johnson (pjcj@cpan.org)
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 Alias1;
9
10 use strict;
11 use warnings;
12
13 use Exporter;
14
15 our @ISA = qw(Exporter);
16 our @EXPORT = qw(is_3digits);
17
18 sub is_3digits {
19 2 100 my $val = shift;
20 2 my $retval = undef;
21 2 100 $retval=1 if $val =~ /^\d{3}$/;
22 2 return $retval;
23 }
24
25 1;
Branches
--------
line err % true false branch
----- --- ------ ------ ------ ------
21 100 1 1 if $val =~ /^\d{3}$/
Covered Subroutines
-------------------
Subroutine Location
---------- ------------------
is_3digits tests/Alias1.pm:19
tests/alias1
line err stmt branch cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2004, Paul Johnson (pjcj@cpan.org)
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 strict;
11 use warnings;
12 use lib "tests";
13
14 use Alias1;
15
16 1 is_3digits(1234);
17 1 is_3digits(123);
18
19 1 exit;