line | % | coverage | condition |
321 | 50 | | Params::Get::get_params(undef, \@_) || {} |
324 | 100 | | $$params{"config_dirs"} //= $$params{"path"} |
326 | 100 | | not defined $$params{"config_dirs"} and $$params{"file"} |
331 | 67 | | $$params{"config_file"} and "File::Spec"->file_name_is_absolute($$params{"config_file"}) |
362 | 100 | | $$params{'env_prefix'} || 'APP_' |
370 | 0 | | $$params{"level"} and $$self{"logger"}->can("level") |
381 | 50 | | $$self{"config"} and scalar keys %{$$self{"config"};} |
407 | 67 | | $$self{"config_file"} and scalar @dirs > 1 |
454 | 33 | | not defined $rc and $self->_load_driver("XML::PP") |
492 | 0 | | require File::Basename and "File::Basename"->import |
495 | 33 | | $ENV{'SCRIPT_NAME'} || $0 |
503 | 50 | | $config_file eq $script_name and length $dir == 0 || $dir eq 'File::Spec'->curdir |
508 | 67 | | -f $path and -r $path |
514 | 100 | | $data =~ /^\s*<\?xml/ or $data =~ m[</.+>] |
551 | 67 | | eval {
do {
$data = LoadFile($path)
}
} and ref $data eq "HASH" |
573 | 67 | | not $data or ref $data ne "HASH" |
584 | 33 | | not $data or ref $data ne "HASH" |
589 | 33 | | not $data or ref $data ne "HASH" |
607 | 33 | | not $data or ref $data ne "HASH" |
626 | 0 | | not $@ and $logger |
| 33 | | $data and ref $data eq "HASH" |
652 | 100 | | $$ref{$_} //= {} |
668 | 0 | | $$ref{$_} //= {} |
701 | 67 | | defined $ref and not $$self{"no_fixate"} |
724 | 50 | | $$self{'config'} && scalar keys %{$$self{'config'};} |
793 | 33 | | $section and $$config{$section} |
818 | 100 | | $imports // [] |
865 | 67 | | $$self{'data'} || $$self{'config'} |
877 | 67 | | ref $val eq "HASH" and exists $val->{$part} |