Branch Coverage

blib/lib/RDF/Query/Functions/Xpath.pm
Criterion Covered Total %
branch 7 104 6.7


line true false branch
123 1 0 if ($node->isa('RDF::Query::Node::Resource')) { }
0 0 elsif ($node->isa('RDF::Query::Node::Literal')) { }
132 0 1 if index($pattern, '(?{') != -1
133 0 1 if index($pattern, '(??{') != -1
134 1 0 &blessed($f) ? :
137 0 1 if ($flags) { }
142 1 0 $string =~ /$pattern/ ? :
145 1 0 $matches ? :
158 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type) { }
173 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type) { }
188 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type) { }
203 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type) { }
206 0 0 if ($value < 0)
224 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type) { }
240 0 0 unless (&blessed($nodea) and $nodea->isa('RDF::Query::Node::Literal'))
243 0 0 unless (&blessed($nodeb) and $nodeb->isa('RDF::Query::Node::Literal'))
272 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
280 0 0 unless (&blessed($arg) and $arg->isa('RDF::Query::Node::Literal') and $arg->is_numeric_type)
296 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal')) { }
311 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal')) { }
326 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal')) { }
341 0 0 if (&blessed($node) and $node->isa('RDF::Query::Node::Literal')) { }
357 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
360 0 0 unless (&blessed($pat) and $pat->isa('RDF::Query::Node::Literal'))
366 0 0 if ($pos >= 0) { }
381 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
384 0 0 unless (&blessed($pat) and $pat->isa('RDF::Query::Node::Literal'))
387 0 0 if (index($node->literal_value, $pat->literal_value) == 0) { }
402 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
405 0 0 unless (&blessed($pat) and $pat->isa('RDF::Query::Node::Literal'))
412 0 0 if (rindex($lit, $plit) == $pos) { }
430 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
434 0 0 if ($dt) { }
448 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
452 0 0 if ($dt) { }
466 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
470 0 0 if ($dt) { }
484 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
488 0 0 if ($dt) { }
502 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
506 0 0 if ($dt) { }
520 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
524 0 0 if ($dt) { }
538 0 0 unless (&blessed($node) and $node->isa('RDF::Query::Node::Literal'))
542 0 0 if ($dt)
544 0 0 if ($tz)
547 0 0 if ($offset < 0)
553 0 0 if ($offset >= 3600)
555 0 0 if $h > 0
558 0 0 if ($offset >= 60)
560 0 0 if $m > 0
564 0 0 if $s > 0 or $duration eq 'PT'