blib/lib/Swagger2/Client.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 28 | 71.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
136 | 2 | 2 | 3 | $type =~ /^(?:integer|number)/ and $value =~ /^\d/ |
141 | 6 | 0 | 2 | $in eq 'formData' and $type eq 'file' |
line | l | !l | condition |
---|---|---|---|
11 | 0 | 4 | $ENV{'SWAGGER2_DEBUG'} || 0 |
20 | 4 | 0 | $swagger->api_spec->get('/paths') || {} |
58 | 8 | 7 | shift() || {} |
72 | 3 | 0 | $args->{$1} // '' |
133 | 8 | 3 | $type ||= 'object' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
35 | 17 | 3 | 0 | $op_spec->{'operationId'} || $path |
88 | 4 | 1 | 2 | not $tx->error or $self->return_on_error |
132 | 7 | 4 | 4 | defined $value or Swagger2::_is_true($p->{'required'}) |
137 | 0 | 0 | 0 | $value eq 'false' || !$value |