Branch Coverage

blib/lib/JSON/Hyper.pm
Criterion Covered Total %
branch 10 70 14.2


line true false branch
48 1 0 unless ref $schema
61 0 0 unless blessed $self
63 0 0 if (@_)
67 0 0 unless blessed($$self{'ua'}) and $$self{'ua'}->isa('LWP::UserAgent')
71 0 0 unless (blessed($$self{'ua'}) and $$self{'ua'}->isa('LWP::UserAgent'))
87 0 1 unless ref $node
88 0 1 unless ref $node eq 'HASH'
95 5 1 if (exists $$node{$1}) { }
97 4 1 unless ($missing)
99 4 0 if defined $base
120 0 4 unless $base
122 0 4 if ($ref =~ /^([a-z][a-z0-9\+\.\-]*)\:/i)
139 0 0 unless ref $original
152 0 0 if (lc $$link{'rel'} eq 'full')
159 0 0 if (defined $full)
162 0 0 if (defined $substitute)
172 0 0 unless $recurse
174 0 0 if (ref $object eq 'ARRAY') { }
0 0 elsif (ref $object eq 'HASH') { }
195 0 0 unless $fragment
203 0 0 if $DEBUG
205 0 0 unless ($$self{'cache'}{$resource})
208 0 0 unless $response->is_success
214 0 0 wantarray ? :
222 0 0 unless ref $object
223 0 0 unless $fragment
227 0 0 if ($style =~ /^(json.?)?path$/i) { }
0 0 elsif (lc $style eq 'dot-delimited') { }
0 0 elsif (lc $style eq 'slash-delimited') { }
256 0 0 if (lc $style eq 'dot-delimited') { }
0 0 elsif (lc $style eq 'slash-delimited') { }
268 0 0 if (ref $object eq 'HASH') { }
0 0 elsif (ref $object eq 'ARRAY' and $first =~ /^[\-\+]?[0-9]+$/) { }
277 0 0 unless (defined $value)
282 0 0 if (length $rest) { }