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
50 45 26 7 $real and $real->{'type'} eq 'array'
155 4 0 38 @fields == 1 and $fields[0]->data_type =~ /int/
275 27 116 58 $field and $prop2required{$propname}
116 4 54 $field and $prop2required{$propname} and $propname ne $relational_id_field
304 3 73 2 !$def2ignore{$_} && exists $newdefs{$_}{'allOf'}
341 133 3 7 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
343 128 3 0 $thisprop->{'items'} and ($thisprop->{'items'}{'type'} // '') eq 'object'
376 132 7 3 $thisprop->{'items'} and ($thisprop->{'items'}{'type'} // '') ne 'object'
410 135 0 10 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
413 0 10 0 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
451 141 0 13 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
454 0 13 0 $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
516 2 0 2 $f1_fromkey eq $f2_fromkey and $f1->{'from'} eq $f2->{'from'}
592 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
130 173 1 $format_type or ''
230 186 1 $thisprop->{'type'} // ''
264 166 8 $relational_id_field // ''
22 114 $def->{'x-id-field'} // ''
319 51 0 $defs->{$defname}{'properties'} || {}
337 33 0 $defs->{$defname}{'properties'} || {}
343 135 1 $thisprop->{'type'} // ''
3 0 $thisprop->{'items'}{'type'} // ''
371 35 3 $defs->{$defname}{'properties'} || {}
376 10 0 $thisprop->{'items'}{'type'} // ''
404 38 3 $defs->{$defname}{'properties'} || {}
445 41 0 $defs->{$defname}{'properties'} || {}
574 146 10 $defs->{$defname}{'properties'} || {}
589 40 0 $defs->{$defname} || {}
590 40 0 $thisdef->{'properties'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
100 0 0 150 $def2mask{$defname} ||= 'Math::BigInt'->new(0)
129 23 150 1 $prop->{'format'} || $prop->{'type'}
197 8 22 0 $from_obj->get_field($fromkey) || $from_obj->add_field('name', $fromkey, 'data_type', $tokey_obj->data_type)
220 4 9 29 $m2m or $props->{$relational_id_field}
321 18 7 171 $theseprops->{$propname}{'$ref'} || $theseprops->{$propname}{'items'} && $theseprops->{$propname}{'items'}{'$ref'}
341 14 38 105 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
410 19 64 81 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
451 16 119 35 $thisprop->{'$ref'} or $thisprop->{'items'} and $thisprop->{'items'}{'$ref'}
592 9 29 2 $theseprops->{'id'} and $theseprops->{'id'}{'type'} =~ /int/ or not $theseprops->{'id'}