blib/lib/Config/App.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 28 | 40 | 70.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
66 | 10 | 5 | 1 | not $no_singleton and $singleton |
309 | 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' | |
327 | 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 |
---|---|---|---|
21 | 1 | 5 | $ENV{'CONFIGAPPINIT'} || 'config/app.yaml' |
47 | 0 | 5 | @libs || 'lib' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
68 | 14 | 1 | 0 | $location ||= _location() |
71 | 15 | 0 | 0 | getpwuid $> || POSIX::cuserid() |
133 | 11 | 15 | 0 | $conf->{'config_app'}{'root_dir'} ||= $root_dir |
238 | 32 | 0 | 0 | $location ||= location() |
259 | 19 | 0 | 6 | $location =~ /\.yaml$/ or $location =~ /\.yml$/ |
5 | 0 | 1 | $location =~ /\.json$/ or $location =~ /\.js$/ | |
272 | 1 | 4 | 0 | $json_xs ||= 'JSON::XS'->new->utf8->relaxed->allow_nonref->allow_unknown->allow_blessed->allow_tags |