Branch Coverage

blib/lib/Test/RDF.pm
Criterion Covered Total %
branch 76 90 84.4


line true false branch
72 1 4 unless ($rdf)
81 2 2 if (my $error = $@) { }
103 1 4 unless ($rdf1)
116 0 4 if (my $error = $@)
139 0 8 unless &blessed($model1) and $model1->isa('RDF::Trine::Model') and (&blessed($model2) and $model2->isa('RDF::Trine::Model'))
145 4 4 if ($g1->equals($g2)) { }
164 0 8 unless &blessed($model1) and $model1->isa('RDF::Trine::Model') and (&blessed($model2) and $model2->isa('RDF::Trine::Model'))
170 4 4 if ($g1->is_subgraph_of($g2)) { }
175 1 3 if defined $g1->error
190 0 3 unless &blessed($model) and $model->isa('RDF::Trine::Model')
192 1 2 unless $resource
207 0 2 unless &blessed($model) and $model->isa('RDF::Trine::Model')
209 0 2 unless $resource
223 0 3 unless &blessed($model) and $model->isa('RDF::Trine::Model')
225 1 2 unless $resource
241 0 1 unless &blessed($model) and $model->isa('RDF::Trine::Model')
243 0 1 unless $resource
275 0 12 unless &blessed($model) and $model->isa('RDF::Trine::Model')
281 2 10 if (my $error = $@)
287 4 6 if ($model->count_statements(undef, undef, $literal) > 0) { }
308 0 13 unless &blessed($model) and $model->isa('RDF::Trine::Model')
315 2 11 if (my $error = $@)
321 3 8 if ($model->count_statements(undef, undef, $literal) > 0) { }
342 0 5 unless &blessed($model) and $model->isa('RDF::Trine::Model')
345 1 4 unless $resource
346 3 1 if ($model->count_statements(undef, undef, $resource) > 0 or $model->count_statements(undef, $resource, undef) > 0 or $model->count_statements($resource, undef, undef) > 0) { }
368 0 5 unless &blessed($model) and $model->isa('RDF::Trine::Model')
374 3 2 if ($resource and ($model->count_statements(undef, undef, $resource) > 0 || $model->count_statements(undef, $resource, undef) > 0 || $model->count_statements($resource, undef, undef)) > 0) { }
391 3 4 if ($count > 0) { }
407 3 11 if (my $error = $@)
468 2 2 if (&blessed($t) and $t->isa('RDF::Trine::Model')) { }
1 1 elsif (&blessed($t) and $t->isa('RDF::Trine::Store')) { }
486 3 5 unless ref $_[-1]
487 6 2 unless (defined $message and length $message)
491 1 7 unless (&blessed($target))
496 4 3 &blessed($_[0]) && $_[0]->isa('RDF::Trine::Pattern') ? :
502 4 3 if ($iter->materialize->length > 0)
511 6 12 if ($node->is_variable) { }
517 5 1 if $target->count_statements(@triple)
521 1 2 if ($noreturns) { }
531 2 5 unless ref $_[-1]
532 5 2 unless (defined $message and length $message)
536 0 7 unless (&blessed($target))
541 4 3 &blessed($_[0]) && $_[0]->isa('RDF::Trine::Pattern') ? :
546 3 4 if ($iter->length == 0)