blib/lib/Mojolicious/Plugin/Config.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 17 | 88.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
36 | 6 | 2 | 19 | $mode and not path($mode)->is_abs |
37 | 6 | 7 | 14 | $mode and -e $mode |
line | l | !l | condition |
---|---|---|---|
29 | 6 | 11 | $conf->{'ext'} || 'conf' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
28 | 8 | 2 | 17 | $conf->{'file'} || $ENV{'MOJO_CONFIG'} |
29 | 10 | 17 | 0 | $file ||= $app->moniker . "." . ($conf->{'ext'} || 'conf') |
41 | 2 | 0 | 4 | $conf->{'default'} || $mode |