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