Branch Coverage

blib/lib/Mojolicious/Plugin/INIConfig.pm
Criterion Covered Total %
branch 28 36 77.7


line true false branch
18 0 5 if not $config and $err
19 0 5 if not $config or ref $config ne 'HASH'
27 0 6 if $app->config->{'config_override'}
34 3 3 $file =~ /^(.*)\.([^.]+)$/ ? :
37 5 1 unless file_name_is_absolute($file)
38 2 4 if $mode and not file_name_is_absolute($mode)
39 4 2 unless $mode and -e $mode
44 3 3 if (-e $file) { }
2 1 elsif (not $conf->{'default'} || $mode) { }
52 2 2 if ($mode)
56 0 2 unless $config->{$key}
0 2 unless $mode_config->{$key}
59 2 2 if ($conf->{'default'})
63 0 2 unless $default_config->{$key}
1 1 unless $config->{$key}
69 1 3 unless $current->{$key}
0 4 unless $config->{$key}
85 0 5 ref $ini ? :