line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
11
|
#line 1 |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
84
|
|
2
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
78
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::Shallow; |
6
|
2
|
|
|
2
|
|
12
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Cmp; |
8
|
2
|
|
|
2
|
|
12
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
425
|
|
9
|
|
|
|
|
|
|
use Scalar::Util qw( refaddr ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init |
12
|
236
|
|
|
236
|
0
|
253
|
{ |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
236
|
|
|
|
|
245
|
|
15
|
236
|
|
|
|
|
1271
|
my $val = shift; |
16
|
|
|
|
|
|
|
$self->{val} = $val; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
236
|
|
|
236
|
0
|
257
|
{ |
21
|
|
|
|
|
|
|
my $self = shift; |
22
|
236
|
|
|
|
|
235
|
|
23
|
236
|
|
|
|
|
316
|
my $got = shift; |
24
|
|
|
|
|
|
|
my $exp = $self->{val}; |
25
|
236
|
|
|
|
|
225
|
|
26
|
|
|
|
|
|
|
my $ok; |
27
|
236
|
100
|
66
|
|
|
2104
|
|
|
|
50
|
25
|
|
|
|
|
|
|
50
|
33
|
|
|
|
|
|
|
50
|
25
|
|
|
|
|
28
|
|
|
|
|
|
|
if (!defined $got and !defined $exp) |
29
|
86
|
|
|
|
|
116
|
{ |
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
|
150
|
|
|
|
|
246
|
{ |
46
|
|
|
|
|
|
|
$ok = $got eq $exp; |
47
|
|
|
|
|
|
|
} |
48
|
236
|
|
|
|
|
696
|
|
49
|
|
|
|
|
|
|
return $ok; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |