| blib/lib/Mojolicious/Plugin/INIConfig.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 16 | 25 | 64.0 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 18 | 5 | 0 | 0 | not $config and $err | 
| 38 | 3 | 1 | 2 | $mode and not file_name_is_absolute($mode) | 
| 39 | 3 | 1 | 2 | $mode and -e $mode | 
| line | l | !l | condition | 
|---|---|---|---|
| 31 | 0 | 2 | $conf->{'ext'} || 'ini' | 
| 83 | 0 | 5 | $conf->{'template'} || {} | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 19 | 0 | 0 | 5 | not $config or ref $config ne 'HASH' | 
| 30 | 3 | 0 | 3 | $conf->{'file'} || $ENV{'MOJO_CONFIG'} | 
| 31 | 4 | 2 | 0 | $file ||= $app->moniker . '.' . ($conf->{'ext'} || 'ini') | 
| 44 | 1 | 0 | 2 | $conf->{'default'} || $mode |