Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create golden results for 5.13.5.
Constant statement merging has produced output changes.
  • Loading branch information
pjcj committed Sep 20, 2010
1 parent 792648d commit a2b66da
Show file tree
Hide file tree
Showing 30 changed files with 3,245 additions and 0 deletions.
30 changes: 30 additions & 0 deletions MANIFEST
Expand Up @@ -43,6 +43,7 @@ MANIFEST This list of files
MANIFEST.SKIP
META.yml
README
t/internal/criteria.t
t/regexp/regexp_eval.t
tests/.uncoverable
tests/alias
Expand Down Expand Up @@ -110,96 +111,125 @@ utils/session.vim
test_output/cover/alias.5.006001
test_output/cover/alias1.5.006001
test_output/cover/alias1.5.008
test_output/cover/alias1.5.013005
test_output/cover/branch_return_sub.5.006001
test_output/cover/branch_return_sub.5.008
test_output/cover/branch_return_sub.5.013005
test_output/cover/change.5.006001
test_output/cover/cond_and.5.006001
test_output/cover/cond_and.5.008
test_output/cover/cond_and.5.008001
test_output/cover/cond_and.5.013005
test_output/cover/cond_branch.5.006001
test_output/cover/cond_branch.5.008
test_output/cover/cond_branch.5.008001
test_output/cover/cond_branch.5.012000
test_output/cover/cond_branch.5.013001
test_output/cover/cond_branch.5.013005
test_output/cover/cond_or.5.006001
test_output/cover/cond_or.5.006002
test_output/cover/cond_or.5.008
test_output/cover/cond_or.5.008001
test_output/cover/cond_or.5.010000
test_output/cover/cond_or.5.013005
test_output/cover/cond_xor.5.006001
test_output/cover/cond_xor.5.008
test_output/cover/cond_xor.5.008001
test_output/cover/cond_xor.5.013005
test_output/cover/default_param.5.006001
test_output/cover/default_param.5.008
test_output/cover/default_param.5.008001
test_output/cover/default_param.5.013001
test_output/cover/default_param.5.013005
test_output/cover/deparse.5.006001
test_output/cover/deparse.5.008
test_output/cover/deparse.5.013005
test_output/cover/destroy.5.006001
test_output/cover/dynamic_subs.5.006001
test_output/cover/dynamic_subs.5.008
test_output/cover/dynamic_subs.5.008001
test_output/cover/dynamic_subs.5.008002
test_output/cover/dynamic_subs.5.013005
test_output/cover/eval1.5.006001
test_output/cover/eval1.5.008
test_output/cover/eval1.5.013005
test_output/cover/eval2.5.006001
test_output/cover/eval2.5.008
test_output/cover/eval2.5.013005
test_output/cover/eval3.5.006001
test_output/cover/eval3.5.008
test_output/cover/eval3.5.013005
test_output/cover/eval_sub.t.5.006001
test_output/cover/eval_sub.t.5.008
test_output/cover/eval_sub.t.5.013005
test_output/cover/eval_use.t.5.006001
test_output/cover/eval_use.t.5.008
test_output/cover/eval_use.t.5.013005
test_output/cover/exec.5.006001
test_output/cover/fork.5.006001
test_output/cover/if.5.006001
test_output/cover/if.5.008
test_output/cover/if.5.013005
test_output/cover/inc_sub.5.006001
test_output/cover/inc_sub.5.008
test_output/cover/inc_sub.5.010000
test_output/cover/inc_sub.5.013005
test_output/cover/md5.5.006001
test_output/cover/module1.5.006001
test_output/cover/module1.5.008
test_output/cover/module1.5.008001
test_output/cover/module1.5.013005
test_output/cover/module2.5.006001
test_output/cover/module2.5.008
test_output/cover/module2.5.008001
test_output/cover/module2.5.013005
test_output/cover/module_ignore.5.006001
test_output/cover/module_ignore.5.008
test_output/cover/module_ignore.5.008001
test_output/cover/module_ignore.5.013005
test_output/cover/module_import.5.006001
test_output/cover/module_import.5.008
test_output/cover/module_import.5.008001
test_output/cover/module_import.5.013005
test_output/cover/module_relative.5.006001
test_output/cover/module_relative.5.008
test_output/cover/module_relative.5.008001
test_output/cover/module_relative.5.013005
test_output/cover/overload_bool.5.006001
test_output/cover/overload_bool.5.008
test_output/cover/overload_bool.5.013005
test_output/cover/overloaded.5.006001
test_output/cover/overloaded.5.008
test_output/cover/overloaded.5.013005
test_output/cover/pod.5.006001
test_output/cover/pod.5.008
test_output/cover/pod_nocp.5.006001
test_output/cover/pod_nocp.5.008
test_output/cover/require.5.006001
test_output/cover/require.5.008
test_output/cover/require.5.013005
test_output/cover/skip.5.006001
test_output/cover/sort.5.006001
test_output/cover/sort.5.008
test_output/cover/sort.5.013005
test_output/cover/special_blocks.5.006001
test_output/cover/special_blocks.5.008
test_output/cover/special_blocks.5.008001
test_output/cover/special_blocks.5.010000
test_output/cover/special_blocks.5.013005
test_output/cover/statement.5.006001
test_output/cover/subs_only.5.006001
test_output/cover/t0.5.006001
test_output/cover/t0.5.008
test_output/cover/t0.5.008001
test_output/cover/t0.5.013005
test_output/cover/t1.5.006001
test_output/cover/t1.5.008
test_output/cover/t1.5.013005
test_output/cover/t2.5.006001
test_output/cover/t2.5.008
test_output/cover/t2.5.008001
test_output/cover/t2.5.013005
test_output/cover/trivial.5.006001
test_output/cover/uncoverable.5.006001
test_output/cover/uncoverable.5.012000
109 changes: 109 additions & 0 deletions test_output/cover/alias1.5.013005
@@ -0,0 +1,109 @@
Reading database from ...


