Branch Coverage

blib/lib/OpenAPI/Render.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
16 1 0 if $base_url
32 5 10 unless $api->{'paths'}{$path}{$operation}
39 10 0 exists $api->{'paths'}{$path}{'parameters'} ? :
2 8 exists $api->{'paths'}{$path}{$operation}{'parameters'} ? :
6 4 exists $api->{'paths'}{$path}{$operation}{'requestBody'} ? :
81 11 296 if (ref $node eq 'ARRAY') { }
162 134 elsif (ref $node eq 'HASH') { }
85 37 125 if (scalar @keys == 1 and $keys[0] eq '$ref') { }
105 0 6 unless exists $requestBody->{'content'} and exists $requestBody->{'content'}{'multipart/form-data'} and exists $requestBody->{'content'}{'multipart/form-data'}{'schema'}
109 0 6 if $schema->{'type'} ne 'object'