Condition Coverage

blib/lib/Modern/OpenAPI/Generator/CodeGen/Docs.pm
Criterion Covered Total %
condition 55 158 34.8


and 3 conditions

line !l l&&!r l&&r condition
12 0 0 13 defined $operation_id and length $operation_id
21 0 7 0 ref $tags eq 'ARRAY' && @$tags
33 0 3 0 ref $tags eq "ARRAY" and @$tags
49 0 0 1 defined $ref and length $ref
69 0 0 1 $for_doc_link && length $n
72 9 0 1 $t eq "array" and ref $sch->{'items'} eq "HASH"
75 9 0 0 $t eq "object" and ref $sch->{'properties'} eq "HASH"
126 4 0 0 ref $raw->{'servers'} eq "ARRAY" and @{$raw->{'servers'};}
176 0 0 4 ref $schemas eq "HASH" and %$schemas
228 0 0 0 ref $rb eq "HASH" and $rb->{'description'}
233 0 0 0 ($rs->{'type'} // "") eq "object" and ref $rs->{'properties'} eq "HASH"
300 3 0 0 ref $raw->{'servers'} eq "ARRAY" and @{$raw->{'servers'};}
371 0 0 5 ref $props eq "HASH" and %$props
403 0 5 0 ref $sch eq "HASH" and length($sch->{'description'} // "")
415 0 0 0 length $n and $n ne $name
469 0 0 1 $server and $local_test
528 0 0 3 $sync and $async
696 0 0 1 $server and $local_test
726 0 0 1 $server and $local_test

or 2 conditions

line l !l condition
64 11 0 $for_doc_link //= 0
66 1 10 $sch->{'$ref'} // ""
71 10 0 $sch->{'type'} // "any"
85 6 0 $spec->raw->{'paths'}{$path} // {}
89 6 0 $item->{$m} // {}
96 0 3 $spec->raw->{'security'} // []
97 0 3 $op->{'operation_hash'}{'security'} // []
99 0 3 $spec->raw->{'components'}{'securitySchemes'} // {}
113 0 0 $op->{'operation_hash'}{'requestBody'} // (return undef)
115 0 0 $rb->{'content'} // {}
127 0 0 $raw->{'servers'}[0]{'url'} // ""
143 3 0 $op->{'operation_hash'}{'summary'} // ""
175 4 0 $spec->raw->{'components'}{'schemas'} // {}
190 3 0 $oh->{'summary'} // ""
191 0 3 $oh->{'description'} // ""
212 0 0 $p->{'schema'} // {}
220 0 0 $p->{'name'} // ""
0 0 $p->{'in'} // ""
0 0 $p->{'description'} // ""
233 0 0 $rs->{'type'} // ""
244 0 0 $rs->{'required'} // []
254 0 0 $ps->{'description'} // ""
283 0 0 $p->{'name'} // (next)
301 0 0 $raw->{'servers'}[0]{'url'} // ""
332 3 0 $op->{'operation_hash'}{'summary'} // ""
360 5 0 $depth //= 0
369 5 0 $sch->{'type'} // ""
370 5 0 $sch->{'properties'} // {}
372 4 1 $sch->{'required'} // []
386 0 10 $ps->{'description'} // ""
403 0 5 $sch->{'description'} // ""
438 4 0 $spec->raw->{'components'}{'schemas'} // {}
451 4 0 $arg{'client'} // 1
452 4 0 $arg{'server'} // 1
453 4 0 $arg{'ui'} // 1
454 4 0 $arg{'sync'} // 1
455 4 0 $arg{'async'} // 1
456 4 0 $arg{'ui_only'} // 0
457 4 0 $arg{'local_test'} // 0
460 4 0 $spec->raw->{'info'}{'version'} // ""
462 0 4 $spec->raw->{'info'}{'description'} // ""
465 4 0 $Modern::OpenAPI::Generator::VERSION // 0
479 4 0 $op->{'operation_hash'}{'summary'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
116 0 0 0 $c->{'application/json'} // $c->{'application/*+json'}
448 4 0 0 $arg{'writer'} // croak("writer")
449 4 0 0 $arg{'spec'} // croak("spec")
450 4 0 0 $arg{'base'} // croak("base")
726 3 1 0 $client or $server and $local_test