line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
31
|
#line 1 |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
200
|
|
2
|
4
|
|
|
4
|
|
29
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
178
|
|
3
|
|
|
|
|
|
|
use warnings; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::HashKeys; |
6
|
4
|
|
|
4
|
|
26
|
|
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
43
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Ref; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init |
10
|
6
|
|
|
6
|
0
|
15
|
{ |
11
|
|
|
|
|
|
|
my $self = shift; |
12
|
6
|
|
|
|
|
12
|
|
13
|
6
|
|
|
|
|
26
|
my %keys; |
14
|
6
|
|
|
|
|
676
|
@keys{@_} = (); |
15
|
6
|
|
|
|
|
59
|
$self->{val} = \%keys; |
16
|
|
|
|
|
|
|
$self->{keys} = [sort @_]; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
20
|
6
|
|
|
6
|
0
|
11
|
{ |
21
|
6
|
|
|
|
|
12
|
my $self = shift; |
22
|
|
|
|
|
|
|
my $got = shift; |
23
|
6
|
|
|
|
|
18
|
|
24
|
|
|
|
|
|
|
my $exp = $self->{val}; |
25
|
6
|
50
|
|
|
|
48
|
|
26
|
|
|
|
|
|
|
return 0 unless $self->test_reftype($got, "HASH"); |
27
|
6
|
|
|
|
|
70
|
|
28
|
|
|
|
|
|
|
return Test::Deep::descend($got, $self->hashkeysonly($exp)); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub hashkeysonly |
32
|
6
|
|
|
6
|
0
|
76949
|
{ |
33
|
|
|
|
|
|
|
require Test::Deep::HashKeysOnly; |
34
|
6
|
|
|
|
|
21
|
|
35
|
6
|
|
|
|
|
13
|
my $self = shift; |
36
|
|
|
|
|
|
|
my $exp = shift; |
37
|
6
|
|
|
|
|
74
|
|
38
|
|
|
|
|
|
|
return Test::Deep::HashKeysOnly->new(keys %$exp) |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
package Test::Deep::SuperHashKeys; |
42
|
4
|
|
|
4
|
|
29
|
|
|
4
|
|
|
|
|
25
|
|
|
4
|
|
|
|
|
800
|
|
43
|
|
|
|
|
|
|
use base 'Test::Deep::HashKeys'; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub hashkeysonly |
46
|
0
|
|
|
0
|
|
|
{ |
47
|
|
|
|
|
|
|
require Test::Deep::HashKeysOnly; |
48
|
0
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
my $self = shift; |
50
|
|
|
|
|
|
|
my $exp = shift; |
51
|
0
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
return Test::Deep::SuperHashKeysOnly->new(keys %$exp) |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
package Test::Deep::SubHashKeys; |
56
|
4
|
|
|
4
|
|
28
|
|
|
4
|
|
|
|
|
182
|
|
|
4
|
|
|
|
|
709
|
|
57
|
|
|
|
|
|
|
use base 'Test::Deep::HashKeys'; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub hashkeysonly |
60
|
0
|
|
|
0
|
|
|
{ |
61
|
|
|
|
|
|
|
require Test::Deep::HashKeysOnly; |
62
|
0
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
|
my $self = shift; |
64
|
|
|
|
|
|
|
my $exp = shift; |
65
|
0
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
return Test::Deep::SubHashKeysOnly->new(keys %$exp) |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |