Branch Coverage

blib/lib/PomBase/Chobo/OntologyData.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
103 7 94 if (defined $existing_term and not $existing_term->{'is_obsolete'})
104 5 2 unless (grep {$_ == $existing_term;} @found_existing_terms)
110 0 81 if (@found_existing_terms > 1) { }
116 5 76 if (@found_existing_terms == 1)
119 5 0 unless ($term->is_obsolete or $existing_term->is_obsolete)
124 3 2 if ($old_namespace ne $existing_term->namespace)
147 64 0 if ($def_dbxref =~ /^(.+?):(.*)/) { }
158 15 0 if ($xref =~ /^(.+?):(.*)/) { }
168 81 0 if (defined $name) { }
169 76 5 unless (exists $terms_by_name->{$name} and grep {$_ == $term;} @{$$terms_by_name{$name};})
180 81 0 if (defined $term_namespace)
182 0 81 if ($existing_term_by_name and $existing_term_by_name != $term) { }
190 14 67 if ($term->{'is_relationshiptype'})
194 17 64 unless (exists $metadata_by_namespace->{$term_namespace})
199 81 0 if ($term->{'relationship'})
281 2 4 if ($self->{'_relationships'})
290 0 32 if (not $object_term) { }
318 0 3 if (@relationships == 0)
325 0 5 if (scalar keys %{$self->terms_by_cv_name->{$_};} == 0) { }