Condition Coverage

blib/lib/OpenAPI/Modern.pm
Criterion Covered Total %
condition 62 82 75.6


and 3 conditions

line !l l&&!r l&&r condition
258 46 0 2 $request and lc $request->method ne $method
278 12 2 2 exists $options->{'path_template'} and $options->{'path_template'} ne $path_template
282 12 0 2 $options->{'method'} and lc $options->{'method'} ne $method
284 2 8 2 $request and lc $request->method ne $method
305 152 2 9 not $path_template and $request
154 0 9 not $path_template and $request and my $uri_path = _request_uri($request)->path
308 9 0 0 exists $schema->{'servers'} and @{$schema->{'servers'}}
321 5 0 2 $options->{'path_captures'} and not is_equal($options->{'path_captures'}, \%path_captures)
338 48 100 4 exists $options->{'path_captures'} and not is_equal([sort(keys %{$$options{"path_captures"}})], [sort(@capture_names)])
362 6 90 2 exists $options->{'path_captures'} and not is_equal([map(($_ . ""), @$options->{'path_captures'}{@capture_names})], \@capture_values)
462 42 4 4 not defined $media_type and exists $content_obj->{'*/*'}
555 14 68 34 XXX and exists $schema->{'type'}
68 0 34 XXX and exists $schema->{'type'} and not XXX
68 18 16 XXX and exists $schema->{'type'} and not XXX and grep(($schema->{'type'} eq $_), ("number", "integer"))
18 0 16 XXX and exists $schema->{'type'} and not XXX and grep(($schema->{'type'} eq $_), ("number", "integer")) and &looks_like_number($data)
2 20 78 defined $data and not XXX

or 2 conditions

line l !l condition
85 0 128 $options->{'errors'} //= []
179 0 43 $options->{'errors'} //= []
251 171 12 $options->{'errors'} //= []
396 1 40 $param_obj->{'allowReserved'} // 0
472 0 0 $content_obj->{$media_type}{'schema'}{'properties'} // {}
530 0 0 $state->{'annotations'} // []
605 25 2 $message->headers->content_type // ""
25 2 (split(/;/u, $message->headers->content_type // "", 2))[0] // ""

or 3 conditions

line l !l&&r !l&&!r condition
461 40 2 8 &first(sub {
477 0 0 0 $content_type =~ m[^multipart/]u or $content_type eq "application/x-www-form-urlencoded"
502 0 0 4 not defined $schema or XXX ? !keys(%$schema) : $schema
598 146 4 0 $message->content->headers->header($header_name) // ()
617 5 22 4 $message->headers->content_length // length ${$message->content_ref}
5 22 4 $message->headers->content_length // $message->body_size