Condition Coverage

blib/lib/PomBase/Chobo/OntologyTerm.pm
Criterion Covered Total %
condition 36 48 75.0


and 3 conditions

line !l l&&!r l&&r condition
102 0 4 0 defined $self->metadata->{'ontology'} and $self->metadata->{'ontology'} eq "ro"
155 29 0 50 $object->{'def'} and $object->{'def'}{'dbxrefs'}
0 40 10 $object->{'def'} and $object->{'def'}{'dbxrefs'} and $object->{'alt_id'}
168 75 0 4 $object->{'is_obsolete'} and $object->{'name'}
0 2 2 $object->{'is_obsolete'} and $object->{'name'} and not $object->{'name'} =~ /^obsolete/i
172 69 0 10 $object->{'is_relationshiptype'} and $object->{'name'}
255 0 13 15 defined $field_conf->{'type'} and $field_conf->{'type'} eq 'SINGLE' || $field_conf->{'type'} eq 'SINGLE_HASH'
268 3 0 2 $name eq "namespace" and $self->{'_namespace_from_metadata'}

or 2 conditions

line l !l condition
84 4 2 $self->{'synonym'} // []
114 149 0 $self->{'alt_id'} // []
121 2 4 $self->{'property_value'} // []
128 1 1 $self->{'subset'} // []
135 12 65 $self->{'xref'} // []
184 19 60 $object->{'alt_id'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
255 14 1 13 $field_conf->{'type'} eq 'SINGLE' || $field_conf->{'type'} eq 'SINGLE_HASH'
268 5 2 3 not defined $self->{$name} or $name eq "namespace" and $self->{'_namespace_from_metadata'}
273 3 0 0 $name ne "namespace" or not $other_term->{'_namespace_from_metadata'}
305 13 13 182 $field_name eq "id" or $field_name eq "alt_id"