Branch Coverage

blib/lib/Data/DPath/Context.pm
Criterion Covered Total %
branch 63 74 85.1


line true false branch
33 12 0 if ($] >= 5.01) { }
79 3 15 unless $nr_cargo
87 74 27 $first <= $last ? :
101 3231 0 defined $in ? :
102 757 2474 unless @$in
111 0 7118 unless defined $point
115 3547 3571 if (CORE::ref $$ref eq 'HASH' or &reftype($$ref) eq 'HASH') { }
819 2752 elsif (CORE::ref $$ref eq 'ARRAY' or &reftype($$ref) eq 'ARRAY') { }
129 1463 589 unless not defined $lookahead_key or $_ eq $lookahead_key or ($tmp_ref = CORE::ref($tmp_deref = $$ref->{$_})) eq 'HASH' or $tmp_ref eq 'ARRAY' or ($tmp_reftype = &reftype($tmp_deref)) eq 'HASH'
170 32 473 $self->give_references ? :
172 587 52 defined $_ ? :
181 169 0 $points ? :
189 0 778 unless @$points
190 0 778 unless defined $filter
203 984 0 if (defined $pref) { }
205 873 111 if ($Data::DPath::USE_SAFE) { }
220 0 984 if $@
238 2860 4485 unless @$points
241 3538 947 unless defined $filter
245 169 778 if ($filter =~ /^-?\d+$/) { }
778 0 elsif ($filter =~ /\S/) { }
276 206 65 if (defined $lookahead and $lookahead->kind eq 'KEY')
295 21 7067 unless defined $point
300 2852 4215 unless CORE::ref $$pref eq 'HASH' or &reftype($$pref) eq 'HASH'
306 1355 2860 if (exists $$$pref{$step->part})
325 357 341 if (CORE::ref $ref eq 'HASH' or &reftype($ref) eq 'HASH') { }
162 179 elsif (CORE::ref $ref eq 'ARRAY' or &reftype($ref) eq 'ARRAY') { }
338 179 0 if (CORE::ref $pref eq 'SCALAR' or &reftype($pref) eq 'SCALAR')
366 3 495 unless defined $point
449 447 1722 if ($step->kind eq 'ROOT') { }
271 1451 elsif ($step->kind eq 'ANYWHERE') { }
893 558 elsif ($step->kind eq 'KEY') { }
291 267 elsif ($step->kind eq 'ANYSTEP') { }
118 149 elsif ($step->kind eq 'NOSTEP') { }
112 37 elsif ($step->kind eq 'PARENT') { }
19 18 elsif ($step->kind eq 'ANCESTOR') { }
18 0 elsif ($step->kind eq 'ANCESTOR_OR_SELF') { }