Condition Coverage

blib/lib/RDF/Query/Functions/SPARQL.pm
Criterion Covered Total %
condition 15 266 5.6


and 3 conditions

line !l l&&!r l&&r condition
142 0 1 6 &blessed($node) and $node->isa('RDF::Trine::Node::Literal')
408 0 0 0 &blessed($str) and $str->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($str) and $str->isa('RDF::Query::Node::Literal') and &blessed($dt)
0 0 0 &blessed($str) and $str->isa('RDF::Query::Node::Literal') and &blessed($dt) and $dt->isa('RDF::Query::Node::Resource')
429 0 0 0 &blessed($str) and $str->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($str) and $str->isa('RDF::Query::Node::Literal') and &blessed($lang)
0 0 0 &blessed($str) and $str->isa('RDF::Query::Node::Literal') and &blessed($lang) and $lang->isa('RDF::Query::Node::Literal')
472 0 0 3 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
740 0 0 3 $nodea->isa('RDF::Trine::Node::Literal') and $nodeb->isa('RDF::Trine::Node::Literal')
780 0 0 8 &blessed($node) and $node->isa('RDF::Query::Node')
875 0 0 0 $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type
0 0 0 $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type and $node->is_valid_lexical_form
888 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type
904 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type
920 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type
936 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal') and $node->is_numeric_type
974 0 0 0 defined $lang and $lang ne $n->literal_value_language
1004 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1012 0 0 0 &blessed($arg) and $arg->isa('RDF::Query::Node::Literal')
0 0 0 &blessed($arg) and $arg->isa('RDF::Query::Node::Literal') and $arg->is_numeric_type
1031 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1047 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1063 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1110 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1126 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1129 0 0 0 &blessed($pat) and $pat->isa('RDF::Query::Node::Literal')
1134 0 0 0 $node->has_language and $pat->has_language
1158 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1161 0 0 0 &blessed($pat) and $pat->isa('RDF::Query::Node::Literal')
1166 0 0 0 $node->has_language and $pat->has_language
1188 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1191 0 0 0 &blessed($pat) and $pat->isa('RDF::Query::Node::Literal')
1196 0 0 0 $node->has_language and $pat->has_language
1291 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1309 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1327 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1345 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1363 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1381 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1399 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1443 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1503 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1506 0 0 0 &blessed($substr) and $substr->isa('RDF::Query::Node::Literal')
1509 0 0 0 $node->has_datatype and $node->literal_datatype ne 'http://www.w3.org/2001/XMLSchema#string'
1514 0 0 0 $node->has_datatype && $node->literal_datatype eq 'http://www.w3.org/2001/XMLSchema#string'
1516 0 0 0 $substr->has_datatype && $substr->literal_datatype eq 'http://www.w3.org/2001/XMLSchema#string'
1517 0 0 0 $lhs_simple || $lhs_xsd and $rhs_simple || $rhs_xsd
0 0 0 $node->has_language and $substr->has_language
0 0 0 $node->has_language and $substr->has_language and $node->literal_value_language eq $substr->literal_value_language
0 0 0 $node->has_language and $rhs_simple || $rhs_xsd
1545 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1548 0 0 0 &blessed($substr) and $substr->isa('RDF::Query::Node::Literal')
1551 0 0 0 $node->has_datatype and $node->literal_datatype ne 'http://www.w3.org/2001/XMLSchema#string'
1556 0 0 0 $node->has_datatype && $node->literal_datatype eq 'http://www.w3.org/2001/XMLSchema#string'
1558 0 0 0 $substr->has_datatype && $substr->literal_datatype eq 'http://www.w3.org/2001/XMLSchema#string'
1559 0 0 0 $lhs_simple || $lhs_xsd and $rhs_simple || $rhs_xsd
0 0 0 $node->has_language and $substr->has_language
0 0 0 $node->has_language and $substr->has_language and $node->literal_value_language eq $substr->literal_value_language
0 0 0 $node->has_language and $rhs_simple || $rhs_xsd
1588 0 0 0 &blessed($node) and $node->isa('RDF::Query::Node::Literal')
1591 0 0 0 &blessed($pat) and $pat->isa('RDF::Query::Node::Literal')
1594 0 0 0 &blessed($rep) and $rep->isa('RDF::Query::Node::Literal')
1597 0 0 0 $node->has_datatype and $node->literal_datatype ne 'http://www.w3.org/2001/XMLSchema#string'

or 2 conditions

line l !l condition
143 4 2 $node->literal_datatype || ''
178 4 18 $node->literal_datatype || ''
210 22 8 $node->literal_datatype || ''
241 4 0 $node->literal_datatype || ''

or 3 conditions

line l !l&&r !l&&!r condition
517 0 0 0 $error ||= $e
562 0 0 0 $error ||= $e
617 0 1 0 $error ||= $e
745 2 0 0 $nodea->has_datatype or $nodeb->has_datatype
0 0 0 $nodea->has_language or $nodeb->has_language
813 0 0 13 index($pattern, '(?{') != -1 or index($pattern, '(??{') != -1
1428 0 0 0 $s > 0 or $duration eq 'PT'
1513 0 0 0 $node->has_language || $node->has_datatype
1515 0 0 0 $substr->has_language || $substr->has_datatype
1517 0 0 0 $lhs_simple || $lhs_xsd
0 0 0 $rhs_simple || $rhs_xsd
0 0 0 $rhs_simple || $rhs_xsd
1555 0 0 0 $node->has_language || $node->has_datatype
1557 0 0 0 $substr->has_language || $substr->has_datatype
1559 0 0 0 $lhs_simple || $lhs_xsd
0 0 0 $rhs_simple || $rhs_xsd
0 0 0 $rhs_simple || $rhs_xsd
1603 0 0 0 index($pattern, '(?{') != -1 or index($pattern, '(??{') != -1
1606 0 0 0 index($replace, '(?{') != -1 or index($replace, '(??{') != -1