line |
true |
false |
branch |
23
|
0 |
4 |
40 < length $url ? : |
28
|
0 |
4 |
if $generated->isa($class) |
56
|
5 |
10 |
ref $_[-1] eq 'CODE' ? : |
62
|
5 |
10 |
if (@e) |
63
|
3 |
2 |
unless ($cb) |
64
|
1 |
2 |
if $self->return_on_error |
74
|
3 |
7 |
if ($cb) { } |
80
|
2 |
1 |
unless my $err = $tx->error |
88
|
5 |
2 |
if not $tx->error or $self->return_on_error |
96
|
0 |
4 |
unless eval "package $package;\nuse Mojo::Base '${base}';\nhas return_on_error => 0;\n1;\n" |
113
|
1 |
3 |
if (UNIVERSAL::isa($_[0], 'Swagger2')) { } |
128
|
0 |
15 |
unless $op_spec->{'parameters'} |
130
|
7 |
8 |
exists $args->{$name} ? : |
132
|
11 |
4 |
if (defined $value or Swagger2::_is_true($p->{'required'})) |
135
|
7 |
4 |
if (defined $value) |
136
|
3 |
4 |
if $type =~ /^(?:integer|number)/ and $value =~ /^\d/ |
137
|
0 |
0 |
$value eq 'false' || !$value ? : |
|
0 |
7 |
if $type eq 'boolean' |
141
|
3 |
8 |
if ($in eq 'body') { } |
|
2 |
6 |
elsif ($in eq 'formData' and $type eq 'file') { } |
144
|
2 |
0 |
$_->{'path'} eq '/' ? : |
156
|
8 |
7 |
if (not defined $value) { } |
|
2 |
5 |
elsif ($in eq 'query') { } |
|
0 |
5 |
elsif ($in eq 'header') { } |
|
1 |
4 |
elsif ($in eq 'body') { } |
|
1 |
3 |
elsif ($in eq 'formData') { } |
174
|
0 |
15 |
if defined $body |