line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
24
|
|
|
24
|
|
172
|
use strict; |
|
24
|
|
|
|
|
48
|
|
|
24
|
|
|
|
|
692
|
|
2
|
24
|
|
|
24
|
|
123
|
use warnings; |
|
24
|
|
|
|
|
41
|
|
|
24
|
|
|
|
|
854
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::Blessed 1.202; |
5
|
|
|
|
|
|
|
|
6
|
24
|
|
|
24
|
|
499
|
use Test::Deep::Cmp; |
|
24
|
|
|
|
|
115
|
|
|
24
|
|
|
|
|
130
|
|
7
|
|
|
|
|
|
|
|
8
|
24
|
|
|
24
|
|
141
|
use Scalar::Util qw( blessed ); |
|
24
|
|
|
|
|
56
|
|
|
24
|
|
|
|
|
5785
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init |
11
|
|
|
|
|
|
|
{ |
12
|
173
|
|
|
173
|
0
|
330
|
my $self = shift; |
13
|
|
|
|
|
|
|
|
14
|
173
|
|
|
|
|
248
|
my $val = shift; |
15
|
|
|
|
|
|
|
|
16
|
173
|
|
|
|
|
1087
|
$self->{val} = $val; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
|
|
|
|
|
|
{ |
21
|
173
|
|
|
173
|
0
|
315
|
my $self = shift; |
22
|
173
|
|
|
|
|
255
|
my $got = shift; |
23
|
|
|
|
|
|
|
|
24
|
173
|
|
|
|
|
282
|
my $exp = $self->{val}; |
25
|
173
|
|
|
|
|
332
|
my $blessed = blessed($got); |
26
|
|
|
|
|
|
|
|
27
|
173
|
|
|
|
|
434
|
return Test::Deep::descend($blessed, Test::Deep::shallow($exp)); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub render_stack |
31
|
|
|
|
|
|
|
{ |
32
|
5
|
|
|
5
|
0
|
7
|
my $self = shift; |
33
|
5
|
|
|
|
|
7
|
my $var = shift; |
34
|
|
|
|
|
|
|
|
35
|
5
|
|
|
|
|
29
|
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__ |