Branch Coverage

blib/lib/OBO/Core/RelationshipType.pm
Criterion Covered Total %
branch 116 166 69.8


line true false branch
78 183 227648 if ($_[1])
91 10 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
92 3 174 $_[0]{'IS_ANONYMOUS'} && $_[0]{'IS_ANONYMOUS'} == 1 ? :
105 155 54343 if $_[1]
120 0 191 if (scalar @_ > 1) { }
0 191 elsif (scalar @_ == 1) { }
138 59 317 if $_[1]
154 2 36 if ($_[1] and $dbxref_as_string)
160 0 2 if ($e == -1)
171 38 0 if (defined $d) { }
189 0 191 if (scalar @_ > 1) { }
0 191 elsif (scalar @_ == 1) { }
207 36 255 if ($_[1])
221 1 170 if (scalar @_ > 1) { }
2 168 elsif (scalar @_ == 1) { }
244 0 28 unless (defined $rel_type_name)
254 7 11 if ($s->def->text eq $synonym->def->text)
258 5 2 if ($synonym_type_name or $s_type_name) { }
259 1 1 if ($s_type_name and $synonym_type_name and $s_type_name eq $synonym_type_name)
278 25 0 unless ($syn_found or $synonym->scope eq 'EXACT' and $synonym->def->text eq $rel_type_name)
279 0 25 unless $$self{'SYNONYM_SET'}->add($synonym)
297 25 0 if ($_[1] and $_[2] and $_[3])
314 87 0 if ($syn_scope) { }
316 18 69 if ($syn_type_name) { }
341 1 269 if $_[1]
357 75 154 if ($xref_as_string)
361 0 75 if ($e == -1)
381 0 161 if (scalar @_ > 1) { }
0 161 elsif (scalar @_ == 1) { }
400 0 161 if (scalar @_ > 1) { }
0 161 elsif (scalar @_ == 1) { }
418 14 169 if ($_[1])
436 8 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
437 0 170 $_[0]{'IS_CYCLIC'} && $_[0]{'IS_CYCLIC'} == 1 ? :
450 32 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
451 56 138 $_[0]{'IS_REFLEXIVE'} && $_[0]{'IS_REFLEXIVE'} == 1 ? :
464 10 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
465 6 195 $_[0]{'IS_SYMMETRIC'} && $_[0]{'IS_SYMMETRIC'} == 1 ? :
478 21 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
479 31 152 $_[0]{'IS_ANTI_SYMMETRIC'} && $_[0]{'IS_ANTI_SYMMETRIC'} == 1 ? :
492 55 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
493 129 119 $_[0]{'IS_TRANSITIVE'} && $_[0]{'IS_TRANSITIVE'} == 1 ? :
506 8 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
507 0 199 $_[0]{'IS_METADATA_TAG'} && $_[0]{'IS_METADATA_TAG'} == 1 ? :
520 9 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
521 1 198 $_[0]{'IS_CLASS_LEVEL'} && $_[0]{'IS_CLASS_LEVEL'} == 1 ? :
535 0 165 if (scalar @_ > 1) { }
0 165 elsif (scalar @_ == 1) { }
555 18 167 if (scalar @_ == 2)
572 10 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
573 4 171 $_[0]{'IS_FUNCTIONAL'} && $_[0]{'IS_FUNCTIONAL'} == 1 ? :
586 10 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
587 4 171 $_[0]{'IS_INVERSE_FUNCTIONAL'} && $_[0]{'IS_INVERSE_FUNCTIONAL'} == 1 ? :
600 0 157 if (scalar @_ > 1) { }
0 157 elsif (scalar @_ == 1) { }
618 0 157 if (scalar @_ > 1) { }
0 157 elsif (scalar @_ == 1) { }
636 0 158 if (scalar @_ > 1) { }
1 157 elsif (scalar @_ == 1) { }
653 3 172 if $_[1]
666 3 172 if $_[1]
679 2 138 if $_[1]
692 2 138 if $_[1]
706 8 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
707 0 169 $_[0]{'IS_OBSOLETE'} && $_[0]{'IS_OBSOLETE'} == 1 ? :
721 0 190 if (scalar @_ > 1) { }
0 190 elsif (scalar @_ == 1) { }
740 0 190 if (scalar @_ > 1) { }
0 190 elsif (scalar @_ == 1) { }
758 13 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
759 11 164 $_[0]{'BUILTIN'} && $_[0]{'BUILTIN'} == 1 ? :
774 8 0 if ($_[1] and eval { do { $_[1]->isa('OBO::Core::RelationshipType') } }) { }
778 0 8 unless defined $self_id
779 0 8 unless defined $target_id
789 0 77 unless caller eq 'OBO::Core::RelationshipType'
818 2 80 if ($entry =~ /$r_db_acc$r_desc$r_mod?/) { }
80 0 elsif ($entry =~ /$r_db_acc$r_desc?$r_mod?/) { }
822 1 1 if $4
826 0 80 if $3
827 0 80 if $4
834 2 80 if defined $desc
835 1 81 if defined $mod
842 0 167 unless caller eq 'OBO::Core::RelationshipType'