Branch Coverage

blib/lib/Statistics/Running.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
82 6 3 unless (defined $bins)
94 0 0 unless (defined $bi)
105 3 0 if ($self->{'histo'}{'needs-recalculate'} == 1)
113 2 1 if ($self->{'histo'}{'num-bins'} > 0)
153 0 7 unless (defined $params)
156 0 7 if (defined($m1 = $params->{'bins'})) { }
7 0 elsif (defined($m1 = $params->{'bin-width'}) and defined($m2 = $params->{'num-bins'}) and defined($m3 = $params->{'left-boundary'})) { }
158 0 0 if ($aref eq 'ARRAY') { }
0 0 elsif ($aref eq 'HASH') { }
199 753 3 if ($aref eq '') { }
3 0 elsif ($aref eq 'ARRAY') { }
203 10 743 if ($n1 == 0) { }
205 13 730 if ($x < $self->{'MIN'})
206 155 588 if ($x > $self->{'MAX'})
272 0 4 if ($m == 1)
279 1 2 if ($m == 0)
287 2 2 if ($m == 0)
336 1 3 if ($self->_equals_histograms_structure($other))
376 0 2 if ($self->_equals_histograms_structure($other) == 0)
382 0 10 if ($selfC->[$i] != $otherC->[$i])
394 0 1 if ($self->_equals_histograms_structure($other) == 0)
449 502 251 if (($n = $self->{'histo'}{'num-bins'}) <= 0)
452 146 944 if ($x > $B->[$i] and $x <= $$B[$i + 1])
546 3 4 if ($NB1 != $other->{'histo'}{'num-bins'})
549 0 4 if ($NB1 == -1)
554 0 34 if ($b1->[$i] != $b2->[$i])