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 26 if $app->config->{'config_override'}
32 20 6 $file =~ /^(.*)\.([^.]+)$/u ? :
35 24 2 unless path($file)->is_abs
36 18 8 if $mode and not path($mode)->is_abs
37 12 14 unless $mode and -e $mode
41 20 6 if (-e $file) { }
4 2 elsif (not $conf->{'default'} || $mode) { }
47 14 6 if $mode
48 5 15 if $conf->{'default'}
55 6 15 if (my $plugins = $config->{'plugins'})
56 0 6 unless ref $plugins eq "ARRAY"
58 0 12 unless ref $plugin eq "HASH"