| blib/lib/Mojolicious/Plugin/REST.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 8 | 23 | 34.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 31 | 0 | 0 | 4 | defined $$options{$modifier} and $$options{$modifier} ne '' |
| 51 | 2 | 0 | 0 | defined $$options{'hook'} and $$options{'hook'} == 0 |
| 87 | 1 | 0 | 1 | defined $under_name and $under_name ne '' |
| 98 | 4 | 0 | 0 | defined $$params{'methods'} and index($$params{'methods'}, substr($$http2crud{'collection'}{$collection_method}, 0, 1)) == -1 |
| 129 | 6 | 0 | 0 | defined $$params{'methods'} and index($$params{'methods'}, substr($$http2crud{'resource'}{$resource_method}, 0, 1)) == -1 |
| line | l | !l | condition |
|---|---|---|---|
| 37 | 0 | 2 | $$options{'method_chained'} // 'chained' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 94 | 0 | 2 | 0 | $$params{'controller'} // ucfirst $route_name_lower |
| 143 | 0 | 0 | 0 | $$params{'controller'} // ucfirst $route_name_lower |