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'}
392 4 0 33 not $is_deep_call and ref $merge eq "HASH"
4 0 33 not $is_deep_call and ref $merge eq "HASH" and ref $source eq "HASH"
412 36 18 5 exists $target->{$key} and ref $target->{$key} eq "HASH"
54 1 4 exists $target->{$key} and ref $target->{$key} eq "HASH" and ref $origin->{$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()
299 0 0 0 $ua ||= "LWP::UserAgent"->new("agent", "Config-App", "cookie_jar", {}, "env_proxy", 1)
342 19 0 6 $input->{'include'} =~ /\.yaml$/i or $input->{'include'} =~ /\.yml$/i
6 0 0 $input->{'include'} =~ /\.json$/i or $input->{'include'} =~ /\.js$/i
355 2 4 0 $json_xs ||= "JSON::XS"->new->utf8->relaxed->allow_nonref->allow_unknown->allow_blessed->allow_tags