Branch Coverage

blib/lib/JSON/Schema/Modern/Vocabulary/Unevaluated.pm
Criterion Covered Total %
branch 50 52 96.1


line true false branch
37 4 58 if $spec_version =~ /^draft(?:[467]|2019-09)\z/u
46 134 420 unless is_type("array", $data)
50 0 420 unless $$state{"collect_annotations"}
56 189 231 $$state{'specification_version'} eq 'draft2019-09' ? :
60 103 161 if $bools{$$_{"keyword"}} and is_type("boolean", $$_{"annotation"})
103 317 if CORE::any {$$_{"annotation"} if $bools{$$_{"keyword"}} and is_type("boolean", $$_{"annotation"});} @annotations
65 148 169 $$state{'specification_version'} eq 'draft2019-09' ? :
67 105 33 $our $_{'keyword'} eq $max_index_annotation_keyword ? :
69 94 223 if $last_index == $data->$#*
72 33 55 $our $_{'keyword'} eq 'contains' ? :
100 123 $$state{'specification_version'} eq 'draft2019-09' ? :
76 56 256 if CORE::any {$idx == $_;} @contains_annotation_indexes
77 194 62 if (is_type('boolean', $$schema{'unevaluatedItems'})) { }
78 20 174 if $$schema{"unevaluatedItems"}
83 44 18 if ($class->eval($$data[$idx], $$schema{"unevaluatedItems"}, {%$state, "data_path", $$state{"data_path"} . '/' . $idx, "keyword_path", $$state{"keyword_path"} . '/unevaluatedItems', "collect_annotations", $$state{"collect_annotations"} & '18446744073709551614'}))
92 89 103 if $$state{"short_circuit"}
96 183 40 unless $valid
105 113 819 unless is_type("object", $data)
109 0 819 unless $$state{"collect_annotations"}
114 701 6 grep(($keyword eq $_), ('properties', 'additionalProperties', 'patternProperties', 'unevaluatedProperties')) ? :
120 568 485 if CORE::any {$_ eq $property;} @evaluated_properties
123 450 35 if (is_type('boolean', $$schema{'unevaluatedProperties'})) { }
124 133 317 if $$schema{"unevaluatedProperties"}
129 22 13 if ($class->eval($$data{$property}, $$schema{"unevaluatedProperties"}, {%$state, "data_path", jsonp($$state{"data_path"}, $property), "keyword_path", $$state{"keyword_path"} . '/unevaluatedProperties', "collect_annotations", $$state{"collect_annotations"} & '18446744073709551614'}))
138 148 182 if $$state{"short_circuit"}
142 308 511 unless $valid