| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
1
|
|
|
1
|
|
6
|
#line 1 |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
89
|
|
|
2
|
1
|
|
|
1
|
|
7
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
41
|
|
|
3
|
|
|
|
|
|
|
use warnings; |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Test::Deep::HashKeys; |
|
6
|
1
|
|
|
1
|
|
5
|
|
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
|
|
use Test::Deep::Ref; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init |
|
10
|
3
|
|
|
3
|
0
|
5
|
{ |
|
11
|
|
|
|
|
|
|
my $self = shift; |
|
12
|
3
|
|
|
|
|
6
|
|
|
13
|
3
|
|
|
|
|
7
|
my %keys; |
|
14
|
3
|
|
|
|
|
261
|
@keys{@_} = (); |
|
15
|
3
|
|
|
|
|
17
|
$self->{val} = \%keys; |
|
16
|
|
|
|
|
|
|
$self->{keys} = [sort @_]; |
|
17
|
|
|
|
|
|
|
} |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub descend |
|
20
|
3
|
|
|
3
|
0
|
6
|
{ |
|
21
|
3
|
|
|
|
|
6
|
my $self = shift; |
|
22
|
|
|
|
|
|
|
my $got = shift; |
|
23
|
3
|
|
|
|
|
7
|
|
|
24
|
|
|
|
|
|
|
my $exp = $self->{val}; |
|
25
|
3
|
50
|
|
|
|
20
|
|
|
26
|
|
|
|
|
|
|
return 0 unless $self->test_reftype($got, "HASH"); |
|
27
|
3
|
|
|
|
|
37
|
|
|
28
|
|
|
|
|
|
|
return Test::Deep::descend($got, $self->hashkeysonly($exp)); |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub hashkeysonly |
|
32
|
3
|
|
|
3
|
0
|
1276
|
{ |
|
33
|
|
|
|
|
|
|
require Test::Deep::HashKeysOnly; |
|
34
|
3
|
|
|
|
|
11
|
|
|
35
|
3
|
|
|
|
|
5
|
my $self = shift; |
|
36
|
|
|
|
|
|
|
my $exp = shift; |
|
37
|
3
|
|
|
|
|
32
|
|
|
38
|
|
|
|
|
|
|
return Test::Deep::HashKeysOnly->new(keys %$exp) |
|
39
|
|
|
|
|
|
|
} |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
package Test::Deep::SuperHashKeys; |
|
42
|
1
|
|
|
1
|
|
6
|
|
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
9
|
|
|
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
|
1
|
|
|
1
|
|
7
|
|
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
5
|
|
|
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; |