Branch Coverage

blib/lib/Number/Interval.pm
Criterion Covered Total %
branch 171 240 71.2


line true false branch
117 167 0 if (exists $ConstructAllowed{$lc})
162 107 375 if @_
179 113 400 if @_
198 39 140 if @_
218 42 126 if @_
238 1 19 if (@_)
240 1 0 if ($$self{'PosDef'} and not defined $self->min)
261 2 1 if (@_)
266 1 2 wantarray ? :
287 0 0 if (@_)
289 0 0 if exists $args{'min'}
290 0 0 if exists $args{'max'}
295 0 0 if defined $self->min
296 0 0 if defined $self->max
298 0 0 wantarray ? :
314 3 2 unless (defined $self->min and defined $self->max)
342 1 5 $self->inc_min ? :
343 0 6 $self->inc_max ? :
345 6 0 if (defined $min and defined $max) { }
0 0 elsif (defined $min) { }
0 0 elsif (defined $max) { }
349 1 5 $self->inc_min ? :
350 0 6 $self->inc_max ? :
352 1 5 if ($min == $max) { }
1 4 elsif ($max < $min) { }
358 2 2 if ($min <= 0 and $self->pos_def) { }
387 74 40 if (defined $min and defined $max)
388 22 52 if $min > $max
404 48 36 if (defined $min and defined $max) { }
424 0 9 unless defined $comparison
425 0 9 unless UNIVERSAL::isa($comparison, 'Number::Interval')
431 9 6 if (defined $comparison->$m) { }
432 0 9 unless defined $self->$m
433 1 8 if $comparison->$m != $self->$m
435 1 5 if defined $self->$m
442 2 11 if $self->$incm and not $comparison->$incm or not $self->$incm and $comparison->$incm
483 0 2 unless defined $max or defined $min
487 6 22 if ($self->isinverted) { }
489 6 0 if (defined $max and defined $min) { }
490 0 6 if ($self->inc_max and $self->inc_min) { }
0 6 elsif ($self->inc_max) { }
0 6 elsif ($self->inc_min) { }
491 0 0 if ($value <= $max or $value >= $min)
495 0 0 if ($value <= $max or $value > $min)
499 0 0 if ($value < $max or $value >= $min)
503 4 2 if ($value < $max or $value > $min)
514 18 4 if (defined $max and defined $min) { }
2 2 elsif (defined $max) { }
2 0 elsif (defined $min) { }
515 3 15 if ($max == $min) { }
2 13 elsif ($self->pos_def and $value < 0) { }
0 13 elsif ($self->inc_max and $self->inc_min) { }
0 13 elsif ($self->inc_max) { }
4 9 elsif ($self->inc_min) { }
516 2 1 if ($self->inc_min or $self->inc_max)
517 1 1 if $value == $max
522 0 0 if ($value <= $max and $value >= $min)
526 0 0 if ($value <= $max and $value > $min)
530 2 2 if ($value < $max and $value >= $min)
534 5 4 if ($value < $max and $value > $min)
539 0 2 if ($self->inc_max) { }
540 0 0 if $value <= $max
542 1 1 if $value <= $max
545 0 2 if ($self->inc_min) { }
546 0 0 if $value >= $min
548 1 1 if $value > $min
589 0 42 unless defined $new
590 0 42 unless UNIVERSAL::isa($new, 'Number::Interval')
612 33 9 if ($bound) { }
615 14 19 if ($inverted) { }
619 1 13 if ($inverted1 and $inverted2) { }
623 1 0 $min1 > $min2 ? :
624 0 1 $max1 < $max2 ? :
630 0 13 if ($inverted2) { }
639 6 7 if ($nowbound) { }
643 3 3 if ($min2 < $max1) { }
2 1 elsif ($min2 < $min1) { }
1 0 elsif ($min2 > $min1) { }
647 1 2 if $max2 > $min1
650 1 1 $max1 < $max2 ? :
657 1 1 if ($max2 >= $min1)
677 3 4 if (defined $max2) { }
3 1 elsif (defined $min2) { }
681 1 2 if ($max2 > $min1) { }
1 1 elsif ($max2 > $max1) { }
698 1 2 if ($min2 < $max1) { }
1 1 elsif ($min2 < $min1) { }
725 8 11 if ($bound1 and $bound2) { }
728 0 8 $min1 > $min2 ? :
729 6 2 $max1 < $max2 ? :
732 1 7 if ($outmax < $outmin)
742 4 7 if ($bound2)
748 4 7 if (defined $max2) { }
5 2 elsif (defined $min2) { }
749 2 2 if ($max2 <= $max1 and $max2 >= $min1) { }
0 2 elsif ($max2 <= $min1) { }
2 0 elsif ($max2 >= $max1) { }
765 3 2 if ($min2 <= $max1 and $min2 >= $min1) { }
1 1 elsif ($min2 >= $max1) { }
1 0 elsif ($min2 <= $min1) { }
799 1 8 if (defined $max1 and defined $max2) { }
1 7 elsif (defined $min2 and defined $min1) { }
800 1 0 $max1 < $max2 ? :
802 0 1 $min1 > $min2 ? :
805 3 4 defined $max1 ? :
806 2 5 defined $min1 ? :
808 1 6 if (not defined $refmax || defined $refmin) { }
1 5 elsif (not defined $refmax) { }
1 4 elsif (not defined $refmin) { }
2 2 elsif ($refmax > $refmin) { }
832 33 5 if (defined $outmax or defined $outmin) { }
841 2 27 if (defined $outmax and defined $outmin and $outmax == $outmin and not $inc_max && $inc_min)
869 62 4 if (defined $newval)
870 4 58 if (defined $ref1 and $ref1 == $newval and defined $ref2 and $ref2 == $newval) { }
23 56 elsif (defined $ref2 and $ref2 == $newval) { }
874 4 0 unless $inc1 and $inc2
886 0 0 defined $min1 ? :
0 0 defined $max1 ? :
0 0 defined $min2 ? :
0 0 defined $max2 ? :