Condition Coverage

blib/lib/PomBase/Chobo/OntologyTerm.pm
Criterion Covered Total %
condition 34 46 73.9


and 3 conditions

line !l l&&!r l&&r condition
101 0 4 0 defined $self->metadata->{'ontology'} and $self->metadata->{'ontology'} eq "ro"
147 29 0 50 $object->{'def'} and $object->{'def'}{'dbxrefs'}
0 40 10 $object->{'def'} and $object->{'def'}{'dbxrefs'} and $object->{'alt_id'}
160 75 0 4 $object->{'is_obsolete'} and $object->{'name'}
0 2 2 $object->{'is_obsolete'} and $object->{'name'} and not $object->{'name'} =~ /^obsolete/i
164 69 0 10 $object->{'is_relationshiptype'} and $object->{'name'}
247 0 11 15 defined $field_conf->{'type'} and $field_conf->{'type'} eq 'SINGLE' || $field_conf->{'type'} eq 'SINGLE_HASH'
260 3 0 2 $name eq "namespace" and $self->{'_namespace_from_metadata'}

or 2 conditions

line l !l condition
83 4 2 $self->{'synonym'} // []
113 149 0 $self->{'alt_id'} // []
120 2 4 $self->{'property_value'} // []
127 1 1 $self->{'subset'} // []
176 19 60 $object->{'alt_id'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
247 14 1 11 $field_conf->{'type'} eq 'SINGLE' || $field_conf->{'type'} eq 'SINGLE_HASH'
260 5 2 3 not defined $self->{$name} or $name eq "namespace" and $self->{'_namespace_from_metadata'}
265 3 0 0 $name ne "namespace" or not $other_term->{'_namespace_from_metadata'}
297 13 13 169 $field_name eq "id" or $field_name eq "alt_id"