Branch Coverage

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


line true false branch
34 72 17 $spec_version ne 'draft7' ? :
40 0 171 unless assert_keyword_type($state, $schema, "string")
45 16 69 unless is_type("string", $data)
49 19 50 if ($state->{'validate_content_schemas'})
52 1 18 unless $decoder
70 16 68 unless is_type("string", $data)
74 18 50 if ($state->{'validate_content_schemas'})
77 1 17 unless $decoder
80 3 14 if exists $schema->{'contentEncoding'} and not exists $state->{'_content_ref'}
104 0 39 unless exists $schema->{'contentMediaType'}
105 4 35 unless is_type("string", $data)
108 30 5 unless $state->{'validate_content_schemas'}
110 2 3 unless exists $state->{'_content_ref'}
113 1 2 if $self->eval(${$$state{"_content_ref"}}, $schema->{'contentSchema'}, {%$state, "schema_path", $state->{'schema_path'} . "/contentSchema"})