line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
24
|
|
|
24
|
|
173
|
use strict; |
|
24
|
|
|
|
|
49
|
|
|
24
|
|
|
|
|
706
|
|
2
|
24
|
|
|
24
|
|
184
|
use warnings; |
|
24
|
|
|
|
|
76
|
|
|
24
|
|
|
|
|
924
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::Blessed 1.204; |
5
|
|
|
|
|
|
|
|
6
|
24
|
|
|
24
|
|
539
|
use Test::Deep::Cmp; |
|
24
|
|
|
|
|
103
|
|
|
24
|
|
|
|
|
237
|
|
7
|
|
|
|
|
|
|
|
8
|
24
|
|
|
24
|
|
220
|
use Scalar::Util qw( blessed ); |
|
24
|
|
|
|
|
73
|
|
|
24
|
|
|
|
|
5581
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init |
11
|
|
|
|
|
|
|
{ |
12
|
173
|
|
|
173
|
0
|
267
|
my $self = shift; |
13
|
|
|
|
|
|
|
|
14
|
173
|
|
|
|
|
238
|
my $val = shift; |
15
|
|
|
|
|
|
|
|
16
|
173
|
|
|
|
|
1169
|
$self->{val} = $val; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
|
|
|
|
|
|
{ |
21
|
173
|
|
|
173
|
0
|
264
|
my $self = shift; |
22
|
173
|
|
|
|
|
251
|
my $got = shift; |
23
|
|
|
|
|
|
|
|
24
|
173
|
|
|
|
|
300
|
my $exp = $self->{val}; |
25
|
173
|
|
|
|
|
319
|
my $blessed = blessed($got); |
26
|
|
|
|
|
|
|
|
27
|
173
|
|
|
|
|
390
|
return Test::Deep::descend($blessed, Test::Deep::shallow($exp)); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub render_stack |
31
|
|
|
|
|
|
|
{ |
32
|
5
|
|
|
5
|
0
|
9
|
my $self = shift; |
33
|
5
|
|
|
|
|
9
|
my $var = shift; |
34
|
|
|
|
|
|
|
|
35
|
5
|
|
|
|
|
23
|
return "blessed($var)" |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub renderGot |
39
|
|
|
|
|
|
|
{ |
40
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
my $got = shift; |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
$self->SUPER::renderGot(blessed($got)); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |