Condition Coverage

blib/lib/Mojolicious/Plugin/Routes/Restful.pm
Criterion Covered Total %
condition 67 106 63.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'
235 0 4 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
245 0 4 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
255 2 2 0 $verbs->{'CREATE'} and $api->{'DEBUG'}
265 2 2 0 $verbs->{'UPDATE'} and $api->{'DEBUG'}
275 2 2 0 $verbs->{'REPLACE'} and $api->{'DEBUG'}
285 2 2 0 $verbs->{'DELETE'} and $api->{'DEBUG'}
313 0 8 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
324 0 8 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
335 2 6 0 $verbs->{'CREATE'} and $api->{'DEBUG'}
346 2 6 0 $verbs->{'REPLACE'} and $api->{'DEBUG'}
357 2 6 0 $verbs->{'UPDATE'} and $api->{'DEBUG'}
368 2 6 0 $verbs->{'DELETE'} and $api->{'DEBUG'}
395 2 8 0 $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
404 4 6 0 $verbs->{'UPDATE'} and $api->{'DEBUG'}

or 2 conditions

line l !l condition
49 4 0 $args ||= {}
112 0 28 $route->{'STASH'} || {}
116 6 22 $route->{'ACTION'} || 'show'
212 10 12 $config->{'VERSION'} || ''
213 10 12 $config->{'RESOURCE_PREFIX'} || ''
225 0 4 $api->{'STASH'} || {}
227 2 2 $config->{'PREFIX'} || 'api'
302 0 8 $api->{'STASH'} || {}
304 4 4 $config->{'PREFIX'} || 'api'
383 0 10 $api->{'STASH'} || {}
385 4 6 $config->{'PREFIX'} || 'api'

or 3 conditions

line l !l&&r !l&&!r condition
117 6 22 0 $route->{'CONTROLLER'} || $key
123 2 0 8 exists $route->{'NO_ROOT'} or exists $route->{'API_ONLY'}
132 2 0 8 exists $route->{'NO_ID'} or exists $route->{'API_ONLY'}
145 10 0 0 $resource || $key
149 4 14 0 $route->{'CONTROLLER'} || $parent
156 2 8 0 $route->{'ACTION'} || $key
184 2 6 0 $route->{'ACTION'} || $key
223 2 2 0 $api->{'RESOURCE'} || PL($key)
226 2 2 0 $api->{'CONTROLLER'} || $resource
300 2 6 0 $api->{'RESOURCE'} || PL($key)
303 2 6 0 $api->{'CONTROLLER'} || $child_resource
382 6 4 0 $api->{'RESOURCE'} || PL($key)
384 2 8 0 $api->{'ACTION'} || $child_resource