Condition Coverage

blib/lib/Swagger2/POD.pm
Criterion Covered Total %
condition 29 56 51.7


and 3 conditions

line !l l&&!r l&&r condition
280 73 101 64 $required and ref $required eq 'ARRAY'
355 0 0 93 $k eq 'required' and Swagger2::_is_true($obj->{$k})
356 0 0 0 &blessed($obj->{$k}) and $obj->{$k} eq 'Mojo::JSON'->true
357 0 0 0 &blessed($obj->{$k}) and $obj->{$k} eq 'Mojo::JSON'->false

or 2 conditions

line l !l condition
50 6 4 $contact->{'name'} ||= 'Unknown author'
66 10 0 $info->{'title'} ||= 'Noname API'
67 5 5 $info->{'description'} ||= 'This API has no description.'
68 10 0 $info->{'version'} ||= '0.01'
85 21 8 $p->{'description'} ||= 'No description.'
109 37 0 $info->{'responses'} || {}
126 11 0 $self->{'api_spec'}->get('/paths') || {}
231 26 0 $schema->{'format'} || 'integer'
237 0 0 $schema->{'format'} || 'number'
242 0 10 $schema->{'description'} || 'This response contains raw binary or text data.'
268 0 94 $schema->{'format'} || 'string'
297 159 75 $schema->{'type'} || 'object'
320 29 0 $pad //= ''
324 290 0 $row->[$i] //= ''
327 145 145 $spec[$i] // 0
368 0 115 $schema->{'title'} || 'No description.'

or 3 conditions

line l !l&&r !l&&!r condition
54 0 0 6 $contact->{'email'} || $contact->{'url'}
0 0 10 $contact->{'email'} or $contact->{'url'}
133 37 0 0 $paths->{$path}{$method}{'operationId'} || join(' ', uc $method, $path)
310 22 0 71 $data->{'summary'} or $data->{'description'}