Branch Coverage

blib/lib/Mojolicious/Plugin/INIConfig.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
18 0 5 if not $config and $err
19 0 5 if not $config or ref $config ne 'HASH'
32 3 3 $file =~ /^(.*)\.([^.]+)$/ ? :
35 5 1 unless file_name_is_absolute($file)
36 2 4 if $mode and not file_name_is_absolute($mode)
37 4 2 unless $mode and -e $mode
42 3 3 if (-e $file) { }
2 1 elsif (not $conf->{'default'} || $mode) { }
50 2 2 if ($mode)
54 0 2 unless $config->{$key}
0 2 unless $mode_config->{$key}
57 2 2 if ($conf->{'default'})
61 0 2 unless $default_config->{$key}
1 1 unless $config->{$key}
67 1 3 unless $current->{$key}
0 4 unless $config->{$key}
83 0 5 ref $ini ? :