Condition Coverage

blib/lib/OpenAPI/Modern.pm
Criterion Covered Total %
condition 48 72 66.6


and 3 conditions

line !l l&&!r l&&r condition
86 0 123 0 $request and $options->{'request'}
123 0 0 $request and $options->{'request'} and $request != $options->{'request'}
210 0 2 0 $request and $options->{'request'}
2 0 0 $request and $options->{'request'} and $request != $options->{'request'}
318 70 179 3 $options->{'request'} and my $error = $options->{'request'}->error
329 66 0 2 $options->{'request'} and lc $options->{'request'}->method ne $method
346 12 2 2 exists $options->{'path_template'} and $options->{'path_template'} ne $path_template
350 2 8 4 $options->{'method'} and lc $options->{'method'} ne $method
372 186 2 41 not $path_template and $options->{'request'}
2 0 41 not $path_template and $options->{'request'} and my $uri_path = $options->{'request'}->url->path
375 41 0 0 exists $schema->{'servers'} and @{$schema->{'servers'}}
396 32 0 2 $options->{'path_captures'} and not is_equal($options->{'path_captures'}, \%path_captures)
422 66 116 4 exists $options->{'path_captures'} and not is_equal([sort(keys %{$$options{"path_captures"}})], [sort(@capture_names)])
448 8 102 2 exists $options->{'path_captures'} and not is_equal([map(($_ . ""), @$options->{'path_captures'}{@capture_names})], \@capture_values)
556 66 4 12 not defined $media_type and exists $content_obj->{'*/*'}
579 44 24 10 $content_type =~ m[^text/]u and my $charset = $message->content->charset

or 2 conditions

line l !l condition
315 0 252 $options->{'errors'} //= []
485 1 48 $param_obj->{'allowReserved'} // 0
548 82 4 $message->headers->content_type // ""
82 4 (split(/;/u, $message->headers->content_type // "", 2))[0] // ""
566 0 0 $content_obj->{$media_type}{'schema'}{'properties'} // {}
626 46 0 $state->{'annotations'} // []

or 3 conditions

line l !l&&r !l&&!r condition
211 0 2 0 $options->{'request'} //= $request
555 64 2 16 &first(sub {
571 0 0 0 $content_type =~ m[^multipart/]u or $content_type eq "application/x-www-form-urlencoded"
597 0 0 4 not defined $schema or XXX ? !keys(%$schema) : $schema