Branch Coverage

blib/lib/OpenAPI/Render/HTMLForms.pm
Criterion Covered Total %
branch 19 22 86.3


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->{'x-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' ? :
110 17 9 $parameter->{'in'} eq 'path' ? :
23 3 exists $parameter->{'example'} ? :
17 9 $parameter->{'in'} eq 'path' || $parameter->{'required'} ? :