Condition Coverage

blib/lib/RDF/Trine/Node/Literal.pm
Criterion Covered Total %
condition 23 42 54.7


and 3 conditions

line !l l&&!r l&&r condition
68 2193 0 167 &blessed($dt) and $dt->isa('RDF::Trine::Node::Resource')
72 1987 348 25 $dt and $canon
76 2360 0 0 $USE_XMLLITERALS and defined $dt
2360 0 0 $USE_XMLLITERALS and defined $dt and $dt eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral'
2360 0 0 $USE_FORMULAE and defined $dt
2360 0 0 $USE_FORMULAE and defined $dt and $dt eq 'RDF::Trine::Node::Formula'->literal_datatype
92 2270 89 1 $lang and $dt
268 1 5 11 &blessed($node) and $node->isa('RDF::Trine::Node::Literal')
290 0 0 0 $a->has_language and $b->has_language
294 0 0 0 $a->has_datatype and $b->has_datatype

or 2 conditions

line l !l condition
342 8 1 $1 || ''
352 4 1 $1 || ''
367 0 0 $1 || ''

or 3 conditions

line l !l&&r !l&&!r condition
270 4 0 6 $self->literal_datatype or $node->literal_datatype
274 3 0 6 $self->literal_value_language or $node->literal_value_language