| blib/lib/Config/App.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 25 | 38 | 65.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 79 | 10 | 5 | 1 | not $no_singleton and $singleton |
| 348 | 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" | |
| 366 | 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" |
| line | l | !l | condition |
|---|---|---|---|
| 59 | 0 | 5 | @libs || 'lib' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 82 | 15 | 0 | 0 | getpwuid $> || POSIX::cuserid() |
| 171 | 11 | 15 | 0 | $conf->{'config_app'}{'root_dir'} ||= $root_dir |
| 276 | 32 | 0 | 0 | $location ||= location() |
| 277 | 0 | 0 | 32 | "URI"->new($location)->scheme or substr($location, 0, 1) eq "/" |
| 298 | 19 | 0 | 6 | $location =~ /\.yaml$/ or $location =~ /\.yml$/ |
| 5 | 0 | 1 | $location =~ /\.json$/ or $location =~ /\.js$/ | |
| 311 | 1 | 4 | 0 | $json_xs ||= "JSON::XS"->new->utf8->relaxed->allow_nonref->allow_unknown->allow_blessed->allow_tags |