Branch Coverage

Bio/RangeI.pm
Criterion Covered Total %
branch 79 138 57.2


line true false branch
116 1 7 if $s1 != 0 and $s1 == $s2
123 4 4 if $s1 == 0 or $s2 == 0 or $s1 == $s2
135 12971 10 unless $comp
225 0 44 unless defined $self->start
226 0 44 unless defined $self->end
227 0 44 unless defined $other and $other->isa('Bio::RangeI')
229 0 44 unless defined $other->start
230 0 44 unless defined $other->end
254 0 8288 unless defined $self->start
255 0 8288 unless defined $self->end
257 8288 0 if (defined $other and ref $other) { }
258 0 8288 unless $other->isa('Bio::RangeI')
259 0 8288 unless defined $other->start
260 0 8288 unless defined $other->end
266 0 0 unless $other =~ /^[-+]?\d+$/
285 0 0 unless defined $self->start
286 0 0 unless defined $self->end
287 0 0 unless $other->isa('Bio::RangeI')
288 0 0 unless defined $other->start
289 0 0 unless defined $other->end
323 1 4437 unless $given
326 0 4437 if ($self eq 'Bio::RangeI')
330 4436 1 if (ref $self)
333 3 4434 ref $given eq 'ARRAY' ? :
336 0 4437 unless @ranges >= 2
340 4437 3 unless ($intersect)
342 0 4437 unless ref $intersect
343 0 4437 unless $intersect->isa('Bio::RangeI')
344 0 4437 unless defined $intersect->start
345 0 4437 unless defined $intersect->end
349 0 4440 unless ref $compare
350 0 4440 unless $compare->isa('Bio::RangeI')
351 0 4440 unless defined $compare->start
352 0 4440 unless defined $compare->end
353 0 4440 unless $compare->_testStrand($intersect, $so)
362 4284 156 if (defined $intersect->strand and defined $compare->strand and $intersect->strand == $compare->strand) { }
369 109 4331 if ($start > $end) { }
379 4 4324 if (wantarray) { }
406 0 21337 if ($self eq 'Bio::RangeI')
410 21336 1 if (ref $self)
429 21354 21322 if (not defined $union_strand) { }
433 467 20855 if (not defined $_->strand or $union_strand ne $_->strand)
439 0 21337 unless $start or $end
440 17083 4254 if (wantarray) { }
467 0 0 unless defined $a->start
468 0 0 unless defined $a->end
469 0 0 unless $b->isa('Bio::RangeI')
470 0 0 unless defined $b->start
471 0 0 unless defined $b->end
473 0 0 unless ($a->overlaps($b))
478 0 0 if ($a->start < $b->start) { }
484 0 0 if ($a->end > $b->end) { }
491 0 0 if (not $intersect) { }
516 0 2080 if ($self eq 'Bio::RangeI')
521 0 2080 if (ref $self)
543 4250 39 if ($intersection) { }
556 4250 2083 if (@intersecting_ranges) { }
557 0 4250 if (@intersecting_ranges > 1) { }
597 2 2 $self->strand eq -1 ? :
619 1 6 unless $range
621 2 4 unless $self->_testStrand($range, $so)
623 0 4 if ($self eq 'Bio::RangeI')
628 0 4 unless $range->isa('Bio::RangeI')
632 1 3 if ($self->location->isa('Bio::Location::SplitLocationI')) { }
640 1 5 unless ($sl->overlaps($range))
650 1 4 if ($range->contains($sl))
657 3 1 if ($sl->start < $start)
664 2 2 if ($sl->end > $end)
673 3 1 if (@outranges)