Condition Coverage

blib/lib/RDF/Trine/Serializer/Turtle.pm
Criterion Covered Total %
condition 39 51 76.4


and 3 conditions

line !l l&&!r l&&r condition
78 6 0 9 scalar @_ == 1 and &reftype($_[0]) eq 'HASH'
95 50 0 1 &blessed($ns) and $ns->isa('RDF::Trine::NamespaceMap')
282 40 60 41 &blessed($last_subj) and not $last_subj->equal($st->subject)
354 2 0 30 $count == 1 and $rec == 0
408 106 0 26 $model->count_statements($subj, $RDF::Trine::Serializer::Turtle::rdf->first) and $model->count_statements($subj, $RDF::Trine::Serializer::Turtle::rdf->rest)
550 191 39 28 $obj->is_literal and $obj->has_datatype
552 4 3 21 $dt =~ m[^http://www.w3.org/2001/XMLSchema#(integer|double|decimal)$] and $obj->is_canonical_lexical_form
561 0 4 3 &blessed($self) and exists $self->{'ns'}{$ns}
575 0 119 61 &blessed($self) and exists $self->{'ns'}{$ns}
614 106 56 123 $obj->isa('RDF::Trine::Node::Resource') and $pos == 1
162 109 14 $obj->isa('RDF::Trine::Node::Resource') and $pos == 1 and $obj->uri_value eq 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
228 7 36 $obj->isa('RDF::Trine::Node::Blank') and $pos == 0
622 4 0 31 $count < 1 and $rec == 0

or 2 conditions

line l !l condition
194 40 0 $args{'seen'} || {}
195 0 40 $args{'level'} || 0
196 40 0 $args{'tab'} || "\t"

or 3 conditions

line l !l&&r !l&&!r condition
355 3 1 26 $$seen{$subj->as_string}++ or $seen->{' heads'}{$subj->as_string}
486 19 0 0 $out == 2 or $out == 3