Condition Coverage

blib/lib/OpenAPI/Modern.pm
Criterion Covered Total %
condition 36 51 70.5


and 3 conditions

line !l l&&!r l&&r condition
274 4 1 1 exists $options->{'path_template'} and $options->{'path_template'} ne $path_template
286 3 0 0 exists $schema->{'servers'} and @{$schema->{'servers'}}
309 22 49 1 exists $options->{'path_captures'} and not is_equal([sort(keys %{$$options{"path_captures"}})], [sort(@capture_names)])
324 21 45 1 exists $options->{'path_captures'} and not is_equal([map(($_ . ""), @$options->{'path_captures'}{@capture_names})], \@capture_values)
424 21 2 2 not defined $media_type and exists $content_obj->{'*/*'}
518 7 34 17 XXX and exists $schema->{'type'}
34 0 17 XXX and exists $schema->{'type'} and not XXX
34 9 8 XXX and exists $schema->{'type'} and not XXX and grep(($schema->{'type'} eq $_), ("number", "integer"))
9 0 8 XXX and exists $schema->{'type'} and not XXX and grep(($schema->{'type'} eq $_), ("number", "integer")) and &looks_like_number($data)
1 10 39 defined $data and not XXX

or 2 conditions

line l !l condition
85 0 62 $options->{'errors'} //= []
178 0 19 $options->{'errors'} //= []
247 81 1 $options->{'errors'} //= []
358 1 20 $param_obj->{'allowReserved'} // 0
434 0 0 $content_obj->{$media_type}{'schema'}{'properties'} // {}
493 0 0 $state->{'annotations'} // []

or 3 conditions

line l !l&&r !l&&!r condition
423 20 1 4 &first(sub {
439 0 0 0 $content_type =~ m[^multipart/]u or $content_type eq "application/x-www-form-urlencoded"
465 0 0 2 not defined $schema or XXX ? !keys(%$schema) : $schema