Branch Coverage

blib/lib/OBO/Util/Ontolome.pm
Criterion Covered Total %
branch 109 156 69.8


line true false branch
55 8 4 if ($current_term) { }
60 2 6 if not defined $current_term->def->text and $term->def->text
64 0 8 if not defined $current_term->comment and $term->comment
107 2 2 unless (defined $tail)
116 2 2 unless $result->has_relationship_type($rel_type)
138 0 4 if (not defined $rel_type) { }
0 4 elsif (not $result->has_relationship_type($rel_type)) { }
140 0 0 defined $rt_name ? :
148 4 0 if ($onto_rela_type) { }
157 0 4 if not defined $rel_type->def->text and $onto_rela_type->def->text
163 0 4 if not defined $rel_type->comment and $onto_rela_type->comment
187 0 4 if defined $ir
226 0 4 unless ($result->has_relationship_id($rel_id))
238 4 0 if ($current_relationship_type) { }
247 0 4 if not defined $current_relationship_type->def->text and $relationship_type->def->text
248 0 4 if not defined $current_relationship_type->comment and $relationship_type->comment
319 0 3 if defined $default_relationship_id_prefix
320 0 3 if defined $default_namespace
352 0 8 if ($#txae1 > 0 and $#txae2 > 0)
365 0 8 if ($#txaia1 > 0 and $#txaia2 > 0)
381 48 13 if (defined $current_term)
390 2 6 $onto1_number_relationships < $onto2_number_relationships ? :
427 93 303 if ($type ne $r_type)
432 84 93 unless ($invalid)
450 101 298 if ($type ne $r_type)
456 81 101 unless ($invalid)
468 17 67 if $cand{$_} < 2
474 67 0 if $_ =~ /(.*)->(.*)->(.*)/
490 123 77 unless ($V->contains($n))
492 79 44 if $cola{$n}
497 53 70 if ($veces > 1)
505 43 0 if $k =~ /(.*)->(.*)->(.*)/
509 9 34 unless ($result->has_relationship_type_id($r_type))
535 0 1 if (scalar @trans_rts > 0)
553 13 13 if (defined $current_term) { }
554 0 13 if not defined $current_term->is_anonymous and $term->is_anonymous
558 0 13 if not defined $current_term->def->text and $term->def->text
562 0 13 if not defined $current_term->comment and $term->comment
581 0 13 if not defined $current_term->is_obsolete and $term->is_obsolete
588 0 13 if not defined $current_term->builtin and $term->builtin
599 0 15 unless (defined $tail)
615 2 13 unless $result->has_relationship_type($rel_type)
632 0 15 unless ($result->has_relationship_id($rel->id))
634 0 0 unless $result->has_relationship_type($rel_type)
674 1 0 if ($composition)
690 13 156 if $term1_id eq $term2_id
697 9 226 unless defined @$ref_path[0]
698 43 183 unless defined @$ref_path[1]
705 68 115 if ($left_type eq $right_type) { }
708 3 65 unless ($result->has_relationship_id($new_rel_id))
715 28 87 unless ($result->has_relationship_id($new_rel_id))
747 0 140 unless defined @$ref_path[0]
752 9 131 unless ($result->has_relationship_id($new_rel_id))
777 13 156 if $term1_id eq $term2_id
783 0 347 unless defined @$ref_path[0]
784 63 284 unless defined @$ref_path[1]
792 104 180 if ($left_type eq $right_type) { }
795 0 104 unless ($result->has_relationship_id($new_rel_id))
802 0 180 unless ($result->has_relationship_id($new_rel_id))
833 0 2 if (scalar @trans_rts > 0)
851 26 26 if (defined $current_term) { }
852 0 26 if not defined $current_term->is_anonymous and $term->is_anonymous
856 0 26 if not defined $current_term->def->text and $term->def->text
860 0 26 if not defined $current_term->comment and $term->comment
879 0 26 if not defined $current_term->is_obsolete and $term->is_obsolete
886 0 26 if not defined $current_term->builtin and $term->builtin
897 0 78 unless (defined $tail)
914 4 74 unless $result->has_relationship_type($rel_type)
934 0 78 unless ($result->has_relationship_id($rel->id))
936 0 0 unless $result->has_relationship_type($rel_type)
947 0 4 unless $result->has_relationship_type($rel_type)
966 0 167 unless defined @$ref_path[0]
972 33 134 if ($v and $i > 0)
983 26 312 if $term_id eq $term2_id
988 283 29 unless $result->has_relationship_id($rel_id)
991 0 68 unless defined @$ref_path[0]
992 29 39 unless defined @$ref_path[1]
1004 15 24 if ($result->has_relationship_id($new_rel_id))