File Coverage

blib/lib/Test/Deep/ScalarRefOnly.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 3 0.0
total 25 28 89.2


line stmt bran cond sub pod time code
1 6     6   41 use strict;
  6         13  
  6         239  
2 6     6   29 use warnings;
  6         9  
  6         396  
3              
4             package Test::Deep::ScalarRefOnly 1.205;
5              
6 6     6   35 use Test::Deep::Cmp;
  6         23  
  6         121  
7              
8             sub init
9             {
10 20     20 0 49 my $self = shift;
11              
12 20         31 my $val = shift;
13              
14 20         249 $self->{val} = $val;
15             }
16              
17             sub descend
18             {
19 20     20 0 33 my $self = shift;
20              
21 20         29 my $got = shift;
22              
23 20         34 my $exp = $self->{val};
24              
25 20         52 return Test::Deep::descend($$got, $$exp);
26             }
27              
28             sub render_stack
29             {
30 5     5 0 10 my $self = shift;
31 5         10 my ($var, $data) = @_;
32              
33 5         25 return "\${$var}";
34             }
35              
36             1;
37              
38             __END__