Branch Coverage

blib/lib/OBO/Core/Instance.pm
Criterion Covered Total %
branch 79 108 73.1


line true false branch
60 43 542 if (defined $_[1])
74 3 1 if $_[0]{'ID'}
88 1 1 if $_[0]{'ID'}
102 1 1 if $_[0]{'ID'}
116 28 135 if ($_[1])
130 2 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
131 3 8 $_[0]{'IS_ANONYMOUS'} && $_[0]{'IS_ANONYMOUS'} == 1 ? :
145 1 12 if (scalar @_ > 1) { }
1 11 elsif (scalar @_ == 1) { }
164 0 5 if (scalar @_ > 1) { }
1 4 elsif (scalar @_ == 1) { }
182 0 4 if (defined $_[1])
197 1 20 if (scalar @_ > 1) { }
3 17 elsif (scalar @_ == 1) { }
218 0 11 unless (defined $s_name)
225 3 7 if ($s_text->def->text eq $synonym->def->text)
235 8 0 unless ($syn_found or $synonym->scope eq 'EXACT' and $synonym->def->text eq $s_name)
252 8 0 if ($_[1] and $_[2] and $_[3])
269 29 0 if ($syn_scope) { }
271 3 26 if ($syn_type_name) { }
296 1 19 if $_[1]
312 5 11 if ($xref_as_string)
316 0 5 if ($e == -1)
355 27 19 if ($_[1])
370 43 3 $_[0]{'INSTANCE_OF'} ? :
397 0 4 if (scalar @_ > 1) { }
0 4 elsif (scalar @_ == 1) { }
416 0 4 if (scalar @_ > 1) { }
0 4 elsif (scalar @_ == 1) { }
435 1 5 if (scalar @_ > 1) { }
0 5 elsif (scalar @_ == 1) { }
453 1 5 if $_[1]
467 1 5 if $_[1]
481 1 5 if $_[1]
495 1 5 if $_[1]
509 2 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
510 3 8 $_[0]{'IS_OBSOLETE'} && $_[0]{'IS_OBSOLETE'} == 1 ? :
524 0 4 if (scalar @_ > 1) { }
0 4 elsif (scalar @_ == 1) { }
543 0 4 if (scalar @_ > 1) { }
0 4 elsif (scalar @_ == 1) { }
561 0 0 if (defined $_[1] and $_[1] == 1 || $_[1] == 0)
562 0 4 $_[0]{'BUILTIN'} && $_[0]{'BUILTIN'} == 1 ? :
576 13 0 if ($_[1] and eval { do { $_[1]->isa('OBO::Core::Instance') } }) { }
577 13 0 defined $_[1] && $_[0]{'ID'} eq $_[1]{'ID'} ? :
584 0 5 unless caller eq 'OBO::Core::Instance'
613 1 6 if ($entry =~ /$r_db_acc$r_desc$r_mod?/) { }
6 0 elsif ($entry =~ /$r_db_acc$r_desc?$r_mod?/) { }
617 1 0 if $4
621 0 6 if $3
622 0 6 if $4
629 1 6 if defined $desc
630 1 6 if defined $mod
637 0 16 unless caller eq 'OBO::Core::Instance'