Branch Coverage

blib/lib/Mojolicious/Plugin/RoutesConfig.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
11 6 2 $file ? :
15 2 6 unless exists $conf->{'routes'}
20 4 2 unless ref $conf->{'routes'} eq 'ARRAY'
32 2 18 unless ($init_method)
43 2 16 if ($init_method eq 'under')
47 20 20 if $method =~ /^(?:$init_method|routes)$/u
49 2 18 unless ($route->can($method))
50 0 2 ref $init_params eq 'ARRAY' ? :
67 6 30 if (ref $params eq 'ARRAY') { }
10 20 elsif (ref $params eq 'HASH') { }
0 20 elsif (ref $params eq 'CODE') { }