Condition Coverage

blib/lib/Modern/OpenAPI/Generator/CodeGen/ClientModels.pm
Criterion Covered Total %
condition 37 76 48.6


and 3 conditions

line !l l&&!r l&&r condition
26 0 0 4 ref $schemas eq "HASH" and %$schemas
45 0 0 6 ($sch->{'type'} // "") eq "object" and ref $sch->{'properties'} eq "HASH"
57 0 10 1 defined $ref and $ref =~ m[\#/components/schemas/([^/]+)\z]u
192 0 0 5 ref $props eq "HASH" and %$props
332 8 0 1 ($ps->{'type'} // "") eq "array" and ref $ps->{'items'} eq "HASH"
367 6 1 1 $t eq "string" and ref $ps->{'enum'} eq "ARRAY"
7 0 1 $t eq "string" and ref $ps->{'enum'} eq "ARRAY" and @{$ps->{'enum'};}

or 2 conditions

line l !l condition
25 4 0 $spec->raw->{'components'}{'schemas'} // {}
45 6 0 $sch->{'type'} // ""
76 18 0 $spec->raw->{'info'} // {}
77 18 0 $info->{'title'} // "API"
78 0 18 $info->{'description'} // ""
81 18 0 $info->{'version'} // ""
85 18 0 $Modern::OpenAPI::Generator::VERSION // 0
191 5 0 $sch->{'properties'} // {}
194 4 1 $sch->{'required'} // []
272 0 5 $sch->{'description'} // ""
277 0 5 $sch->{'description'} // ""
314 1 9 $ps->{'$ref'} // ""
332 9 0 $ps->{'type'} // ""
334 0 1 $it->{'$ref'} // ""
356 1 0 $it->{'type'} // ""
1 0 $it->{'type'} // ""
366 8 0 $ps->{'type'} // "string"

or 3 conditions

line l !l&&r !l&&!r condition
17 4 0 0 $arg{'writer'} // croak("writer")
18 4 0 0 $arg{'spec'} // croak("spec")
19 4 0 0 $arg{'base'} // croak("base")
44 0 0 6 $sch->{'allOf'} or $sch->{'oneOf'}
0 0 6 $sch->{'allOf'} or $sch->{'oneOf'} or $sch->{'anyOf'}
317 0 0 1 !$all_schemas->{$r} || _schema_skipped($all_schemas->{$r})
337 0 0 0 !$all_schemas->{$r} || _schema_skipped($all_schemas->{$r})