Branch Coverage

blib/lib/JSON/Schema/Modern/Vocabulary/Unevaluated.pm
Criterion Covered Total %
branch 49 56 87.5


line true false branch
32 0 46 if $spec_version =~ /^draft[467]$/u
43 0 542 unless $state->{'collect_annotations'}
45 0 542 if $state->{'short_circuit'}
47 168 374 unless is_type("array", $data)
53 171 203 $state->{'spec_version'} eq 'draft2019-09' ? :
57 84 129 if $bools{$_->{'keyword'}} and is_type("boolean", $_->{'annotation'})
58 84 290 if &any(sub {
62 136 154 $state->{'spec_version'} eq 'draft2019-09' ? :
64 84 24 $_->{'keyword'} eq $max_index_annotation_keyword ? :
66 90 200 if $last_index == $#$data
69 24 46 $_->{'keyword'} eq 'contains' ? :
92 108 $state->{'spec_version'} eq 'draft2019-09' ? :
73 46 242 if &any(sub {
74 178 64 if (is_type('boolean', $schema->{'unevaluatedItems'})) { }
75 20 158 if $schema->{'unevaluatedItems'}
80 46 18 if ($self->eval($data->[$idx], $schema->{'unevaluatedItems'}, {%$state, "data_path", $state->{'data_path'} . "/" . $idx, "schema_path", $state->{'schema_path'} . "/unevaluatedItems", "collect_annotations", $state->{'collect_annotations'} & '18446744073709551614'}))
89 0 176 if $state->{'short_circuit'}
93 160 40 unless $valid
104 0 969 unless $state->{'collect_annotations'}
106 0 969 if $state->{'short_circuit'}
108 143 826 unless is_type("object", $data)
113 655 6 grep(($keyword eq $_), ('properties', 'additionalProperties', 'patternProperties', 'unevaluatedProperties')) ? :
119 551 558 if &any(sub {
122 523 35 if (is_type('boolean', $schema->{'unevaluatedProperties'})) { }
123 197 326 if $schema->{'unevaluatedProperties'}
128 22 13 if ($self->eval($data->{$property}, $schema->{'unevaluatedProperties'}, {%$state, "data_path", jsonp($state->{'data_path'}, $property), "schema_path", $state->{'schema_path'} . "/unevaluatedProperties", "collect_annotations", $state->{'collect_annotations'} & '18446744073709551614'}))
137 0 339 if $state->{'short_circuit'}
141 291 535 unless $valid