Branch Coverage

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


line true false branch
26 1042 4720 $path =~ m[/$] ? :
55 0 1114 unless defined $scope
56 0 1114 unless $validator
83 0 0 if $current_scope
87 114 814 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 914 270 if (ref $current_value eq 'HASH' and exists $current_value->{$part}) { }
67 203 elsif (ref $current_value eq 'ARRAY' and $part =~ /^\d+$/ and scalar @$current_value > $part) { }
108 2 36 if $current_scope
112 230 751 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 209 unless $pointer
134 0 209 unless $pointer =~ s[^/][]
137 207 2 length $pointer ? :
147 34 27 if (ref $self->value eq "HASH")
148 41 0 $raw ? :
151 27 0 if (ref $self->value eq "ARRAY")
152 0 67 $raw ? :