Condition Coverage

blib/lib/Config/Abstraction.pm
Criterion Covered Total %
condition 48 86 55.8


and 2 conditions

line l !l condition
385 0 23 defined $self->{'config'} and scalar keys %{$$self{"config"};}
791 0 11 $self->{'config'} && scalar keys %{$$self{'config'};}

and 3 conditions

line !l l&&!r l&&r condition
330 18 5 1 not defined $params->{'config_dirs'} and $params->{'file'}
335 5 0 1 $params->{'config_file'} and "File::Spec"->file_name_is_absolute($params->{'config_file'})
374 0 0 0 $params->{'level'} and $self->{'logger'}->can("level")
411 13 11 0 $self->{'config_file'} and scalar @dirs > 1
422 4 25 25 length $dir and not -d $dir
462 0 0 10 not defined $rc and $self->_load_driver("XML::PP")
512 0 0 0 require File::Basename and "File::Basename"->import
523 131 29 0 $config_file eq $script_name and length $dir == 0 || $dir eq 'File::Spec'->curdir
528 143 0 13 -f $path and -r $path
571 0 1 5 eval { do { $data = LoadFile($path) } } and ref $data eq "HASH"
654 0 0 11 $data and ref $data eq "HASH"
0 0 0 not $@ and $logger
733 2 0 24 defined $ref and not $self->{'no_fixate'}
860 2 0 0 $section and $config->{$section}
944 0 1 13 ref $val eq "HASH" and exists $val->{$part}

or 2 conditions

line l !l condition
325 23 0 Params::Get::get_params(undef, \@_) || {}
366 3 21 $params->{'env_prefix'} || 'APP_'
680 5 5 $ref->{$_} //= {}
698 0 0 $ref->{$_} //= {}
885 35 19 $imports // []

or 3 conditions

line l !l&&r !l&&!r condition
328 16 2 6 $params->{'config_dirs'} //= $params->{'path'}
515 0 24 0 $ENV{'SCRIPT_NAME'} || $0
523 4 0 25 length $dir == 0 || $dir eq 'File::Spec'->curdir
534 5 2 6 $data =~ /^\s*<\?xml/ or $data =~ m[]
600 0 1 5 not $data or ref $data ne "HASH"
611 0 1 0 not $data or ref $data ne "HASH"
616 0 1 0 not $data or ref $data ne "HASH"
635 0 1 0 not $data or ref $data ne "HASH"
932 7 1 0 $self->{'data'} || $self->{'config'}