Branch Coverage

blib/lib/Mojolicious/Plugin/Routes/Restful.pm
Criterion Covered Total %
branch 69 102 67.6


line true false branch
25 22 6 unless $via
52 0 8 unless exists $args->{$sub_ref}
58 0 4 unless exists $args->{'CONFIG'}{$sub_ref} and ref $args->{'CONFIG'}{$sub_ref} eq 'ARRAY'
64 0 4 if exists $args->{'ROUTE'}
81 0 10 if ref $route->{'INLINE'} ne 'HASH'
114 8 20 if $parent_stash
121 10 18 if ($type eq 'PARENT')
123 6 2 unless (exists $route->{'NO_ROOT'} or exists $route->{'API_ONLY'})
129 0 6 if $route->{'DEBUG'}
132 6 2 unless (exists $route->{'NO_ID'} or exists $route->{'API_ONLY'})
138 0 6 if $route->{'DEBUG'}
143 4 6 if exists $route->{'API'}
154 10 8 if ($type eq 'INLINE') { }
8 0 elsif ($type eq 'CHILD') { }
160 10 0 if exists $route->{'API'}
163 2 8 if exists $route->{'API_ONLY'}
167 0 8 if $route->{'DEBUG'}
169 0 8 if (exists $route->{'NO_ID'}) { }
173 0 0 if $route->{'DEBUG'}
188 8 0 if exists $route->{'API'}
191 2 6 if exists $route->{'API_ONLY'}
200 0 6 if $route->{'DEBUG'}
203 0 6 if $route->{'DEBUG'}
235 0 4 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
239 4 0 if $verbs->{'RETRIEVE'}
245 0 4 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
249 4 0 if $verbs->{'RETRIEVE'}
255 0 2 if $verbs->{'CREATE'} and $api->{'DEBUG'}
259 2 2 if $verbs->{'CREATE'}
265 0 2 if $verbs->{'UPDATE'} and $api->{'DEBUG'}
269 2 2 if $verbs->{'UPDATE'}
275 0 2 if $verbs->{'REPLACE'} and $api->{'DEBUG'}
279 2 2 if $verbs->{'REPLACE'}
285 0 2 if $verbs->{'DELETE'} and $api->{'DEBUG'}
289 2 2 if $verbs->{'DELETE'}
313 0 8 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
317 8 0 if $verbs->{'RETRIEVE'}
324 0 8 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
328 8 0 if $verbs->{'RETRIEVE'}
335 0 6 if $verbs->{'CREATE'} and $api->{'DEBUG'}
339 6 2 if $verbs->{'CREATE'}
346 0 6 if $verbs->{'REPLACE'} and $api->{'DEBUG'}
350 6 2 if $verbs->{'REPLACE'}
357 0 6 if $verbs->{'UPDATE'} and $api->{'DEBUG'}
361 6 2 if $verbs->{'UPDATE'}
368 0 6 if $verbs->{'DELETE'} and $api->{'DEBUG'}
373 6 2 if $verbs->{'DELETE'}
395 0 8 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
399 8 2 if $verbs->{'RETRIEVE'}
404 0 6 if $verbs->{'UPDATE'} and $api->{'DEBUG'}
408 6 4 if $verbs->{'UPDATE'}