line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
8
|
#line 1 |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::Shallow; |
6
|
1
|
|
|
1
|
|
7
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Cmp; |
8
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
310
|
|
9
|
|
|
|
|
|
|
use Scalar::Util qw( refaddr ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init |
12
|
14
|
|
|
14
|
0
|
23
|
{ |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
14
|
|
|
|
|
17
|
|
15
|
14
|
|
|
|
|
282
|
my $val = shift; |
16
|
|
|
|
|
|
|
$self->{val} = $val; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
14
|
|
|
14
|
0
|
21
|
{ |
21
|
|
|
|
|
|
|
my $self = shift; |
22
|
14
|
|
|
|
|
18
|
|
23
|
14
|
|
|
|
|
25
|
my $got = shift; |
24
|
|
|
|
|
|
|
my $exp = $self->{val}; |
25
|
14
|
|
|
|
|
19
|
|
26
|
|
|
|
|
|
|
my $ok; |
27
|
14
|
100
|
66
|
|
|
1408
|
|
|
|
50
|
25
|
|
|
|
|
|
|
50
|
33
|
|
|
|
|
|
|
50
|
25
|
|
|
|
|
28
|
|
|
|
|
|
|
if (!defined $got and !defined $exp) |
29
|
6
|
|
|
|
|
12
|
{ |
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
|
8
|
|
|
|
|
59
|
{ |
46
|
|
|
|
|
|
|
$ok = $got eq $exp; |
47
|
|
|
|
|
|
|
} |
48
|
14
|
|
|
|
|
60
|
|
49
|
|
|
|
|
|
|
return $ok; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |