Branch Coverage

blib/lib/Bio/SeqFeature/Annotated.pm
Criterion Covered Total %
branch 67 168 39.8


line true false branch
253 1 58 if defined $start
254 1 58 if defined $end
255 1 58 if defined $strand
256 0 59 if defined $frame
257 0 59 if defined $phase
258 0 59 if defined $score
259 0 59 defined $source && ref $source ? :
260 0 59 defined $type && ref $type ? :
261 0 59 if defined $location
262 0 59 if defined $annot
263 0 59 if defined $feature
265 0 59 if (defined $display_name and defined $name)
268 0 59 if defined $seq_id
269 0 59 if defined($name || $display_name)
294 0 0 unless ref $feat and $feat->isa('Bio::SeqFeatureI')
312 0 0 if $no_copy{$key}
327 0 0 ref $_ ? :
330 0 0 if ($key eq 'Target' and @values == 3 || @values == 4 and @values == grep({$_->isa('Bio::Annotation::SimpleValue');} @values)) { }
0 0 elsif ($key eq 'dblink' or $key eq 'Dbxref') { }
0 0 elsif ($key eq 'Ontology_term') { }
0 0 elsif ($key eq 'comment') { }
335 0 0 if (@values == 3)
336 0 0 if ($values[1] <= $values[2]) { }
353 0 0 if (/:/) { }
389 59 10 if (defined $val)
391 59 0 if (not ref $val) { }
0 0 elsif (ref $val and $val->isa('Bio::Annotation::SimpleValue')) { }
396 0 59 if (not defined $term or $term->value =~ /^>/)
403 0 69 unless $self->get_Annotations('seq_id')
419 0 0 if defined $val
437 58 97 if (defined $val)
440 0 58 if (not ref $val) { }
58 0 elsif (ref $val and $val->isa('Bio::Annotation::OntologyTerm')) { }
471 116 124 if (defined $val)
473 0 116 if (not ref $val) { }
116 0 elsif (ref $val and $val->isa('Bio::Annotation::SimpleValue')) { }
485 59 181 unless ($self->get_Annotations('source'))
505 58 8 if (defined $val)
507 58 0 if (not ref $val) { }
0 0 elsif (ref $val and $val->isa('Bio::Annotation::SimpleValue')) { }
513 0 58 if ($term->value ne '.' and not defined $term && $term->value =~ /^[+-]?\d+\.?\d*(e-\d+)?/)
521 1 65 unless scalar $self->get_Annotations('score')
541 57 0 if (defined $val)
543 57 0 if (not ref $val) { }
0 0 elsif (ref $val and $val->isa('Bio::Annotation::SimpleValue')) { }
548 0 57 unless (defined $term and $term->value =~ /^[0-2.]$/)
555 0 57 unless $self->get_Annotations('phase')
576 0 0 if (defined $val)
578 0 0 if (not ref $val) { }
0 0 elsif (ref $val and $val->isa('Bio::Annotation::SimpleValue')) { }
583 0 0 unless (defined $term and $term->value =~ /^[0-2.]$/)
590 0 0 unless $self->get_Annotations('frame')
653 59 38 if (@_)
656 0 59 if (not ref $val and $val)
662 0 0 if (scalar keys %__type_cache > 20)
669 0 0 if ($__type_cache{$anntext}) { }
673 0 0 $anntext =~ /^\D+:\d+$/ ? :
677 0 0 unless ($soterm)
699 116 8 if (@_)
701 57 59 if (not ref $val and $val)
725 0 0 unless ($seq and ref $seq and $seq->isa('Bio::PrimarySeqI'))
751 0 0 unless defined $self->entire_seq
755 0 0 if (defined $self->strand and $self->strand == -1)
861 2 4 unless +(shift())->{'sub_array'}
885 0 24 unless $val
887 0 24 unless (ref $val and $val->isa('Bio::SeqFeatureI'))
888 0 0 ref $val ? :
892 0 24 if ($expand and $expand eq 'EXPAND') { }
895 0 24 unless ($self->contains($val))
918 0 0 unless $self->{'sub_array'}
944 59 1887 if (defined $value or not defined $obj->{'annotation'})
945 59 0 unless defined $value
966 0 395 if (defined $value) { }
59 336 elsif (not $self->{'location'}) { }
967 0 0 unless (ref $value and $value->isa('Bio::LocationI'))
991 0 0 unless ref $seq and seq()->isa('Bio::LocatableSeq')
1008 0 0 $self->{'targets'} ? :
1027 0 0 unless ($feat->isa('Bio::SeqFeatureI'))
1031 0 0 if (not defined $self->start || defined $self->end) { }
1034 0 0 unless defined $self->strand
1073 222 857 if (wantarray) { }
714 143 elsif (scalar @annotations == 1) { }
1141 1 0 if (not $tagclass{$tag} and $self->annotation->get_Annotations($tag))
1145 1 0 if (exists $tag2text{ref $proto})