Branch Coverage

Bio/Ontology/Ontology.pm
Criterion Covered Total %
branch 28 52 53.8


line true false branch
153 33 6 if defined $name
154 0 39 if defined $auth
155 0 39 if defined $def
156 0 39 if defined $id
157 9 30 if defined $engine
181 39 1435 if @_
208 0 0 if @_
227 0 0 if @_
253 0 0 if (@_)
255 0 0 if exists $self->{'identifier'}
257 0 0 if $id
259 0 0 unless (exists $self->{'identifier'})
314 10 124 if (@_) { }
0 124 elsif (not exists $self->{'engine'}) { }
316 0 10 if ($engine and not ref $engine && $engine->isa('Bio::Ontology::OntologyEngineI'))
329 0 0 if ($@)
366 1 4 if $term and not $term->ontology
387 0 10 if ($rel and $rel->isa('Bio::Ontology::TermI'))
398 0 10 unless $rel->ontology
435 3 4 if ($term)
445 13 1317 unless $ont == $self
465 19 3 if $_->ontology
597 0 24 unless $ont == $self
621 4 16 unless $ont == $self
648 0 44 unless $ont == $self
796 5 0 if @_