blib/lib/Mojolicious/Plugin/RESTful.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 24 | 75.0 |
line | true | false | branch |
---|---|---|---|
40 | 4 | 7 | $route->name ? : |
43 | 1 | 10 | @_ eq 1 ? : |
0 | 11 | ref $_[0] ? : | |
11 | 0 | @_ ? : | |
45 | 0 | 11 | unless defined $params->{'name'} |
57 | 2 | 9 | if ($route ne $route->root and $root_methods =~ /\A[lcrudpo]+\z/) |
71 | 1 | 32 | unless $methods{substr $collection_method, 0, 1} |
75 | 0 | 32 | if $route->find($action) |
85 | 0 | 21 | if $route->find($action) |
92 | 5 | 50 | unless $methods{substr $resource_method, 0, 1} |
96 | 0 | 50 | if $route->find($action) |
103 | 10 | 1 | if (&any(sub { /[rudp]/; } , keys %methods)) { } |