Condition Coverage

blib/lib/SQL/Translator/Parser/OpenAPI.pm
Criterion Covered Total %
condition 81 102 79.4


and 3 conditions

line !l l&&!r l&&r condition
49 45 26 7 $real and $real->{'type'} eq 'array'
154 4 0 38 @fields == 1 and $fields[0]->data_type =~ /int/
274 27 116 58 $field and $prop2required{$propname}
116 4 54 $field and $prop2required{$propname} and $propname ne $relational_id_field
303 3 73 2 !$def2ignore{$_} && exists $newdefs{$_}{'allOf'}
340 133 3 7 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
342 128 3 0 $thisprop->{'items'} and ($thisprop->{'items'}{'type'} // '') eq 'object'
375 132 7 3 $thisprop->{'items'} and ($thisprop->{'items'}{'type'} // '') ne 'object'
409 135 0 10 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
412 0 10 0 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
450 141 0 13 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
453 0 13 0 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
515 2 0 2 $f1_fromkey eq $f2_fromkey and $f1->{'from'} eq $f2->{'from'}
591 29 2 9 $theseprops->{'id'} and $theseprops->{'id'}{'type'} =~ /int/
2 0 0 $thisdef->{'x-id-field'} and $$theseprops{$thisdef->{'x-id-field'}}{'type'} =~ /int/

or 2 conditions

line l !l condition
129 173 1 $format_type or ''
229 186 1 $thisprop->{'type'} // ''
263 166 8 $relational_id_field // ''
22 114 $def->{'x-id-field'} // ''
318 51 0 $defs->{$defname}{'properties'} || {}
336 33 0 $defs->{$defname}{'properties'} || {}
342 135 1 $thisprop->{'type'} // ''
3 0 $thisprop->{'items'}{'type'} // ''
370 35 3 $defs->{$defname}{'properties'} || {}
375 10 0 $thisprop->{'items'}{'type'} // ''
403 38 3 $defs->{$defname}{'properties'} || {}
444 41 0 $defs->{$defname}{'properties'} || {}
573 146 10 $defs->{$defname}{'properties'} || {}
588 40 0 $defs->{$defname} || {}
589 40 0 $thisdef->{'properties'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
99 0 0 150 $def2mask{$defname} ||= 'Math::BigInt'->new(0)
128 23 150 1 $prop->{'format'} || $prop->{'type'}
196 8 22 0 $from_obj->get_field($fromkey) || $from_obj->add_field('name', $fromkey, 'data_type', $tokey_obj->data_type)
219 4 9 29 $m2m or $props->{$relational_id_field}
320 18 7 171 $theseprops->{$propname}{'$ref'} || $theseprops->{$propname}{'items'} && $theseprops->{$propname}{'items'}{'$ref'}
340 14 41 102 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
409 19 67 78 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
450 16 124 30 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
591 9 29 2 $theseprops->{'id'} and $theseprops->{'id'}{'type'} =~ /int/ or not $theseprops->{'id'}