line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
12
|
|
|
12
|
|
67
|
#line 1 |
|
12
|
|
|
|
|
23
|
|
|
12
|
|
|
|
|
472
|
|
2
|
12
|
|
|
12
|
|
60
|
use strict; |
|
12
|
|
|
|
|
25
|
|
|
12
|
|
|
|
|
466
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::Shallow; |
6
|
12
|
|
|
12
|
|
67
|
|
|
12
|
|
|
|
|
35
|
|
|
12
|
|
|
|
|
73
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Cmp; |
8
|
12
|
|
|
12
|
|
61
|
|
|
12
|
|
|
|
|
19
|
|
|
12
|
|
|
|
|
2850
|
|
9
|
|
|
|
|
|
|
use Scalar::Util qw( refaddr ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init |
12
|
142
|
|
|
142
|
0
|
272
|
{ |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
142
|
|
|
|
|
201
|
|
15
|
142
|
|
|
|
|
1448
|
my $val = shift; |
16
|
|
|
|
|
|
|
$self->{val} = $val; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
142
|
|
|
142
|
0
|
484
|
{ |
21
|
|
|
|
|
|
|
my $self = shift; |
22
|
142
|
|
|
|
|
193
|
|
23
|
142
|
|
|
|
|
231
|
my $got = shift; |
24
|
|
|
|
|
|
|
my $exp = $self->{val}; |
25
|
142
|
|
|
|
|
160
|
|
26
|
|
|
|
|
|
|
my $ok; |
27
|
142
|
100
|
66
|
|
|
1198
|
|
|
|
50
|
25
|
|
|
|
|
|
|
50
|
33
|
|
|
|
|
|
|
50
|
25
|
|
|
|
|
28
|
|
|
|
|
|
|
if (!defined $got and !defined $exp) |
29
|
71
|
|
|
|
|
101
|
{ |
30
|
|
|
|
|
|
|
$ok = 1; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
elsif (defined $got xor defined $exp) |
33
|
0
|
|
|
|
|
0
|
{ |
34
|
|
|
|
|
|
|
$ok = 0; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
elsif (ref $got and ref $exp) |
37
|
0
|
|
|
|
|
0
|
{ |
38
|
|
|
|
|
|
|
$ok = refaddr($got) == refaddr($exp); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
elsif (ref $got xor ref $exp) |
41
|
0
|
|
|
|
|
0
|
{ |
42
|
|
|
|
|
|
|
$ok = 0; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
else |
45
|
71
|
|
|
|
|
136
|
{ |
46
|
|
|
|
|
|
|
$ok = $got eq $exp; |
47
|
|
|
|
|
|
|
} |
48
|
142
|
|
|
|
|
496
|
|
49
|
|
|
|
|
|
|
return $ok; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |