Branch Coverage

blib/lib/RDF/Core/Storage/Memory.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
58 0 0 if $self->existsStmt($stmt->getSubject, $stmt->getPredicate, $stmt->getObject)
62 0 0 unless exists $$self{'_subjects'}{$stmt->getSubject->getURI}
65 0 0 unless exists $$self{'_predicates'}{$stmt->getPredicate->getURI}
68 0 0 unless exists $$self{'_objects'}{$stmt->getObject->getLabel}
78 0 0 unless my $key = $self->_getKey($stmt)
84 0 0 if ($key eq $$self{'_subjects'}{$label}[$i])
89 0 0 unless $index == $lastIndex
92 0 0 if $lastIndex == 0
99 0 0 if ($key eq $$self{'_predicates'}{$label}[$i])
104 0 0 unless $index == $lastIndex
107 0 0 if $lastIndex == 0
114 0 0 if ($key eq $$self{'_objects'}{$label}[$i])
119 0 0 unless $index == $lastIndex
122 0 0 if $lastIndex == 0
133 0 0 if (!defined($subject) || $$self{'_data'}{$_}->getSubject->getURI eq $subject->getURI and !defined($predicate) || $$self{'_data'}{$_}->getPredicate->getURI eq $predicate->getURI and !defined($object) || ($$self{'_data'}{$_}->getObject->isLiteral ? $object->equals($$self{'_data'}{$_}->getObject) : $$self{'_data'}{$_}->getObject->getLabel eq $object->getLabel))
151 0 0 if (!defined($subject) || $$self{'_data'}{$_}->getSubject->getURI eq $subject->getURI and !defined($predicate) || $$self{'_data'}{$_}->getPredicate->getURI eq $predicate->getURI and !defined($object) || ($$self{'_data'}{$_}->getObject->isLiteral ? $object->equals($$self{'_data'}{$_}->getObject) : $$self{'_data'}{$_}->getObject->getLabel eq $object->getLabel))
168 0 0 unless defined $subject or defined $predicate or defined $object
172 0 0 if (!defined($subject) || $$self{'_data'}{$_}->getSubject->getURI eq $subject->getURI and !defined($predicate) || $$self{'_data'}{$_}->getPredicate->getURI eq $predicate->getURI and !defined($object) || ($$self{'_data'}{$_}->getObject->isLiteral ? $object->equals($$self{'_data'}{$_}->getObject) : $$self{'_data'}{$_}->getObject->getLabel eq $object->getLabel))
195 0 0 $$self{'_data'}{$_}->getObject->isLiteral ? :
0 0 if ($$self{'_data'}{$_}->getSubject->getURI eq $stmt->getSubject->getURI and $$self{'_data'}{$_}->getPredicate->getURI eq $stmt->getPredicate->getURI and $$self{'_data'}{$_}->getObject->isLiteral ? $stmt->getObject->equals($$self{'_data'}{$_}->getObject) : $$self{'_data'}{$_}->getObject->getLabel eq $stmt->getObject->getLabel)
211 0 0 unless !defined($subject) || exists $$self{'_subjects'}{$subject->getURI} and !defined($predicate) || exists $$self{'_predicates'}{$predicate->getURI} and !defined($object) || exists $$self{'_objects'}{$object->getLabel}
217 0 0 if defined $subject
220 0 0 if defined $predicate and !defined($indexArray) || @$indexArray gt @{$$self{'_predicates'}{$predicate->getURI};}
222 0 0 if defined $object and !defined($indexArray) || @$indexArray gt @{$$self{'_objects'}{$object->getLabel};}
223 0 0 unless (defined $indexArray)