line |
true |
false |
branch |
27
|
0 |
0 |
unless my $url = $args{'url'} |
31
|
0 |
0 |
exists $conf->{'validate_spec'} ? : |
|
0 |
0 |
exists $args{'validate_spec'} ? : |
35
|
0 |
0 |
exists $conf->{'validate_requests'} ? : |
|
0 |
0 |
exists $args{'validate_requests'} ? : |
39
|
0 |
0 |
exists $conf->{'validate_responses'} ? : |
|
0 |
0 |
exists $args{'validate_responses'} ? : |
44
|
0 |
0 |
if ($validate_spec or $validate_requests or $validate_responses) |
45
|
0 |
0 |
if (my(@errors) = $spec->validate) |
46
|
0 |
0 |
if ($validate_spec) { } |
62
|
0 |
0 |
if $basePath |
69
|
0 |
0 |
unless my $coderef = &$controller_factory($method_spec, $http_method, $path, $dsl, $conf, \%args) |
73
|
0 |
0 |
if DEBUG() |
78
|
0 |
0 |
if $http_method eq 'delete' |
82
|
0 |
0 |
if ($validate_requests) |
86
|
0 |
0 |
if (@errors) |
87
|
0 |
0 |
if DEBUG() |
95
|
0 |
0 |
if ($validate_responses) |
100
|
0 |
0 |
if (@errors) |
101
|
0 |
0 |
if DEBUG() |
128
|
0 |
4 |
if ($in eq 'body') { } |
138
|
0 |
4 |
if ($in eq 'header') { } |
|
4 |
0 |
elsif ($in eq 'query') { } |
|
0 |
0 |
elsif ($in eq 'path') { } |
|
0 |
0 |
elsif ($in eq 'formData') { } |
153
|
1 |
3 |
if (@values == 0 and $required) { } |
|
1 |
2 |
elsif (@values > 1) { } |
154
|
1 |
0 |
if $required |
166
|
0 |
2 |
if $required |
183
|
3 |
0 |
if (my $response_spec = $responses->{$status} || $responses->{'default'}) { } |
190
|
0 |
2 |
if ($header_spec->{'type'} eq 'array') { } |
195
|
0 |
2 |
if (@values == 0) { } |
|
0 |
2 |
elsif (@values > 1) { } |
210
|
1 |
2 |
if (my $schema = $response_spec->{'schema'}) |
235
|
0 |
0 |
if ($method =~ s/^(.+):://) |
241
|
0 |
0 |
if ($namespace) { } |
242
|
0 |
0 |
if ($module) { } |
246
|
0 |
0 |
if ($module) { } |
261
|
0 |
0 |
if ($@) |
262
|
0 |
0 |
if ($@ =~ /^Can't locate /) { } |
263
|
0 |
0 |
if DEBUG() |
273
|
0 |
0 |
if (my $cb = $controller->can($method)) { } |
277
|
0 |
0 |
if DEBUG() |