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