Branch Coverage

blib/lib/JSONSchema/Validator/Constraints/OAS30.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
19 2 395 if ($self->check_type($instance, "null"))
29 10 385 unless $self->check_type($instance, $type)
36 385 10 if $result
49 0 21 unless $self->check_type($instance, "array")
58 6 34 unless $r
66 2 6 unless $schema->{'type'}
67 5 1 if $nullable
68 1 0 unless (defined $instance)
81 0 14 unless $readOnly
82 12 2 if $data->{'direction'} eq "response"
94 0 12 unless $writeOnly
95 10 2 if $data->{'direction'} eq "request"
107 0 94 unless $self->check_type($instance, "object")
112 160 26 if exists $instance->{$prop}
114 26 0 if ($schema->{'properties'} and $schema->{'properties'}{$prop})
120 8 18 if $direction eq "request" and $read_only
121 6 12 if $direction eq "response" and $write_only
136 0 28 unless $self->check_type($instance, "object")
153 24 4 if $scope
157 0 28 unless $schema
165 0 28 if ($@)
183 0 6 unless $deprecated
200 2 26 if $ref =~ m[/]
201 0 26 if $ref =~ /\.json$/