Branch Coverage

Bio/Ontology/OBOEngine.pm
Criterion Covered Total %
branch 66 96 68.7


line true false branch
176 0 1207 if (defined $value)
199 0 57 if (defined $value)
221 0 10 if (defined $value)
242 0 6 if (defined $value)
263 0 6 if (defined $value)
284 0 6 if (defined $value)
306 163 1249 if $self->has_term($term)
333 1435 2488 if ($self->graph->has_vertex($term)) { }
358 9 0 if (scalar @_ == 3)
416 2 1485 if (scalar @_ == 2)
432 0 1487 unless $g->has_vertex($childid)
433 0 1487 unless $g->has_vertex($parentid)
436 15 1472 if ($g->has_edge($parentid, $childid))
472 3 4 if ($term)
475 0 3 unless ($g->has_vertex($termid))
484 3 4 $termid ? :
597 0 10 unless ($self->graph->has_vertex($term))
661 0 14 unless ($self->graph->has_vertex($term))
738 10018 7 if ($self->graph->has_vertex($id))
743 3164 390 wantarray ? :
791 4 4 if (defined $id) { }
796 4 4 if (defined $name)
817 0 1 unless defined $qterm and $qterm->isa('Bio::Ontology::TermI')
823 1 1007 if $term->name eq $qterm->name
844 0 1 unless defined $qterm and $qterm->isa('Bio::Ontology::TermI')
852 1 1280 if $string eq $qstring
874 0 1 unless defined $qterm and $qterm->isa('Bio::Ontology::TermI')
883 7 1274 if $string =~ /\Q$qstring\E/ or $qstring =~ /\Q$string\E/
909 7 7 if @_
934 0 0 if (@_)
955 7 29032 if (defined $value)
972 7427 1552 if (ref $term)
975 0 7427 unless $term->isa('Bio::Ontology::TermI')
981 0 7427 unless ($id)
982 0 0 if $term->ontology
983 0 0 $id ? :
989 8979 0 if $term->isa('Bio::Ontology::OBOterm') or $id =~ /^\w+:\w+$/
998 0 0 unless $id =~ /\|/
1015 0 431 unless ($self->graph->has_vertex($term))
1020 326 105 if ($do_get_child_terms) { }
1028 133 361 if (scalar @types > 0) { }
1031 93 77 if ($do_get_child_terms) { }
1037 90 80 if ($relative_type->equals($type))
1058 191 118 if (scalar @child_terms < 1)
1077 32 58 if (scalar @parent_terms < 1)
1092 0 1613 if (not defined $value) { }
0 1613 elsif (not ref $value) { }
0 1613 elsif (not $value->isa($expected_class)) { }