Condition Coverage

blib/lib/Mojolicious/Plugin/Routes/Restful.pm
Criterion Covered Total %
condition 66 106 62.2


and 3 conditions

line !l l&&!r l&&r condition
58 0 0 4 exists $args->{'CONFIG'}{$sub_ref} and ref $args->{'CONFIG'}{$sub_ref} eq 'ARRAY'
232 0 4 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
242 0 4 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
252 2 2 0 $verbs->{'CREATE'} and $api->{'DEBUG'}
262 2 2 0 $verbs->{'UPDATE'} and $api->{'DEBUG'}
272 2 2 0 $verbs->{'REPLACE'} and $api->{'DEBUG'}
282 2 2 0 $verbs->{'DELETE'} and $api->{'DEBUG'}
310 0 8 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
321 0 8 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
332 2 6 0 $verbs->{'CREATE'} and $api->{'DEBUG'}
343 2 6 0 $verbs->{'REPLACE'} and $api->{'DEBUG'}
354 8 0 0 $verbs->{'PATCH'} and $api->{'DEBUG'}
365 2 6 0 $verbs->{'DELETE'} and $api->{'DEBUG'}
392 2 8 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
401 4 6 0 $verbs->{'UPDATE'} and $api->{'DEBUG'}

or 2 conditions

line l !l condition
49 4 0 $args ||= {}
109 0 28 $route->{'STASH'} || {}
113 6 22 $route->{'ACTION'} || 'show'
209 10 12 $config->{'VERSION'} || ''
210 10 12 $config->{'RESOURCE_PREFIX'} || ''
222 0 4 $api->{'STASH'} || {}
224 2 2 $config->{'PREFIX'} || 'api'
299 0 8 $api->{'STASH'} || {}
301 4 4 $config->{'PREFIX'} || 'api'
380 0 10 $api->{'STASH'} || {}
382 4 6 $config->{'PREFIX'} || 'api'

or 3 conditions

line l !l&&r !l&&!r condition
114 6 22 0 $route->{'CONTROLLER'} || $key
120 2 0 8 exists $route->{'NO_ROOT'} or exists $route->{'API_ONLY'}
129 2 0 8 exists $route->{'NO_ID'} or exists $route->{'API_ONLY'}
142 10 0 0 $resource || $key
146 4 14 0 $route->{'CONTROLLER'} || $parent
153 2 8 0 $route->{'ACTION'} || $key
181 2 6 0 $route->{'ACTION'} || $key
220 2 2 0 $api->{'RESOURCE'} || PL($key)
223 2 2 0 $api->{'CONTROLLER'} || $resource
297 2 6 0 $api->{'RESOURCE'} || PL($key)
300 2 6 0 $api->{'CONTROLLER'} || $child_resource
379 6 4 0 $api->{'RESOURCE'} || PL($key)
381 2 8 0 $api->{'ACTION'} || $child_resource