Condition Coverage

blib/lib/Data/ZPath/_Evaluate.pm
Criterion Covered Total %
condition 129 220 58.6


and 3 conditions

line !l l&&!r l&&r condition
71 6 2 7 $lb && $rb
81 401 0 227 @l and @r
102 0 0 3 defined $ln and defined $rn
122 0 0 4 defined $ln and defined $rn
134 30 6 3 $op eq "%" and $ln =~ /\./ || $rn =~ /\./
138 0 0 36 defined $ln and defined $rn
249 0 54 106 builtin::blessed($raw) and $raw->isa("XML::LibXML::Element")
281 0 1213 95 $seg->{'q'} and @{$seg->{'q'};}
284 0 75 21 $q->{'t'} and $q->{'t'} eq "num"
75 0 21 $q->{'t'} and $q->{'t'} eq "num" and $q->{'v'} =~ /\A[0-9]+\z/
291 0 1 20 @next and builtin::blessed($next[0]->raw)
1 0 20 @next and builtin::blessed($next[0]->raw) and $next[0]->raw->isa("XML::LibXML::Node")
317 0 617 51 $q->{'t'} and $q->{'t'} eq "path"
390 0 0 1 defined $nid and $nid eq $id
406 0 0 3 $cur and defined $cur->key
435 0 0 3 $cur and $cur->parent
442 0 0 3 @i and @c
448 0 2 86 $cur and $cur->parent
454 0 0 138 builtin::blessed($sraw) and builtin::blessed($craw)
0 0 138 builtin::blessed($sraw) and builtin::blessed($craw) and $sraw->isa("XML::LibXML::Node")
0 0 138 builtin::blessed($sraw) and builtin::blessed($craw) and $sraw->isa("XML::LibXML::Node") and $craw->isa("XML::LibXML::Node")
461 0 0 0 defined $siblings[$ix]->id and defined $cur->id
567 2 0 0 $_ < $m and $m = $_
571 1 1 0 $_ > $m and $m = $_
718 0 1 11 builtin::blessed($raw) and $raw->can("namespaceURI")
730 0 0 0 builtin::blessed($raw) and $raw->can("localname")
745 0 0 1 builtin::blessed($raw) and $raw->isa("CBOR::Free::Tagged")
777 2118 49 1984 builtin::blessed($raw) and $raw->isa("XML::LibXML::Node")
807 0 0 228 $a and $b
815 228 0 0 $a_type eq "boolean" and $b_type eq "boolean"
822 161 0 67 $a_type eq "number" and $b_type eq "number"
835 3 18 140 grep {$a_type eq $_;} @string_like and grep {$b_type eq $_;} @string_like

or 2 conditions

line l !l condition
108 0 0 _to_string($lv) // ""
109 0 0 _to_string($rv) // ""
590 0 0 $_->string_value // ""
608 0 0 $_->string_value // ""
632 1 0 $fmt[0]->string_value // ""
642 2 0 (&$eval_arg(0))[0]->string_value // ""
645 2 0 $_->string_value // ""
654 2 0 $_->string_value // ""
662 2 0 $_->string_value // ""
671 1 0 (&$eval_arg(1))[0]->number_value // 0
672 1 0 (&$eval_arg(2))[0]->number_value // 0
674 1 0 $_->string_value // ""
681 1 0 (&$eval_arg(0))[0]->string_value // ""
686 1 0 $_->string_value // ""
693 13 0 (&$eval_arg(0))[0]->string_value // ""
694 13 0 (&$eval_arg(1))[0]->string_value // ""
699 13 0 $_->string_value // ""
706 3 0 (&$eval_arg(0))[0]->string_value // ""
708 9 0 $_->string_value // ""
719 1 10 $raw->namespaceURI // ""
731 0 0 $raw->nodeName // ""
733 0 0 $_->name // ""
778 1984 0 $raw->nodePath // ""

or 3 conditions

line l !l&&r !l&&!r condition
68 15 7 674 $op eq "&&" or $op eq "||"
71 5 1 1 $lb || $rb
78 616 12 46 $op eq "==" or $op eq "!="
119 2 1 40 $op eq "&" or $op eq "|"
3 1 39 $op eq "&" or $op eq "|" or $op eq "^"
130 8 4 27 $op eq "+" or $op eq "-"
12 13 14 $op eq "+" or $op eq "-" or $op eq "*"
17 5 9 $op eq "+" or $op eq "-" or $op eq "*" or $op eq "/"
18 9 0 $op eq "+" or $op eq "-" or $op eq "*" or $op eq "/" or $op eq "%"
134 0 3 6 $ln =~ /\./ || $rn =~ /\./
347 0 280 0 $local_ctx // $ctx
359 6 0 0 $ctx->parentset // $ns
383 20 1 0 $ctx->parentset // $ns
421 2 0 0 $_->id // 'p:' . builtin::refaddr(\$_)
425 8 0 0 $_->id // 'p:' . builtin::refaddr(\$_)
446 44 44 93 $name eq "next" or $name eq "prev"
470 26 26 34 $ni < 0 or $ni > $#siblings
534 1 2 44 $name eq "ceil" or $name eq "floor"
3 1 43 $name eq "ceil" or $name eq "floor" or $name eq "round"
547 3 1 39 $name eq "sum" or $name eq "min"
4 1 38 $name eq "sum" or $name eq "min" or $name eq "max"
640 2 0 35 $name eq "index-of" or $name eq "last-index-of"
659 1 1 31 $name eq "upper-case" or $name eq "lower-case"
679 0 1 29 $name eq "match" or $name eq "matches"
731 0 0 0 $raw->localname // ($raw->nodeName // "")
827 1 0 66 $av =~ /\./ or $bv =~ /\./