Branch Coverage

blib/lib/XML/XPathEngine/Function.pm
Criterion Covered Total %
branch 9 88 10.2


line true false branch
25 0 0 if $second++
39 0 0 if ($params) { }
82 0 0 if @params
89 0 0 if (@params)
99 0 20 unless $params[0]->isa('XML::XPathEngine::NodeSet')
106 0 4 unless @params == 1
108 0 4 if ($params[0]->isa('XML::XPathEngine::NodeSet')) { }
120 0 4 if ($node->isAttributeNode)
125 4 0 if (my $found = $node->getElementById($id))
136 0 0 if (@params > 1) { }
0 0 elsif (@params) { }
156 0 0 if (@params > 1) { }
0 0 elsif (@params) { }
172 0 4 if @params > 1
173 4 0 if (@params)
185 0 0 if @params < 2
193 0 0 unless @params == 2
195 0 0 if (substr($string1, 0, length $string2) eq $string2)
204 0 0 unless @params == 2
206 0 0 if ($params[0]->string_value =~ /(.*?)\Q$value\E(.*)/)
215 0 0 unless @params == 2
218 0 0 if ($long =~ /^(.*?)\Q$short\E/) { }
229 0 2 unless @params == 2
232 2 0 if ($long =~ /\Q$short\E(.*)$/) { }
243 0 0 if @params < 2 or @params > 3
248 0 0 if (@params == 3) { }
260 0 0 if @params > 1
261 0 0 if (@params) { }
274 0 0 if @params > 1
276 0 0 if (@params) { }
291 0 0 if @params != 3
298 0 0 defined $repl{$1} ? :
0 0 exists $repl{$1} ? :
308 0 0 if @params != 1
315 0 0 unless $params[0]->isa('XML::XPathEngine::Boolean')
316 0 0 $params[0]->value ? :
322 0 0 if @params > 0
329 0 0 if @params > 0
336 0 0 if @params != 1
340 0 0 if (substr(lc $lang, 0, length $lclang) eq $lclang) { }
353 0 0 if @params > 1
354 0 0 if (@params)
355 0 0 if ($params[0]->isa('XML::XPathEngine::Node'))
369 0 0 unless $params[0]->isa('XML::XPathEngine::NodeSet')