Condition Coverage

blib/lib/SQL/Translator/Parser/OpenAPI.pm
Criterion Covered Total %
condition 62 79 78.4


and 3 conditions

line !l l&&!r l&&r condition
46 29 9 1 @props == 2 and grep /count/i, @props
254 23 109 44 $field and $prop2required{$propname}
109 5 39 $field and $prop2required{$propname} and $propname ne 'id'
354 117 2 6 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
356 112 2 0 $thisprop->{'items'} and ($thisprop->{'items'}{'type'} // '') eq 'object'
384 116 6 2 $thisprop->{'items'} and ($thisprop->{'items'}{'type'} // '') ne 'object'
413 118 0 8 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
416 0 8 0 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
454 124 0 11 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
457 0 11 0 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
515 2 0 1 $f1_fromkey eq $f2_fromkey and $f1->{'from'} eq $f2->{'from'}

or 2 conditions

line l !l condition
127 152 1 $format_type or ''
224 163 1 $thisprop->{'type'} // ''
332 36 0 $defs->{$defname}{'properties'} || {}
350 29 0 $defs->{$defname}{'properties'} || {}
356 118 1 $thisprop->{'type'} // ''
2 0 $thisprop->{'items'}{'type'} // ''
379 31 3 $defs->{$defname}{'properties'} || {}
384 8 0 $thisprop->{'items'}{'type'} // ''
407 33 3 $defs->{$defname}{'properties'} || {}
448 36 0 $defs->{$defname}{'properties'} || {}
564 76 0 $defs->{$defname}{'properties'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
96 0 0 108 $def2mask{$defname} ||= 'Math::BigInt'->new(0)
126 19 133 1 $prop->{'format'} || $prop->{'type'}
192 6 19 0 $from_obj->get_field($fromkey) || $from_obj->add_field('name', $fromkey, 'data_type', $tokey_obj->data_type)
214 10 3 24 $props->{'id'} or $m2m
334 16 6 136 $theseprops->{$propname}{'$ref'} || $theseprops->{$propname}{'items'} && $theseprops->{$propname}{'items'}{'$ref'}
354 12 39 86 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
413 17 49 77 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
454 14 102 33 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}