@@ -3,46 +3,46 @@ use strict;
3
3
use warnings;
4
4
5
5
use Test::More tests => 8;
6
- use Config::Loader ;
6
+ use Config::Processor ;
7
7
8
- my $CONFIG_LOADER = Config::Loader -> new();
8
+ my $CONFIG_PROCESSOR = Config::Processor -> new();
9
9
10
- can_ok( $CONFIG_LOADER , ' interpolate_variables' );
11
- can_ok( $CONFIG_LOADER , ' process_directives' );
10
+ can_ok( $CONFIG_PROCESSOR , ' interpolate_variables' );
11
+ can_ok( $CONFIG_PROCESSOR , ' process_directives' );
12
12
13
- t_interpolate_variables($CONFIG_LOADER );
14
- t_process_directives($CONFIG_LOADER );
13
+ t_interpolate_variables($CONFIG_PROCESSOR );
14
+ t_process_directives($CONFIG_PROCESSOR );
15
15
16
16
17
17
sub t_interpolate_variables {
18
- my $config_loader = shift ;
18
+ my $config_processor = shift ;
19
19
20
- my $interpolate_variables = $config_loader -> interpolate_variables;
20
+ my $interpolate_variables = $config_processor -> interpolate_variables;
21
21
is( $interpolate_variables , 1, ' get variable interpolation switch value' );
22
22
23
- $config_loader -> interpolate_variables(undef );
24
- is( $config_loader -> interpolate_variables,
23
+ $config_processor -> interpolate_variables(undef );
24
+ is( $config_processor -> interpolate_variables,
25
25
undef , ' disable variable interpolation' );
26
26
27
- $config_loader -> interpolate_variables(1);
28
- is( $config_loader -> interpolate_variables, 1,
27
+ $config_processor -> interpolate_variables(1);
28
+ is( $config_processor -> interpolate_variables, 1,
29
29
" enable variable interpolation" );
30
30
31
31
return ;
32
32
}
33
33
34
34
sub t_process_directives {
35
- my $config_loader = shift ;
35
+ my $config_processor = shift ;
36
36
37
- my $process_directives = $config_loader -> process_directives;
37
+ my $process_directives = $config_processor -> process_directives;
38
38
is( $process_directives , 1, ' get directive processing switch value' );
39
39
40
- $config_loader -> process_directives(undef );
41
- is( $config_loader -> process_directives,
40
+ $config_processor -> process_directives(undef );
41
+ is( $config_processor -> process_directives,
42
42
undef , ' disable directive processing' );
43
43
44
- $config_loader -> process_directives(1);
45
- is( $config_loader -> process_directives, 1, " enable directive processing" );
44
+ $config_processor -> process_directives(1);
45
+ is( $config_processor -> process_directives, 1, " enable directive processing" );
46
46
47
47
return ;
48
48
}
0 commit comments