Branch Coverage

Bio/SeqFeature/Generic.pm
Criterion Covered Total %
branch 119 148 80.4


line true false branch
221 18346 27594 if $location
222 0 45940 if $gff_string
223 0 45940 if ($gff1_string)
228 0 45940 if $pid
229 19625 26315 if $primary_tag
230 1262 44678 if $source_tag
231 296 45644 if $primary
232 380 45560 if $source
233 0 45940 if $annot
234 10150 35790 if defined $start
235 10149 35791 if defined $end
236 10112 35828 if defined $strand
237 92 45848 if defined $frame
238 82 45858 if defined $display_name
239 575 45365 if defined $score
240 2 45938 if defined $phase
242 0 45940 if ($seqname)
244 0 0 unless $seqid
246 1511 44429 if defined $seqid
247 1980 43960 if ($tag)
249 198 4791 UNIVERSAL::isa($tag->{$t}, 'ARRAY') ? :
290 30244 581616 if (defined $value) { }
18513 563103 elsif (not $self->{'_location'}) { }
291 0 30244 unless (ref $value and $value->isa('Bio::LocationI'))
319 37170 158691 if (defined $value)
323 92367 66324 unless defined $self->{'_gsf_seq'}
326 8 66316 if ($self->{'_gsf_seq'}->is_circular and $self->location->isa('Bio::Location::SplitLocationI')) { }
341 8 0 if ($a_end == $primary_seq_length and $b_start == 1 and $a_strand == $b_strand)
349 8 0 $cut_by_origin == 1 ? :
372 37166 158190 if (defined $value)
376 92125 66065 unless defined $self->{'_gsf_seq'}
379 8 66057 if ($self->{'_gsf_seq'}->is_circular and $self->location->isa('Bio::Location::SplitLocationI')) { }
394 8 0 if ($a_end == $primary_seq_length and $b_start == 1 and $a_strand == $b_strand)
402 8 0 $cut_by_origin == 1 ? :
429 3 2676 if ($length < 0 and defined $self->{'_gsf_seq'})
467 4951 1024 if (@_)
470 0 4275 if (defined $value and $value and not $value =~ /^[A-Za-z]+$/ and not $value =~ /^[+-]?\d+\.?\d*(e-\d+)?/ and $value != 0)
476 0 4951 if ($self->has_tag('score'))
482 5971 4 $self->has_tag('score') ? :
501 1975 819 if (@_)
503 0 1975 if (defined $value and not $value =~ /^[0-2.]$/)
507 8 1967 if (defined $value and $value eq '.')
528 32663 100452 if @_
547 32734 36718 if @_
600 0 60640 unless (defined $tag)
601 1 60639 unless (exists $self->{'_gsf_tag_hash'}{$tag})
642 0 19 unless (exists $self->{'_gsf_tag_hash'}{$tag})
667 0 17234 unless ($seq and ref $seq and $seq->isa('Bio::PrimarySeqI'))
698 0 239 if (defined $arg)
702 1 238 unless (exists $self->{'_gsf_seq'})
712 1 237 if ($self->{'_gsf_seq'}->is_circular and $self->location->isa('Bio::Location::SplitLocationI') and $start > $end) { }
732 143 95 if (defined $self->strand and $self->strand == -1)
776 36355 42966 if @_
794 140 182 if @_
819 1807 1143 if (defined $value or not defined $obj->{'annotation'})
820 1806 1 unless defined $value
844 23790 6661 unless (shift())->{'_gsf_sub_array'}
873 0 23287 unless (defined $feat)
877 0 23287 unless ($feat->isa('Bio::SeqFeatureI'))
881 18952 4335 if ($expand and $expand eq 'EXPAND') { }
884 0 4335 unless ($self->contains($feat))
889 4116 19171 unless exists $self->{'_gsf_sub_array'}
912 24 24 unless $self->{'_gsf_sub_array'}
941 0 1 if (defined $gffio)
942 0 0 if (ref $self) { }
949 0 1 ref $self && exists $self->{'_gffio'} ? :
970 1 7 unless $formatter
994 0 0 unless (defined $f)
1050 0 19497 unless ($feat->isa('Bio::SeqFeatureI'))
1055 2414 17083 if (not $self->location->valid_Location) { }
1058 2321 93 unless $self->strand
1100 10907 277 if (@_ or not $self->has_tag($tag))
1101 19 10888 if $self->has_tag($tag)
1139 40402 655 unless $self->{'_gsf_sub_array'}