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 69 unless is_type("string", $data)
49 19 50 if ($$state{"validate_content_schemas"})
52 1 18 unless $decoder
70 16 69 unless is_type("string", $data)
72 19 50 if ($$state{"validate_content_schemas"})
75 1 18 unless $decoder
78 3 15 if exists $$schema{"contentEncoding"} and not exists $$state{"_content_ref"}
99 0 40 unless exists $$schema{"contentMediaType"}
100 4 36 unless is_type("string", $data)
102 6 30 if ($$state{"validate_content_schemas"})
103 2 4 unless exists $$state{"_content_ref"}
106 2 2 unless $class->eval(${$$state{"_content_ref"}}, $$schema{"contentSchema"}, {%$state, "keyword_path", $$state{"keyword_path"} . '/contentSchema'})
109 32 0 ref $$schema{'contentSchema'} ? :