line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
25
|
|
|
25
|
|
199
|
use strict; |
|
25
|
|
|
|
|
53
|
|
|
25
|
|
|
|
|
754
|
|
2
|
25
|
|
|
25
|
|
166
|
use warnings; |
|
25
|
|
|
|
|
53
|
|
|
25
|
|
|
|
|
993
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::RefType 1.202; |
5
|
|
|
|
|
|
|
|
6
|
25
|
|
|
25
|
|
497
|
use Test::Deep::Cmp; |
|
25
|
|
|
|
|
45
|
|
|
25
|
|
|
|
|
138
|
|
7
|
|
|
|
|
|
|
|
8
|
25
|
|
|
25
|
|
136
|
use Scalar::Util qw( reftype ); |
|
25
|
|
|
|
|
49
|
|
|
25
|
|
|
|
|
5782
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init |
11
|
|
|
|
|
|
|
{ |
12
|
247
|
|
|
247
|
0
|
382
|
my $self = shift; |
13
|
|
|
|
|
|
|
|
14
|
247
|
|
|
|
|
1343
|
$self->{val} = shift; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub descend |
18
|
|
|
|
|
|
|
{ |
19
|
247
|
|
|
247
|
0
|
367
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
247
|
|
|
|
|
354
|
my $got = shift; |
22
|
|
|
|
|
|
|
|
23
|
247
|
|
|
|
|
444
|
my $exp = $self->{val}; |
24
|
247
|
|
|
|
|
510
|
my $reftype = reftype($got); |
25
|
|
|
|
|
|
|
|
26
|
247
|
|
|
|
|
530
|
return Test::Deep::descend($reftype, Test::Deep::shallow($exp)); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub render_stack |
30
|
|
|
|
|
|
|
{ |
31
|
9
|
|
|
9
|
0
|
17
|
my $self = shift; |
32
|
9
|
|
|
|
|
18
|
my $var = shift; |
33
|
|
|
|
|
|
|
|
34
|
9
|
|
|
|
|
29
|
return "reftype($var)"; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub renderGot |
38
|
|
|
|
|
|
|
{ |
39
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
my $got = shift; |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
$self->SUPER::renderGot(reftype($got)); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |