Branch Coverage

blib/lib/JSONSchema/Validator/Draft4.pm
Criterion Covered Total %
branch 22 30 73.3


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 2193 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 3687 $k eq '$ref' ? :
129 688 3387 unless my $constraint = $self->constraints->can($method)
136 0 3387 if $@
141 558 2829 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'}