Branch Coverage

blib/lib/XML/TinyXML/Selector/XPath/Functions.pm
Criterion Covered Total %
branch 25 40 62.5


line true false branch
14 2 0 if $context
31 0 0 $cnode ? :
33 0 0 if ($child->attributes->{'id'} and $child->attributes->{'id'} eq $id)
42 0 0 $items ? :
54 0 0 $items ? :
64 1 1 $str1 =~ /^$str2/ ? :
69 1 1 $str1 =~ /$str2/ ? :
88 3 7 if ($length and $length =~ /(\S+)\s+(\S+)\s+(\S+)/) { }
90 2 1 unless defined $length or $offset =~ /^-[0-9]+$/
92 1 6 if $length and $length =~ /\./
95 3 5 if ($offset and $offset =~ /(\S+)\s+(\S+)\s+(\S+)/) { }
97 1 2 unless defined $offset
99 1 4 if $offset =~ /\./
101 1 4 if $length and $offset == 0
103 4 3 if $offset > 0
104 5 2 defined $length ? :
126 6 1 if ($to[$i]) { }
139 0 0 $item ? :
144 0 0 !$item ? :
171 0 0 if ($items)