Branch Coverage

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


line true false branch
31 17 0 if ($] >= 5.01) { }
77 3 15 unless $nr_cargo
85 74 27 $first <= $last ? :
99 2743 0 defined $in ? :
100 613 2130 unless @$in
109 0 6383 unless defined $point
113 3225 3158 if (CORE::ref $$ref eq 'HASH' or builtin::reftype($$ref) eq 'HASH') { }
732 2426 elsif (CORE::ref $$ref eq 'ARRAY' or builtin::reftype($$ref) eq 'ARRAY') { }
127 1405 532 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 = builtin::reftype($tmp_deref)) eq "HASH"
168 43 659 $self->give_references ? :
170 796 52 defined $_ ? :
179 209 0 $points ? :
187 0 790 unless @$points
188 0 790 unless defined $filter
201 996 0 if (defined $pref) { }
203 879 117 if ($Data::DPath::USE_SAFE) { }
218 0 996 if $@
236 2625 4382 unless @$points
239 3383 999 unless defined $filter
243 209 790 if ($filter =~ /^-?\d+$/) { }
790 0 elsif ($filter =~ /\S/) { }
274 197 60 if (defined $lookahead and $lookahead->kind eq "KEY")
293 21 6509 unless defined $point
298 2509 4000 unless CORE::ref $$pref eq "HASH" or builtin::reftype($$pref) eq "HASH"
304 1375 2625 if (exists $$$pref{$step->part})
323 322 381 if (CORE::ref $ref eq 'HASH' or builtin::reftype($ref) eq 'HASH') { }
202 179 elsif (CORE::ref $ref eq 'ARRAY' or builtin::reftype($ref) eq 'ARRAY') { }
336 179 0 if (CORE::ref $pref eq "SCALAR" or builtin::reftype($pref) eq "SCALAR")
364 3 515 unless defined $point
447 437 1663 if ($step->kind eq 'ROOT') { }
257 1406 elsif ($step->kind eq 'ANYWHERE') { }
866 540 elsif ($step->kind eq 'KEY') { }
280 260 elsif ($step->kind eq 'ANYSTEP') { }
118 142 elsif ($step->kind eq 'NOSTEP') { }
105 37 elsif ($step->kind eq 'PARENT') { }
19 18 elsif ($step->kind eq 'ANCESTOR') { }
18 0 elsif ($step->kind eq 'ANCESTOR_OR_SELF') { }