Branch Coverage

Bio/Ontology/SimpleOntologyEngine.pm
Criterion Covered Total %
branch 52 94 55.3


line true false branch
133 1 23 if (defined $value)
159 0 0 unless defined $self->_term_store->{$term->identifier}
183 0 0 unless defined $self->_term_store->{$term->identifier}
185 0 0 if defined $self->_instantiated_terms_store->{$term->identifier}
205 1 27 if (defined $value)
206 0 1 if (defined $self->{'_term_store'}) { }
232 0 4 if (defined $$term_store{$term->identifier} and $self->_instantiated_terms_store->{$term->identifier}) { }
260 21 0 if defined $term
319 1 18 if (defined $value)
320 0 1 if (defined $self->{'_relationship_store'}) { }
344 1 12 if (defined $value)
345 0 1 if (defined $self->{'_inverted_relationship_store'}) { }
369 1 4 if (defined $value)
370 0 1 if (defined $self->{'_relationship_type_store'}) { }
394 2 10 unless my $subject = $rel->subject_term
396 2 8 unless my $object = $rel->object_term
400 4 4 if $inverted
402 0 2 if (defined $store->{$parent_id} and defined $store->{$parent_id}{$child_id} and $store->{$parent_id}{$child_id}->name ne $rel->predicate_term->name)
468 0 0 $term ? :
471 0 0 if $term
478 0 0 if ($term and $parent_id ne $term->identifier) { }
496 0 0 $term ? :
566 0 16 if ($rel_type->identifier or $term->identifier) { }
567 0 0 if $rel_type->identifier eq $term->identifier
569 10 6 if $rel_type->name eq $term->name
589 0 18 unless defined $rel_store->{$term_id}
595 10 8 if (@rel_types > 0) { }
600 10 6 if $self->_is_rel_type($rel_store->{$term_id}{$child_id}, @rel_types)
605 14 4 if ($level < 1)
610 8 8 if defined $rel_store->{$child_id}
638 0 3 unless defined $term and $term->isa('Bio::Ontology::TermI')
670 0 3 unless defined $term and $term->isa('Bio::Ontology::TermI')
703 0 1 unless defined $term
734 0 3 unless defined $term
766 1 3 if not defined $self->_relationship_store->{$term->identifier} and defined $self->_instantiated_terms_store->{$term->identifier}
790 1 3 if not defined $self->_inverted_relationship_store->{$term->identifier} and defined $self->_instantiated_terms_store->{$term->identifier}
812 12 4 unless defined $h{$element->identifier}
860 0 0 if (defined $id) { }
865 0 0 if (defined $name)
888 1 0 if @_
913 0 0 if (@_)
936 7 3 if (scalar @terms >= 1)
939 17 0 if defined $self->_instantiated_terms_store->{$term->identifier}
962 0 0 if ($self->get_term_by_identifier($id)) { }
1020 0 4 if $term->identifier
1021 4 0 if $term->ontology
1022 4 0 if ($id) { }