Branch Coverage

blib/lib/Swagger2/POD.pm
Criterion Covered Total %
branch 53 74 71.6


line true false branch
23 0 10 unless $self->{'api_spec'}->get('/schemes')
27 0 10 unless (@schemes)
45 4 6 unless ($license->{'name'})
54 6 4 if $contact->{'email'} or $contact->{'url'}
56 10 0 if $license->{'url'}
74 0 10 if $info->{'termsOfService'}
84 8 29 unless $info->{'parameters'}
86 10 19 if ($p->{'in'} eq 'body') { }
95 13 6 Swagger2::_is_true($p->{'required'}) ? :
100 8 29 @table == 1 ? :
102 10 27 if %body
132 6 37 if $method =~ /^x-/
134 0 37 if $info{$operationId}
148 0 37 if $info->{'deprecated'}
150 0 37 if $ext
152 0 37 if $info->{'deprecated'}
207 10 19 $description eq 'No description.' ? :
252 75 0 $description eq 'No description.' ? :
258 143 0 if ref $schema->{$k} eq 'HASH'
277 75 163 if ($schema->{'properties'})
280 64 174 if ($required and ref $required eq 'ARRAY')
284 0 238 if ($schema->{'anyOf'}) { }
0 238 elsif ($schema->{'allOf'}) { }
0 238 elsif ($schema->{'oneOf'}) { }
4 234 elsif (ref $schema->{'type'} eq 'ARRAY') { }
300 0 234 unless $self->can($method)
308 22 71 if $data->{'summary'}
309 56 37 if $data->{'description'}
310 15 56 unless $data->{'summary'} or $data->{'description'}
327 255 35 if $len >= ($spec[$i] // 0)
349 37 19 if $message
355 93 0 if $k eq 'required' and Swagger2::_is_true($obj->{$k})
356 0 0 if &blessed($obj->{$k}) and $obj->{$k} eq 'Mojo::JSON'->true
357 0 0 if &blessed($obj->{$k}) and $obj->{$k} eq 'Mojo::JSON'->false
358 0 0 if ref $obj->{$k}
364 16 208 if $schema->{'description'}
368 115 93 unless @description