line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
50
|
use strict; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
241
|
|
2
|
7
|
|
|
7
|
|
37
|
use warnings; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
301
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::Hash 1.202; |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
433
|
use Test::Deep::Ref; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init |
9
|
|
|
|
|
|
|
{ |
10
|
30
|
|
|
30
|
0
|
48
|
my $self = shift; |
11
|
|
|
|
|
|
|
|
12
|
30
|
|
|
|
|
44
|
my $val = shift; |
13
|
|
|
|
|
|
|
|
14
|
30
|
|
|
|
|
729
|
$self->{val} = $val; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub descend |
18
|
|
|
|
|
|
|
{ |
19
|
38
|
|
|
38
|
0
|
59
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
38
|
|
|
|
|
53
|
my $got = shift; |
22
|
|
|
|
|
|
|
|
23
|
38
|
|
|
|
|
62
|
my $exp = $self->{val}; |
24
|
|
|
|
|
|
|
|
25
|
38
|
|
|
|
|
108
|
my $data = $self->data; |
26
|
|
|
|
|
|
|
|
27
|
38
|
100
|
|
|
|
90
|
return 0 unless Test::Deep::descend($got, $self->hash_keys($exp)); |
28
|
|
|
|
|
|
|
|
29
|
16
|
100
|
|
|
|
69
|
return 0 unless $self->test_class($got); |
30
|
|
|
|
|
|
|
|
31
|
13
|
|
|
|
|
36
|
return Test::Deep::descend($got, $self->hash_elements($exp)); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub hash_elements |
35
|
|
|
|
|
|
|
{ |
36
|
11
|
|
|
11
|
0
|
2262
|
require Test::Deep::HashElements; |
37
|
|
|
|
|
|
|
|
38
|
11
|
|
|
|
|
29
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
11
|
|
|
|
|
67
|
return Test::Deep::HashElements->new(@_); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub hash_keys |
44
|
|
|
|
|
|
|
{ |
45
|
36
|
|
|
36
|
0
|
3374
|
require Test::Deep::HashKeys; |
46
|
|
|
|
|
|
|
|
47
|
36
|
|
|
|
|
66
|
my $self = shift; |
48
|
36
|
|
|
|
|
50
|
my $exp = shift; |
49
|
|
|
|
|
|
|
|
50
|
36
|
|
|
|
|
168
|
return Test::Deep::HashKeys->new(keys %$exp); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub reset_arrow |
54
|
|
|
|
|
|
|
{ |
55
|
8
|
|
|
8
|
0
|
27
|
return 0; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
package Test::Deep::SuperHash 1.202; |
59
|
|
|
|
|
|
|
|
60
|
7
|
|
|
7
|
|
52
|
use base 'Test::Deep::Hash'; |
|
7
|
|
|
|
|
21
|
|
|
7
|
|
|
|
|
1776
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub hash_elements |
63
|
|
|
|
|
|
|
{ |
64
|
1
|
|
|
1
|
|
4
|
require Test::Deep::HashElements; |
65
|
|
|
|
|
|
|
|
66
|
1
|
|
|
|
|
2
|
my $self = shift; |
67
|
|
|
|
|
|
|
|
68
|
1
|
|
|
|
|
5
|
return Test::Deep::SuperHashElements->new(@_); |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub hash_keys |
72
|
|
|
|
|
|
|
{ |
73
|
1
|
|
|
1
|
|
5
|
require Test::Deep::HashKeys; |
74
|
|
|
|
|
|
|
|
75
|
1
|
|
|
|
|
3
|
my $self = shift; |
76
|
1
|
|
|
|
|
1
|
my $exp = shift; |
77
|
|
|
|
|
|
|
|
78
|
1
|
|
|
|
|
10
|
return Test::Deep::SuperHashKeys->new(keys %$exp); |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
package Test::Deep::SubHash 1.202; |
82
|
|
|
|
|
|
|
|
83
|
7
|
|
|
7
|
|
51
|
use base 'Test::Deep::Hash'; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
1281
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub hash_elements |
86
|
|
|
|
|
|
|
{ |
87
|
1
|
|
|
1
|
|
4
|
require Test::Deep::HashElements; |
88
|
|
|
|
|
|
|
|
89
|
1
|
|
|
|
|
2
|
my $self = shift; |
90
|
|
|
|
|
|
|
|
91
|
1
|
|
|
|
|
6
|
return Test::Deep::SubHashElements->new(@_); |
92
|
|
|
|
|
|
|
} |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
sub hash_keys |
95
|
|
|
|
|
|
|
{ |
96
|
1
|
|
|
1
|
|
5
|
require Test::Deep::HashKeys; |
97
|
|
|
|
|
|
|
|
98
|
1
|
|
|
|
|
2
|
my $self = shift; |
99
|
1
|
|
|
|
|
2
|
my $exp = shift; |
100
|
|
|
|
|
|
|
|
101
|
1
|
|
|
|
|
8
|
return Test::Deep::SubHashKeys->new(keys %$exp); |
102
|
|
|
|
|
|
|
} |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
1; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
__END__ |