Branch Coverage

blib/lib/Dancer2/Plugin/Swagger2.pm
Criterion Covered Total %
branch 15 46 32.6


line true false branch
148 0 4 if ($in eq 'body') { }
158 0 4 if ($in eq 'header') { }
4 0 elsif ($in eq 'query') { }
0 0 elsif ($in eq 'path') { }
0 0 elsif ($in eq 'formData') { }
173 1 3 if (@values == 0 and $required) { }
1 2 elsif (@values > 1) { }
174 1 0 if $required
186 0 2 if $required
203 3 0 if (my $response_spec = $responses->{$status} || $responses->{'default'}) { }
210 0 2 if ($header_spec->{'type'} eq 'array') { }
215 0 2 if (@values == 0) { }
0 2 elsif (@values > 1) { }
230 1 2 if (my $schema = $response_spec->{'schema'})
255 0 0 if ($method =~ s/^(.+):://)
261 0 0 if ($namespace) { }
262 0 0 if ($module) { }
266 0 0 if ($module) { }
281 0 0 if ($@)
282 0 0 if ($@ =~ /^Can't locate /) { }
283 0 0 if DEBUG()
293 0 0 if (my $cb = $controller->can($method)) { }
297 0 0 if DEBUG()