Condition Coverage

blib/lib/OBO/Core/Ontology.pm
Criterion Covered Total %
condition 114 200 57.0


and 3 conditions

line !l l&&!r l&&r condition
481 0 2 3 defined $id and defined $self->{'TERMS'}{$id}
511 0 1 1 defined $id and defined $self->{'INSTANCES'}{$id}
536 0 0 56 defined $id and defined $self->{'RELATIONSHIPS'}{$id}
563 1 117 6704 defined $term && $self->{'TERMS_SET'}->contains($term)
577 0 3 18 defined $instance && defined $self->{'INSTANCES'}{$instance->id}
593 0 10 241 defined $term_id && defined $self->{'TERMS'}{$term_id}
609 0 6 3 defined $instance_id && defined $self->{'INSTANCES'}{$instance_id}
625 0 8 268 defined $relationship_type && defined $self->{'RELATIONSHIP_TYPES'}{$relationship_type->id}
639 0 99 3574 defined $relationship_type_id && defined $self->{'RELATIONSHIP_TYPES'}{$relationship_type_id}
653 0 579 862 defined $id && defined $self->{'RELATIONSHIPS'}{$id}
1006 0 0 3 $term and $new_term_id
1057 0 0 2 $instance and $new_instance_id
1104 0 881 12 defined $term->name and $term->name eq $name
1125 0 6 4 defined $instance->name and $instance->name eq $name
1149 0 20 0 defined $t_name and lc $t_name eq $name_or_synonym
1155 15 3 2 $scope eq 'ANY' and $s_text eq $name_or_synonym
12 3 3 $syn->scope eq $scope and $s_text eq $name_or_synonym
1183 0 20 0 defined $t_name and lc $t_name eq $name_or_synonym
1189 15 3 2 $scope eq 'ANY' and $s_text eq $name_or_synonym
12 3 3 $syn->scope eq $scope and $s_text eq $name_or_synonym
1220 0 95 23 defined $term->name and lc($term->name) =~ /$name/
1247 0 19 6 defined $instance->name and lc($instance->name) =~ /$name/
1274 0 28 12 defined $relationship_type->name and lc($relationship_type->name) =~ /$name/
1294 0 13 12 defined $rel_type->name and lc $rel_type->name eq $name
1329 62 0 3389 eval { do { $target_element->isa('OBO::Core::Term') } } and eval { do { $source_element->isa('OBO::Core::Term') } }
0 0 62 eval { do { $target_element->isa('OBO::Core::RelationshipType') } } and eval { do { $source_element->isa('OBO::Core::RelationshipType') } }
0 0 0 eval { do { $target_element->isa('OBO::Core::Term') } } and eval { do { $source_element->isa('OBO::Core::Instance') } }
0 0 0 eval { do { $target_element->isa('OBO::Core::Instance') } } and eval { do { $source_element->isa('OBO::Core::Instance') } }
1392 0 0 222 $tail and $head
1477 0 0 93718 $element and $relationship_type
1504 0 0 10 $element and $relationship_type
2368 0 2 0 $base and not $base =~ /^http/
2573 857 427 13667 $rt_name and $rt_name ne 'is_a'
2575 13667 0 0 $rdf_tc and $rt_name_clean eq 'part_of'
4224 0 16 0 $error_file_handle eq $stderr_fh and not -w $error_file_handle
4601 0 0 3 $db and $acc
4605 0 3 3 $xref->db eq $db and $xref->acc eq $acc
4624 0 0 3 $db and $acc
4628 0 3 3 $xref->db eq $db and $xref->acc eq $acc
4706 0 4516 0 defined $banned_sou and $banned_sou > $hijos_sou
4714 578 3938 6673 $w > -1 and $bk_ww = $bk[$w], $hijos{$bk_ww} == 1 || defined $drop{$bk_ww} && $hijos{$bk_ww} == $drop{$bk_ww} || defined $banned{$bk_ww} && $banned{$bk_ww} == $hijos{$bk_ww}
4734 0 6095 0 defined $banned_bk_w and $banned_bk_w > $hijos_bk_w
4772 1 101 0 defined $v and $self->has_term_id($v)
4833 0 159 0 defined $banned_sou and $banned_sou > $hijos_sou
4841 70 89 376 $w > -1 and $bk_ww = $bk[$w], $hijos{$bk_ww} == 1 || defined $drop{$bk_ww} && $hijos{$bk_ww} == $drop{$bk_ww} || defined $banned{$bk_ww} && $banned{$bk_ww} == $hijos{$bk_ww}
4861 0 306 0 defined $banned_bk_w and $banned_bk_w > $hijos_bk_w
4899 1 140 0 defined $v and $self->has_term_id($v)
4901 1 135 0 defined $rel and $self->has_relationship_type_id($rel)
4964 0 267 0 defined $banned_sou and $banned_sou > $hijos_sou
4972 68 199 162 $w > -1 and $bk_ww = $bk[$w], $hijos{$bk_ww} == 1 || defined $drop{$bk_ww} && $hijos{$bk_ww} == $drop{$bk_ww} || defined $banned{$bk_ww} && $banned{$bk_ww} == $hijos{$bk_ww}
4992 0 94 0 defined $banned_bk_w and $banned_bk_w > $hijos_bk_w
5073 0 0 0 $blist->contains($n_id) and $explored_set->contains($n_id)
5142 0 0 0 $local_id and $uri

or 2 conditions

line l !l condition
1145 5 3 $scope || 'EXACT'
1179 5 3 $scope || 'EXACT'
4238 0 2 shift() || 0
4239 0 2 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
1155 2 0 18 $scope eq 'ANY' and $s_text eq $name_or_synonym or $syn->scope eq $scope and $s_text eq $name_or_synonym
1189 2 0 18 $scope eq 'ANY' and $s_text eq $name_or_synonym or $syn->scope eq $scope and $s_text eq $name_or_synonym
2955 0 2 0 $self->id || $self->get_terms_idspace
3061 645 2 0 $local_idspace || (split(/:/, $term_id, 0))[0]
4215 5 11 0 shift() || $stderr_fh
4714 859 0 5491 $hijos{$bk_ww} == 1 || defined $drop{$bk_ww} && $hijos{$bk_ww} == $drop{$bk_ww} || defined $banned{$bk_ww} && $banned{$bk_ww} == $hijos{$bk_ww}
4773 1 1 98 not defined $bstop or $bstop->size == 0
4841 5 0 155 $hijos{$bk_ww} == 1 || defined $drop{$bk_ww} && $hijos{$bk_ww} == $drop{$bk_ww} || defined $banned{$bk_ww} && $banned{$bk_ww} == $hijos{$bk_ww}
4900 1 1 136 not defined $bstop or $bstop->size == 0
4972 29 0 246 $hijos{$bk_ww} == 1 || defined $drop{$bk_ww} && $hijos{$bk_ww} == $drop{$bk_ww} || defined $banned{$bk_ww} && $banned{$bk_ww} == $hijos{$bk_ww}
5065 0 0 0 $blist->contains($n_id) or $brels->contains(sort(values %{$onto->{'TARGET_SOURCE_RELATIONSHIPS'}{$onto->get_term_by_id($p_id)}{$onto->get_term_by_id($n_id)};}))