Branch Coverage

blib/lib/JSON/Schema/Modern/Vocabulary/Content.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
37 124 2 !($spec_version =~ /^draft[46]\z/u) ? :
93 33 !($spec_version =~ /^draft[467]\z/u) ? :
47 16 70 unless is_type("string", $data)
49 20 50 if ($$state{"validate_content_schemas"})
52 1 19 unless $decoder
71 16 70 unless is_type("string", $data)
73 20 50 if ($$state{"validate_content_schemas"})
76 1 19 unless $decoder
79 3 16 if exists $$schema{"contentEncoding"} and not exists $$state{"_content_ref"}
101 0 41 unless exists $$schema{"contentMediaType"}
102 4 37 unless is_type("string", $data)
104 7 30 if ($$state{"validate_content_schemas"})
105 2 5 unless exists $$state{"_content_ref"}
108 2 3 unless $class->eval(${$$state{"_content_ref"}}, $$schema{"contentSchema"}, {%$state, "keyword_path", $$state{"keyword_path"} . '/contentSchema'})
111 33 0 ref $$schema{'contentSchema'} ? :