Branch Coverage

Bio/Ontology/RelationshipType.pm
Criterion Covered Total %
branch 27 56 48.2


line true false branch
137 0 67 unless $name
142 16 20 if ($reltype and $ont && $reltype->ontology && $ont->name eq $reltype->ontology->name || !($reltype->ontology || $ont))
206 0 176 if ($self->identifier xor $type->identifier)
212 0 176 $self->identifier || $type->identifier ? :
234 51 745 if (@_)
235 0 51 if $ret and $ret ne $_[0]
258 102 493 if (@_)
259 0 102 if $ret and $ret ne $_[0]
285 51 4 if (@_)
286 0 51 if $ret and $ret ne $_[0]
291 0 55 if $ret
292 4 51 if $self->name
312 95 95 if (@_)
314 0 95 if ($ret)
315 0 0 $ont ? :
0 0 unless $ont and $ont->name eq $ret->name
341 0 0 if (@_)
342 0 0 if $ret and $ret ne $_[0]
366 51 0 if (@_)
367 0 51 if $ret and $ret != $_[0]
390 51 0 if (@_)
391 0 51 if $ret and $ret ne $_[0]
408 0 176 if (not defined $value) { }
0 176 elsif (not ref $value) { }
0 176 elsif (not $value->isa($expected_class)) { }
441 0 0 $new ? :
0 0 $old ? :
444 0 0 if $old and $new