Condition Coverage

blib/lib/Data/ZPath/Node.pm
Criterion Covered Total %
condition 123 170 72.3


and 3 conditions

line !l l&&!r l&&r condition
13 0 0 2181 defined $value and not ref $value
0 0 2181 defined $value and not ref $value and not _is_bool($value)
26 4242 36 1156 $flags & 12288 and not $flags & 16384
34 5614 0 1 $ref eq "SCALAR" and defined $$value
39 5518 96 0 builtin::blessed($value) and $value->isa("Types::Serialiser::Boolean")
43 5518 0 96 builtin::blessed($value) and $value->isa("JSON::PP::Boolean")
50 36 0 0 $value and "$value" eq 1
36 0 0 $value and "$value" eq 1 and $value + 0 == 1
51 0 36 0 not $value and "$value" eq ""
36 0 0 not $value and "$value" eq "" and $value + 0 == 0
63 6504 105 3565 builtin::blessed($obj) && $obj->isa('XML::LibXML::Node')
66 6504 3584 86 builtin::blessed($obj) and $obj->isa("XML::LibXML::Document")
118 4840 3538 2 builtin::blessed($x) and $x->isa("CBOR::Free::Tagged")
122 4840 3538 0 builtin::blessed($x) and $x->isa("XML::LibXML::Namespace")
125 4840 3511 27 builtin::blessed($x) and $x->isa("XML::LibXML::Attr")
128 4840 2233 1278 builtin::blessed($x) and $x->isa("XML::LibXML::Text")
131 4840 96 2137 builtin::blessed($x) and $x->isa("XML::LibXML::Element")
134 4840 96 0 builtin::blessed($x) and $x->isa("XML::LibXML::Document")
137 4840 96 0 builtin::blessed($x) and $x->isa("XML::LibXML::Comment")
141 4840 96 0 builtin::blessed($x) and $x->isa("Math::BigInt")
159 246 0 213 ref $x and builtin::reftype($x)
246 110 103 ref $x and builtin::reftype($x) and builtin::reftype($x) eq "SCALAR"
162 356 102 0 builtin::blessed($x) and $x->isa("Types::Serialiser::Boolean")
165 356 102 0 builtin::blessed($x) and $x->isa("JSON::PP::Boolean")
176 1275 21 0 builtin::blessed($x) and $x->isa("CBOR::Free::Tagged")
180 1275 21 0 builtin::blessed($x) and $x->isa("XML::LibXML::Document")
184 1275 21 0 builtin::blessed($x) and $x->isa("XML::LibXML::Namespace")
187 1275 17 4 builtin::blessed($x) and $x->isa("XML::LibXML::Attr")
190 1275 5 12 builtin::blessed($x) and $x->isa("XML::LibXML::Element")
193 1275 5 0 builtin::blessed($x) and $x->isa("XML::LibXML::Text")
196 1275 5 0 builtin::blessed($x) and $x->isa("XML::LibXML::Comment")
200 1269 0 11 ref $x and builtin::reftype($x)
1269 10 1 ref $x and builtin::reftype($x) and builtin::reftype($x) eq "SCALAR"
204 1275 5 0 builtin::blessed($x) and $x->isa("Types::Serialiser::Boolean")
208 1275 5 0 builtin::blessed($x) and $x->isa("JSON::PP::Boolean")
219 332 133 0 builtin::blessed($x) and $x->isa("CBOR::Free::Tagged")
223 332 133 0 builtin::blessed($x) and $x->isa("XML::LibXML::Document")
227 332 132 1 builtin::blessed($x) and $x->isa("XML::LibXML::Namespace")
230 332 84 48 builtin::blessed($x) and $x->isa("XML::LibXML::Attr")
233 332 11 73 builtin::blessed($x) and $x->isa("XML::LibXML::Element")
236 332 1 10 builtin::blessed($x) and $x->isa("XML::LibXML::Text")
239 332 1 0 builtin::blessed($x) and $x->isa("XML::LibXML::Comment")
251 0 1 262 defined $v and &Scalar::Util::looks_like_number($v)
253 1 251 10 $Data::ZPath::UseBigInt and $v =~ /\A-?[0-9]{19,}\z/
266 3537 3253 0 builtin::blessed($x) and $x->isa("XML::LibXML::Document")
272 3537 1278 1975 builtin::blessed($x) and $x->isa("XML::LibXML::Element")
310 3 36 54 builtin::blessed($x) and $x->isa("XML::LibXML::Element")
319 5257 3277 0 builtin::blessed($x) and $x->isa("XML::LibXML::Attr")
320 5257 1168 2109 builtin::blessed($x) and $x->isa("XML::LibXML::Element")
321 5257 106 1062 builtin::blessed($x) and $x->isa("XML::LibXML::Text")

or 2 conditions

line l !l condition
33 97 5518 ref $value || ''
185 0 0 ($x->declaredURI // $x->nodeValue) // ""
228 1 0 ($x->declaredURI // $x->nodeValue) // ""
275 653 2757 $count{$_->nodeName}++ || 0

or 3 conditions

line l !l&&r !l&&!r condition
160 1 0 102 $x eq 0 or $x eq 1
185 0 0 0 $x->declaredURI // $x->nodeValue
201 0 0 1 $x eq 0 or $x eq 1
228 1 0 0 $x->declaredURI // $x->nodeValue