Branch Coverage

blib/lib/OpenAPI/Render/HTMLForms.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
55 10 0 $self->{'api'}{'paths'}{$path}{$operation}{'description'} ? :
63 5 5 if ($operation eq 'get' or $operation eq 'post') { }
79 6 68 if $parameter->{'_is_pattern'}
83 31 37 $parameter->{'description'} ? :
84 6 62 if ($parameter->{'schema'} and $parameter->{'schema'}{'enum'}) { }
36 26 elsif ($parameter->{'schema'}{'type'} and $parameter->{'schema'}{'type'} eq 'object' or $parameter->{'schema'}{'format'} and $parameter->{'schema'}{'format'} eq 'binary') { }
86 6 0 unless ($parameter->{'required'})
92 0 6 $parameter->{'in'} eq 'path' ? :
108 17 9 $parameter->{'in'} eq 'path' ? :
23 3 exists $parameter->{'example'} ? :