Branch Coverage

blib/lib/JSONSchema/Validator/Draft4.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
23 0 321 unless exists $params{'schema'}
41 319 2 if ref $schema eq "HASH"
85 0 294 unless defined $schema
87 0 294 if $scope
92 0 294 if $scope
101 14 2218 if (is_type($schema, "boolean", 1))
102 13 1 if $schema
116 39 0 if ($id and $apply_scope and $self->using_id_with_ref and not $is_exists_ref)
118 39 0 if $self->scope
128 388 3726 $k eq '$ref' ? :
129 688 3426 unless my $constraint = $self->constraints->can($method)
131 388 3038 $k eq '$ref' ? :
136 0 3426 if $@
141 558 2868 unless $r
144 39 0 if $id and $apply_scope and $self->using_id_with_ref and not $is_exists_ref
151 326 1368 if $schema->{'$ref'}