line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
12
|
|
|
12
|
|
67
|
#line 1 |
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
442
|
|
2
|
12
|
|
|
12
|
|
65
|
use strict; |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
518
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::Blessed; |
6
|
12
|
|
|
12
|
|
63
|
|
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
79
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Cmp; |
8
|
12
|
|
|
12
|
|
65
|
|
|
12
|
|
|
|
|
30
|
|
|
12
|
|
|
|
|
3292
|
|
9
|
|
|
|
|
|
|
use Scalar::Util qw( blessed ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init |
12
|
71
|
|
|
71
|
0
|
110
|
{ |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
71
|
|
|
|
|
99
|
|
15
|
|
|
|
|
|
|
my $val = shift; |
16
|
71
|
|
|
|
|
1187
|
|
17
|
|
|
|
|
|
|
$self->{val} = $val; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub descend |
21
|
71
|
|
|
71
|
0
|
129
|
{ |
22
|
71
|
|
|
|
|
99
|
my $self = shift; |
23
|
|
|
|
|
|
|
my $got = shift; |
24
|
71
|
|
|
|
|
155
|
|
25
|
71
|
|
|
|
|
142
|
my $exp = $self->{val}; |
26
|
|
|
|
|
|
|
my $blessed = blessed($got); |
27
|
71
|
|
|
|
|
190
|
|
28
|
|
|
|
|
|
|
return Test::Deep::descend($blessed, Test::Deep::shallow($exp)); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub render_stack |
32
|
0
|
|
|
0
|
0
|
|
{ |
33
|
0
|
|
|
|
|
|
my $self = shift; |
34
|
|
|
|
|
|
|
my $var = shift; |
35
|
0
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
return "blessed($var)" |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub renderGot |
40
|
0
|
|
|
0
|
0
|
|
{ |
41
|
|
|
|
|
|
|
my $self = shift; |
42
|
0
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
my $got = shift; |
44
|
0
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
$self->SUPER::renderGot(blessed($got)); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |