Branch Coverage

blib/lib/RDF/Trine/Statement.pm
Criterion Covered Total %
branch 27 44 61.3


line true false branch
52 1 6830 unless (scalar @nodes == 3)
57 50 20440 unless (defined $nodes[$i])
106 1 16376 if (@_)
120 1 10863 if (@_)
134 1 17657 if (@_)
160 75 180 if $node->isa('RDF::Trine::Node::Blank')
192 1 0 if (/^[(]triple/) { }
198 1 0 if (/^\s*[)]/) { }
264 9 9 if ($n->isa('RDF::Trine::Node::Variable'))
266 8 1 if (my $value = $bound->{$name})
291 5 18 if ($nodes[$i]->isa('RDF::Trine::Node::Variable')) { }
293 0 5 if (exists $bind{$name}) { }
295 0 0 unless ($bind{$name}->equal($m))
303 1 17 unless $nodes[$i]->equal($m)
327 0 0 if ($type == $RDF::Redland::Node::Type_Resource) { }
0 0 elsif ($type == $RDF::Redland::Node::Type_Blank) { }
0 0 elsif ($type == $RDF::Redland::Node::Type_Literal) { }
329 0 0 if ($uri =~ /%/)
339 0 0 $dturi ? :
371 0 4 unless $self->subject->is_resource or $self->subject->is_blank
375 0 4 unless $self->predicate->is_resource
378 1 3 unless $self->object->is_resource or $self->object->is_blank or $self->object->is_literal