Condition Coverage

blib/lib/Config/App.pm
Criterion Covered Total %
condition 27 43 62.7


and 3 conditions

line !l l&&!r l&&r condition
60 1 0 32 length $root_dir && length $config_file
80 1 5 0 do { not $root_dir } && do { ($root_dir, $config_file) = @locate_root_config }
108 10 5 1 not $no_singleton and $singleton
230 0 11 15 defined $root_dir and not exists $input->{'conf'}{'config_app'}{'root_dir'}
394 3 0 33 not $is_deep_call and ref $merge eq "HASH"
3 0 33 not $is_deep_call and ref $merge eq "HASH" and ref $source eq "HASH"
412 34 15 4 exists $merge->{$key} and ref $merge->{$key} eq "HASH"
49 1 3 exists $merge->{$key} and ref $merge->{$key} eq "HASH" and ref $source->{$key} eq "HASH"

or 2 conditions

line l !l condition
37 32 0 $test_path || '/'
90 0 5 @libs || 'lib'

or 3 conditions

line l !l&&r !l&&!r condition
117 15 0 0 getpwuid $> || POSIX::cuserid()
301 0 0 0 $ua ||= "LWP::UserAgent"->new("agent", "Config-App", "cookie_jar", {}, "env_proxy", 1)
344 19 0 6 $input->{'include'} =~ /\.yaml$/i or $input->{'include'} =~ /\.yml$/i
6 0 0 $input->{'include'} =~ /\.json$/i or $input->{'include'} =~ /\.js$/i
357 2 4 0 $json_xs ||= "JSON::XS"->new->utf8->relaxed->allow_nonref->allow_unknown->allow_blessed->allow_tags