Branch Coverage

blib/lib/Mojolicious/Plugin/Config.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
15 0 22 if $@
16 0 22 unless ref $config eq "HASH"
25 1 27 if $app->config->{'config_override'}
32 21 6 $file =~ /^(.*)\.([^.]+)$/u ? :
35 25 2 unless path($file)->is_abs
36 19 8 if $mode and not path($mode)->is_abs
37 13 14 unless $mode and -e $mode
41 21 6 if (-e $file) { }
4 2 elsif (not $conf->{'default'} || $mode) { }
47 14 7 if $mode
48 6 15 if $conf->{'default'}
55 7 15 if (my $plugins = $config->{'plugins'})
56 0 7 unless ref $plugins eq "ARRAY"
58 0 14 unless ref $plugin eq "HASH"