lib/APISchema/Validator.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 8 | 75.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
34 | 65 | 0 | 0 | @_ == 1 && ref $_[0] eq 'HASH' |
109 | 19 | 7 | 39 | $resource_spec->{'body'} && do { my($enc, $err) = _resolve_encoding($target->{'content_type'} // '', $resource_spec->{'encoding'}); if ($err) { return _error_result('body', $err); }; $enc } |
line | l | !l | condition |
---|---|---|---|
54 | 19 | 27 | $encoding_spec //= {application/json => 'json', application/x-www-form-urlencoded => 'url_parameter'} |