blib/lib/Mojolicious/Plugin/RoutesConfig.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 22 | 90.9 |
line | true | false | branch |
---|---|---|---|
11 | 9 | 3 | $file ? : |
15 | 2 | 10 | unless exists $conf->{'routes'} |
20 | 6 | 4 | unless ref $conf->{'routes'} eq 'ARRAY' |
32 | 4 | 32 | unless ($init_method) |
43 | 4 | 28 | if ($init_method eq 'under') |
47 | 34 | 44 | if $method =~ /^(?:$init_method|routes)$/ |
49 | 4 | 40 | unless ($route->can($method)) |
50 | 0 | 4 | ref $init_params eq 'ARRAY' ? : |
67 | 28 | 44 | if (ref $params eq 'ARRAY') { } |
28 | 16 | elsif (ref $params eq 'HASH') { } | |
0 | 16 | elsif (ref $params eq 'CODE') { } |