Condition Coverage

blib/lib/RDF/Trine/Model.pm
Criterion Covered Total %
condition 69 101 68.3


and 3 conditions

line !l l&&!r l&&r condition
108 0 0 773 &blessed($store) and $store->can('_begin_bulk_ops')
123 4 0 7224 &blessed($store) and $store->can('_end_bulk_ops')
154 0 12148 116 &blessed($n) and $n->isa('RDF::Trine::Node::Resource') || $n->isa('RDF::Trine::Node::Literal') || $n->isa('RDF::Trine::Node::Blank') || $n->isa('RDF::Trine::Node::Nil')
239 0 0 128 $ts and $tp
0 0 128 $ts and $tp and $to
258 0 0 0 &blessed($iter) and $iter->is_graph
304 291 0 1 $head->isa('RDF::Trine::Node::Resource') && $head->uri_value eq $rdf->nil->uri_value
0 1 291 &blessed($head) and not $head->isa('RDF::Trine::Node::Resource') && $head->uri_value eq $rdf->nil->uri_value
334 11 0 2 $head->isa('RDF::Trine::Node::Resource') && $head->uri_value eq $rdf->nil->uri_value
0 2 11 &blessed($head) and not $head->isa('RDF::Trine::Node::Resource') && $head->uri_value eq $rdf->nil->uri_value
346 25 4 0 $statement_type eq 'rdf:type' and not $st->object->equal($rdf->List)
351 2 0 1 defined $statements{'other'} and scalar @{$statements{'other'};} > 0
354 0 0 9 defined $statements{'rdf:first'} and defined $statements{'rdf:rest'}
0 1 8 defined $statements{'rdf:first'} and defined $statements{'rdf:rest'} and scalar @{$statements{'rdf:first'};} == 1
1 0 8 defined $statements{'rdf:first'} and defined $statements{'rdf:rest'} and scalar @{$statements{'rdf:first'};} == 1 and scalar @{$statements{'rdf:rest'};} == 1
489 36 2 20 &blessed($graph) and $graph->isa('RDF::Trine::Node::Resource')
38 19 1 &blessed($graph) and $graph->isa('RDF::Trine::Node::Resource') and $graph->uri_value eq 'tag:gwilliams@cpan.org,2010-01-01:RT:ALL'
518 4 0 6581 &blessed($n) and $n->isa('RDF::Trine::Node')
527 1366 788 15 &blessed($graph) and $graph->isa('RDF::Trine::Node::Resource')
2154 15 0 &blessed($graph) and $graph->isa('RDF::Trine::Node::Resource') and $graph->uri_value eq 'tag:gwilliams@cpan.org,2010-01-01:RT:ALL'
570 3 906 41 &blessed($store) and $store->can('get_pattern')
676 0 0 25 defined $val_a and defined $val_b
892 1317 1 1 $options{'datatype'} and not &blessed($options{'datatype'})
912 2 0 1 $lang and $lang eq $options{'language'}
915 4 0 2 $dt and $dt eq $options{'datatype'}->uri_value
1009 18 0 9 $st->object->isa('RDF::Trine::Node::Blank') and not $seen{$st->object->sse}
1013 16 11 0 $st->subject->isa('RDF::Trine::Node::Blank') and not $seen{$st->subject->sse}

or 2 conditions

line l !l condition
345 27 2 {$rdf->first->uri, 'rdf:first', $rdf->rest->uri, 'rdf:rest', $rdf->type->uri, 'rdf:type'}->{$st->predicate->uri} || 'other'

or 3 conditions

line l !l&&r !l&&!r condition
154 3170 4 0 $n->isa('RDF::Trine::Node::Resource') || $n->isa('RDF::Trine::Node::Literal') || $n->isa('RDF::Trine::Node::Blank') || $n->isa('RDF::Trine::Node::Nil')
558 18 0 937 $bgp->isa('RDF::Trine::Statement') || $bgp->isa('RDF::Query::Algebra::Filter')
633 6 0 921 $bgp->isa('RDF::Trine::Statement') || $bgp->isa('RDF::Query::Algebra::Filter')
891 1 2 1316 $options{'language'} or $options{'datatype'}
971 13 17 5 @statements or @nodes
997 9 3 1 $seen{$_->{'s'}->sse} || $_->{'s'}->equal($n)