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