Branch Coverage

blib/lib/Mojolicious/Plugin/ModeHelpers.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
19 2 36 if %config_copy
21 2 34 if (not defined $config->{'prod_helper_name'} or $config->{'prod_helper_name'} eq '')
24 2 32 if (not defined $config->{'dev_helper_name'} or $config->{'dev_helper_name'} eq '')
37 4 28 unless ref $modes eq 'ARRAY'
42 9 13 if (not $mode_ref) { }
12 1 elsif ($mode_ref eq 'HASH') { }
43 2 7 unless defined $mode and $mode ne ''
48 2 10 unless keys %$mode == 1
52 1 9 unless defined $helper_name and $helper_name ne ''
53 2 7 unless defined $mode and $mode ne ''