line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
24
|
|
|
24
|
|
207
|
use strict; |
|
24
|
|
|
|
|
47
|
|
|
24
|
|
|
|
|
706
|
|
2
|
24
|
|
|
24
|
|
178
|
use warnings; |
|
24
|
|
|
|
|
46
|
|
|
24
|
|
|
|
|
888
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::Blessed 1.203; |
5
|
|
|
|
|
|
|
|
6
|
24
|
|
|
24
|
|
513
|
use Test::Deep::Cmp; |
|
24
|
|
|
|
|
112
|
|
|
24
|
|
|
|
|
217
|
|
7
|
|
|
|
|
|
|
|
8
|
24
|
|
|
24
|
|
234
|
use Scalar::Util qw( blessed ); |
|
24
|
|
|
|
|
80
|
|
|
24
|
|
|
|
|
5703
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init |
11
|
|
|
|
|
|
|
{ |
12
|
173
|
|
|
173
|
0
|
254
|
my $self = shift; |
13
|
|
|
|
|
|
|
|
14
|
173
|
|
|
|
|
238
|
my $val = shift; |
15
|
|
|
|
|
|
|
|
16
|
173
|
|
|
|
|
1139
|
$self->{val} = $val; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
|
|
|
|
|
|
{ |
21
|
173
|
|
|
173
|
0
|
289
|
my $self = shift; |
22
|
173
|
|
|
|
|
258
|
my $got = shift; |
23
|
|
|
|
|
|
|
|
24
|
173
|
|
|
|
|
280
|
my $exp = $self->{val}; |
25
|
173
|
|
|
|
|
333
|
my $blessed = blessed($got); |
26
|
|
|
|
|
|
|
|
27
|
173
|
|
|
|
|
373
|
return Test::Deep::descend($blessed, Test::Deep::shallow($exp)); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub render_stack |
31
|
|
|
|
|
|
|
{ |
32
|
5
|
|
|
5
|
0
|
10
|
my $self = shift; |
33
|
5
|
|
|
|
|
7
|
my $var = shift; |
34
|
|
|
|
|
|
|
|
35
|
5
|
|
|
|
|
16
|
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__ |