Branch Coverage

blib/lib/JSONSchema/Validator/URIResolver.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
48 0 321 unless $params{'validator'}
49 0 321 unless defined $params{'schema'}
69 21 300 if ("#" eq substr($base_uri, -1))
74 280 41 if $validator->using_id_with_ref and ref $schema eq "HASH"
89 312 142 if exists $self->cache->{$origin_uri->as_string}
106 142 0 if exists $self->cache->{$uri->as_string}
113 0 0 if $self->validator->using_id_with_ref
124 0 142 if exists $self->cache->{$uri->as_string}
163 0 3504 unless ref $schema eq "HASH"
166 1024 2480 if exists $schema->{'$ref'}
168 47 2433 if (exists $$schema{$self->validator->ID_FIELD} and not ref $$schema{$self->validator->ID_FIELD})
172 47 0 $scope && $scope->as_string ? :
179 405 3908 if ($SEARCH_ID->{'value'}{$k} and ref $schema->{$k} eq "HASH")
183 289 4024 if ($SEARCH_ID->{'arr_value'}{$k} and ref $schema->{$k} eq "ARRAY")
185 0 609 unless ref $value eq "HASH"
190 513 3800 if ($SEARCH_ID->{'kv_value'}{$k} and ref $schema->{$k} eq "HASH")
193 35 2210 unless ref $value eq "HASH"
199 47 2433 if (exists $$schema{$self->validator->ID_FIELD} and not ref $$schema{$self->validator->ID_FIELD})