Branch Coverage

blib/lib/OpenAPI/Render.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
34 0 1 if (ref $api) { }
44 1 0 if (exists $self->{'api'}{'openapi'}) { }
46 0 1 if ($version < "version"->parse(3) or $version > "version"->parse(4))
56 1 0 if $base_url
78 5 10 unless $api->{'paths'}{$path}{$operation}
233 30 18 if $path_filter and $path ne $path_filter
235 60 30 if $operation_filter and $operation ne $operation_filter
236 5 25 unless $api->{'paths'}{$path}{$operation}
238 25 0 if (exists $api->{'paths'}{$path}{'parameters'})
242 6 19 if (exists $api->{'paths'}{$path}{$operation}{'parameters'})
246 14 11 if (exists $api->{'paths'}{$path}{$operation}{'requestBody'})
260 11 296 if (ref $node eq 'ARRAY') { }
162 134 elsif (ref $node eq 'HASH') { }
264 37 125 if (scalar @keys == 1 and $keys[0] eq '$ref') { }
284 0 14 unless exists $requestBody->{'content'} and exists $requestBody->{'content'}{'multipart/form-data'} and exists $requestBody->{'content'}{'multipart/form-data'}{'schema'}
288 0 14 if $schema->{'type'} ne "object"