Branch Coverage

blib/lib/XML/Stream/XPath/Op.pm
Criterion Covered Total %
branch 54 86 62.7


line true false branch
87 0 0 unless defined $space
121 0 0 if ($#elems + 1 < $$self{'POS'})
165 23 109 if ($$self{'OP'}->isValid(\$tmp_ctxt))
173 75 17 if ($#valid_elems == -1)
186 0 0 unless defined $space
221 0 14 if ($#elems == -1)
235 0 14 if ($#valid_elems == -1)
251 46 298 if ($$self{'VALUE'} eq '*' or &XML::Stream::GetXMLData('tag', $elem) eq $$self{'VALUE'})
281 0 90 unless defined $is_root
293 0 77 if ($$self{'ISROOT'})
296 0 0 if (&XML::Stream::GetXMLData('tag', $elem) ne $$self{'VALUE'})
311 108 406 if ($$self{'VALUE'} eq '*' or &XML::Stream::GetXMLData('tag', $child) eq $$self{'VALUE'})
314 0 108 if ($$ctxt->in_context) { }
324 0 73 if ($valid)
332 10 67 if ($#valid_elems == -1)
378 148 26 unless ($$self{'OP_L'}->isValid(\$tmp_ctxt) and $$self{'OP_R'}->isValid(\$tmp_ctxt))
386 9 17 if ($$self{'OP_L'}->calcStr($elem) eq $$self{'OP_R'}->calcStr($elem))
392 9 17 if ($#valid_elems > -1)
399 17 9 if ($#valid_elems == -1)
412 0 0 unless defined $space
453 0 6 unless ($$self{'OP_L'}->isValid(\$tmp_ctxt) and $$self{'OP_R'}->isValid(\$tmp_ctxt))
461 4 2 if ($$self{'OP_L'}->calcStr($elem) ne $$self{'OP_R'}->calcStr($elem))
467 4 2 if ($#valid_elems > -1)
474 2 4 if ($#valid_elems == -1)
487 0 0 unless defined $space
530 204 2 if ($$self{'VALUE'} ne '*') { }
532 48 156 if (&XML::Stream::GetXMLData('value', $elem, '', $$self{'VALUE'}))
542 2 0 if (scalar keys %attrib > 0)
557 150 48 if ($#valid_elems == -1)
611 4 14 if ($opl and $opr) { }
626 0 0 unless defined $space
676 0 68 if ($opl or $opr)
684 68 0 if ($#valid_elems == -1)
697 0 0 unless defined $space
765 0 0 unless defined $space
789 14 0 if (defined $text)
799 0 14 if ($#valid_elems == -1)
819 2 4 unless ($args[0]->isValid(\$tmp_ctxt))
827 4 2 if ($#valid_elems == -1)
847 12 0 if (defined $text)
857 0 7 if ($#valid_elems == -1)
878 4 4 if (substr($val1, 0, length $val2) eq $val2)
886 4 4 if ($#valid_elems == -1)