line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
12
|
|
|
12
|
|
70
|
#line 1 |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
421
|
|
2
|
12
|
|
|
12
|
|
62
|
use strict; |
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
426
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::Blessed; |
6
|
12
|
|
|
12
|
|
63
|
|
|
12
|
|
|
|
|
30
|
|
|
12
|
|
|
|
|
85
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Cmp; |
8
|
12
|
|
|
12
|
|
62
|
|
|
12
|
|
|
|
|
27
|
|
|
12
|
|
|
|
|
5667
|
|
9
|
|
|
|
|
|
|
use Scalar::Util qw( blessed ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init |
12
|
67
|
|
|
67
|
0
|
120
|
{ |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
67
|
|
|
|
|
100
|
|
15
|
|
|
|
|
|
|
my $val = shift; |
16
|
67
|
|
|
|
|
960
|
|
17
|
|
|
|
|
|
|
$self->{val} = $val; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub descend |
21
|
67
|
|
|
67
|
0
|
139
|
{ |
22
|
67
|
|
|
|
|
99
|
my $self = shift; |
23
|
|
|
|
|
|
|
my $got = shift; |
24
|
67
|
|
|
|
|
128
|
|
25
|
67
|
|
|
|
|
144
|
my $exp = $self->{val}; |
26
|
|
|
|
|
|
|
my $blessed = blessed($got); |
27
|
67
|
|
|
|
|
183
|
|
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; |