line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
25
|
|
|
25
|
|
174
|
use strict; |
|
25
|
|
|
|
|
52
|
|
|
25
|
|
|
|
|
716
|
|
2
|
25
|
|
|
25
|
|
135
|
use warnings; |
|
25
|
|
|
|
|
43
|
|
|
25
|
|
|
|
|
890
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::RefType 1.204; |
5
|
|
|
|
|
|
|
|
6
|
25
|
|
|
25
|
|
489
|
use Test::Deep::Cmp; |
|
25
|
|
|
|
|
71
|
|
|
25
|
|
|
|
|
221
|
|
7
|
|
|
|
|
|
|
|
8
|
25
|
|
|
25
|
|
140
|
use Scalar::Util qw( reftype ); |
|
25
|
|
|
|
|
48
|
|
|
25
|
|
|
|
|
5870
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init |
11
|
|
|
|
|
|
|
{ |
12
|
247
|
|
|
247
|
0
|
413
|
my $self = shift; |
13
|
|
|
|
|
|
|
|
14
|
247
|
|
|
|
|
1308
|
$self->{val} = shift; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub descend |
18
|
|
|
|
|
|
|
{ |
19
|
247
|
|
|
247
|
0
|
390
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
247
|
|
|
|
|
342
|
my $got = shift; |
22
|
|
|
|
|
|
|
|
23
|
247
|
|
|
|
|
424
|
my $exp = $self->{val}; |
24
|
247
|
|
|
|
|
495
|
my $reftype = reftype($got); |
25
|
|
|
|
|
|
|
|
26
|
247
|
|
|
|
|
532
|
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
|
|
|
|
|
16
|
my $var = shift; |
33
|
|
|
|
|
|
|
|
34
|
9
|
|
|
|
|
28
|
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__ |