Condition Coverage

blib/lib/Mojolicious/Plugin/INIConfig.pm
Criterion Covered Total %
condition 16 25 64.0


and 3 conditions

line !l l&&!r l&&r condition
18 5 0 0 not $config and $err
36 3 1 2 $mode and not file_name_is_absolute($mode)
37 3 1 2 $mode and -e $mode

or 2 conditions

line l !l condition
29 0 2 $conf->{'ext'} || 'ini'
81 0 5 $conf->{'template'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
19 0 0 5 not $config or ref $config ne 'HASH'
28 3 0 3 $conf->{'file'} || $ENV{'MOJO_CONFIG'}
29 4 2 0 $file ||= $app->moniker . '.' . ($conf->{'ext'} || 'ini')
42 1 0 2 $conf->{'default'} || $mode