| lib/Dancer/Plugin/Swagger.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 26 | 50.0 |
| line | true | false | branch |
|---|---|---|---|
| 170 | 0 | 0 | if ref $pattern eq 'Regexp' |
| 172 | 0 | 0 | ref $_ ? : |
| 0 | 0 | if grep {ref $_ ? $pattern =~ /$_/ : $pattern eq $_;} @{$args{'skip'};} | |
| 192 | 1 | 7 | if (@_ and not ref $_[0]) |
| 196 | 1 | 0 | if $description =~ /^(\s+)/ |
| 202 | 1 | 7 | if $description |
| 205 | 4 | 4 | if (my $p = $arg->{'parameters'}) |
| 206 | 2 | 2 | if (ref $p eq 'HASH') |
| 214 | 2 | 7 | unless (ref $k) |
| 216 | 1 | 1 | unless ref $value |
| 252 | 0 | 0 | if $status =~ /^\d{3}$/ |
| 254 | 0 | 0 | $template ? : |
| 262 | 0 | 0 | if $plugin->validate_response |