------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/Alias1.pm 100.0 100.0 n/a 100.0 100.0
tests/alias1 100.0 n/a n/a 100.0 100.0
Total 100.0 100.0 n/a 100.0 100.0
------------------------------------------ ------ ------ ------ ------ ------


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

tests/Alias1.pm

line err stmt bran cond sub code
1 # Copyright 2004-2010, 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 1 1 use strict;
1
11 1 1 use warnings;
1
12
13 1 1 use Exporter;
1
14
15 our @ISA = qw(Exporter);
16 our @EXPORT = qw(is_3digits);
17
18 sub is_3digits {
19 2 2 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 Count Location
---------- ----- ------------------
BEGIN 1 tests/Alias1.pm:10
BEGIN 1 tests/Alias1.pm:11
BEGIN 1 tests/Alias1.pm:13
is_3digits 2 tests/Alias1.pm:19


tests/alias1

line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2004-2010, 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 1 1 use strict;
1
11 1 1 use warnings;
1
12 1 1 use lib "tests";
1
13
14 1 1 use Alias1;
1
15
16 1 is_3digits(1234);
17 1 is_3digits(123);
18
19 1 exit;


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

Subroutine Count Location
---------- ----- ---------------
BEGIN 1 tests/alias1:10
BEGIN 1 tests/alias1:11
BEGIN 1 tests/alias1:12
BEGIN 1 tests/alias1:14


78 changes: 78 additions & 0 deletions test_output/cover/branch_return_sub.5.013005
@@ -0,0 +1,78 @@
Reading database from ...


------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/branch_return_sub 100.0 100.0 100.0 100.0 100.0
Total 100.0 100.0 100.0 100.0 100.0
------------------------------------------ ------ ------ ------ ------ ------


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

tests/branch_return_sub

line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2004-2010, 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 1 1 use strict;
1
11 1 1 use warnings;
1
12
13 sub my_sqrt
14 {
15 3 3 my $n = shift;
16
17 3 100 100 if ( !defined($n) || ($n < 0) ) {
18 2 return undef;
19 }
20
21 1 return sqrt($n);
22 }
23
24 1 my_sqrt(25);
25 1 my_sqrt(-2);
26 1 my_sqrt(undef);


Branches
--------

line err % true false branch
----- --- ------ ------ ------ ------
17 100 2 1 if (not defined $n or $n < 0)


Conditions
----------

or 3 conditions

line err % l !l&&r !l&&!r expr
----- --- ------ ------ ------ ------ ----
17 100 1 1 1 not defined $n or $n < 0


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

Subroutine Count Location
---------- ----- --------------------------
BEGIN 1 tests/branch_return_sub:10
BEGIN 1 tests/branch_return_sub:11
my_sqrt 3 tests/branch_return_sub:15


0 comments on commit a2b66da

Please sign in to comment.