Branch Coverage

blib/lib/Mojolicious/Plugin/Routes/Restful.pm
Criterion Covered Total %
branch 66 100 66.0


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'
78 0 10 if ref $route->{'INLINE'} ne 'HASH'
111 8 20 if $parent_stash
118 10 18 if ($type eq 'PARENT')
120 6 2 unless (exists $route->{'NO_ROOT'} or exists $route->{'API_ONLY'})
126 0 6 if $route->{'DEBUG'}
129 6 2 unless (exists $route->{'NO_ID'} or exists $route->{'API_ONLY'})
135 0 6 if $route->{'DEBUG'}
140 4 6 if exists $route->{'API'}
151 10 8 if ($type eq 'INLINE') { }
8 0 elsif ($type eq 'CHILD') { }
157 10 0 if exists $route->{'API'}
160 2 8 if exists $route->{'API_ONLY'}
164 0 8 if $route->{'DEBUG'}
166 0 8 if (exists $route->{'NO_ID'}) { }
170 0 0 if $route->{'DEBUG'}
185 8 0 if exists $route->{'API'}
188 2 6 if exists $route->{'API_ONLY'}
197 0 6 if $route->{'DEBUG'}
200 0 6 if $route->{'DEBUG'}
232 0 4 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
236 4 0 if $verbs->{'RETRIEVE'}
242 0 4 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
246 4 0 if $verbs->{'RETRIEVE'}
252 0 2 if $verbs->{'CREATE'} and $api->{'DEBUG'}
256 2 2 if $verbs->{'CREATE'}
262 0 2 if $verbs->{'UPDATE'} and $api->{'DEBUG'}
266 2 2 if $verbs->{'UPDATE'}
272 0 2 if $verbs->{'REPLACE'} and $api->{'DEBUG'}
276 2 2 if $verbs->{'REPLACE'}
282 0 2 if $verbs->{'DELETE'} and $api->{'DEBUG'}
286 2 2 if $verbs->{'DELETE'}
310 0 8 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
314 8 0 if $verbs->{'RETRIEVE'}
321 0 8 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
325 8 0 if $verbs->{'RETRIEVE'}
332 0 6 if $verbs->{'CREATE'} and $api->{'DEBUG'}
336 6 2 if $verbs->{'CREATE'}
343 0 6 if $verbs->{'REPLACE'} and $api->{'DEBUG'}
347 6 2 if $verbs->{'REPLACE'}
354 0 0 if $verbs->{'PATCH'} and $api->{'DEBUG'}
358 0 8 if $verbs->{'PATCH'}
365 0 6 if $verbs->{'DELETE'} and $api->{'DEBUG'}
370 6 2 if $verbs->{'DELETE'}
392 0 8 if $verbs->{'RETRIEVE'} and $api->{'DEBUG'}
396 8 2 if $verbs->{'RETRIEVE'}
401 0 6 if $verbs->{'UPDATE'} and $api->{'DEBUG'}
405 6 4 if $verbs->{'UPDATE'}