line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Config::General::Hierarchical::Test.pm - Hierarchical Generic Config Test Module |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Config::General::Hierarchical::Test; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
$Config::General::Hierarchical::Test::VERSION = 0.07; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
9276
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
87
|
|
8
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
71
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
14
|
use base 'Config::General::Hierarchical'; |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
557
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub syntax { |
13
|
11
|
|
|
11
|
1
|
24
|
my ($self) = @_; |
14
|
11
|
|
|
|
|
103
|
my %constraint = ( |
15
|
|
|
|
|
|
|
array => 'aI', |
16
|
|
|
|
|
|
|
node => { |
17
|
|
|
|
|
|
|
array => 'a', |
18
|
|
|
|
|
|
|
key => 'u', |
19
|
|
|
|
|
|
|
value => '', |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
value => 'N', |
22
|
|
|
|
|
|
|
); |
23
|
11
|
|
|
|
|
73
|
return $self->merge_values( \%constraint, $self->SUPER::syntax ); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
our $count = 0; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub DESTROY { |
29
|
17
|
|
|
17
|
|
330
|
$count++; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |