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