Branch Coverage

blib/lib/JSONSchema/Validator/JSONPointer.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
26 1005 4702 $path =~ m[/$] ? :
55 0 1013 unless defined $scope
56 0 1013 unless $validator
83 0 0 if $current_scope
87 114 715 if (ref $current_value eq "HASH" and $self->validator->using_id_with_ref)
89 89 25 if ($id and not ref $id)
90 89 0 $current_scope ? :
97 852 230 if (ref $current_value eq 'HASH' and exists $current_value->{$part}) { }
61 169 elsif (ref $current_value eq 'ARRAY' and $part =~ /^\d+$/ and scalar @$current_value > $part) { }
108 2 32 if $current_scope
112 230 683 if (ref $current_value eq "HASH" and $self->validator->using_id_with_ref)
114 2 228 if ($id and not ref $id)
115 2 0 $current_scope ? :
132 0 203 unless $pointer
134 0 203 unless $pointer =~ s[^/][]
137 201 2 length $pointer ? :
147 26 25 if (ref $self->value eq "HASH")
148 33 0 $raw ? :
151 25 0 if (ref $self->value eq "ARRAY")
152 0 61 $raw ? :