line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
11
|
#line 1 |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
61
|
|
2
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
65
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::Blessed; |
6
|
2
|
|
|
2
|
|
8
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
16
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Cmp; |
8
|
2
|
|
|
2
|
|
9
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
418
|
|
9
|
|
|
|
|
|
|
use Scalar::Util qw( blessed ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init |
12
|
10
|
|
|
10
|
0
|
13
|
{ |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
10
|
|
|
|
|
12
|
|
15
|
|
|
|
|
|
|
my $val = shift; |
16
|
10
|
|
|
|
|
138
|
|
17
|
|
|
|
|
|
|
$self->{val} = $val; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub descend |
21
|
10
|
|
|
10
|
0
|
12
|
{ |
22
|
10
|
|
|
|
|
15
|
my $self = shift; |
23
|
|
|
|
|
|
|
my $got = shift; |
24
|
10
|
|
|
|
|
14
|
|
25
|
10
|
|
|
|
|
22
|
my $exp = $self->{val}; |
26
|
|
|
|
|
|
|
my $blessed = blessed($got); |
27
|
10
|
|
|
|
|
25
|
|
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; |