Branch Coverage

blib/lib/Data/RunningTotal.pm
Criterion Covered Total %
branch 91 114 79.8


line true false branch
21 0 2 unless exists $opts{'dimensions'}
22 0 2 if ref $opts{'dimensions'} ne 'ARRAY'
42 0 14 unless exists $opts{'coords'}
43 0 14 if ref $opts{'coords'} ne 'ARRAY'
47 0 14 if (scalar @{$opts{'coords'};} != $$self{'numDims'})
60 0 7 unless exists $opts{'coords'}
61 0 7 if ref $opts{'coords'} ne 'ARRAY'
65 0 7 if (scalar @{$opts{'coords'};} != $$self{'numDims'})
86 0 16 unless exists $opts{'coords'}
87 0 16 if ref $opts{'coords'} ne 'ARRAY'
96 0 16 unless defined $eligCoords
109 0 6 unless exists $opts{'coords'}
110 0 6 if ref $opts{'coords'} ne 'ARRAY'
118 0 6 unless defined $eligCoords
146 2 2 if not defined $minTime or defined $listTime and $listTime < $minTime
149 1 3 unless defined $minTime
153 3 3 if (defined $listTime and $listTime == $minTime)
182 20 2 if ($$self{'updatesPending'} == 0)
228 16 37 if ($start >= $end)
233 38 15 if ($$self{'counts'}[$idx][0] < $time) { }
4 11 elsif ($$self{'counts'}[$idx][0] == $time) { }
247 3 13 if defined $lastEqual
248 13 0 if defined $lastSmaller
262 2 86 if (ref $coordSels[$i] eq 'CODE') { }
63 23 elsif (not defined $coordSels[$i]) { }
23 0 elsif (defined $$self{'dimIdxs'}[$i]{$coordSels[$i]}) { }
265 4 2 if (&{$coordSels[$i];}($coord))
283 0 25 if (scalar @elig == 0)
304 63 25 if (not defined $$eligibleCoords[$i]) { }
2 23 elsif (scalar @{$$eligibleCoords[$i];} > 1) { }
312 4 0 if (defined $lastIdx) { }
324 12 11 if (defined $lastIdx) { }
339 8 14 if (scalar @res == 0)
369 5 101 if ($idxs[$i] < 0)
372 82 19 if ($$dimArrays[$i][$idxs[$i]] < $currMin)
374 7 75 unless $i == 0
378 70 7 if ($allTheSame)
379 32 38 if ($blackList{$currMin}) { }
385 32 38 if defined $$self{'counts'}[$currMin][2]
387 11 59 if ($idxs[0] < 0)
425 3 68 if ($idxs[$i] >= $maxIdx[$i])
428 45 23 if ($$dimArrays[$i][$idxs[$i]] > $currMax)
430 9 36 unless $i == 0
434 31 9 if ($allTheSame)
435 0 31 if defined $end and $$self{'counts'}[$currMax][0] > $end
436 15 16 if defined $$self{'counts'}[$currMax][2]
442 3 37 if ($idxs[0] >= $maxIdx[0])
458 0 31 if ($period) { }
467 25 6 if ($lastIdx >= 0)
468 0 25 if ($$list[$lastIdx][1] == $value) { }
5 20 elsif ($lastIdx >= 0 and $$list[$lastIdx][0] == $adjustedTime) { }
474 5 0 if ($lastIdx >= 1 and $$list[$lastIdx - 1][1] == $value) { }
503 16 26 if ($start >= $end)
508 28 14 if ($$list[$idx] < $value) { }
10 4 elsif ($$list[$idx] == $value) { }
522 10 6 if defined $lastEqual
523 6 0 if defined $lastSmaller