Branch Coverage

blib/lib/Chart/StackedBars.pm
Criterion Covered Total %
branch 36 64 56.2


line true false branch
40 5 3 if (defined $$self{'composite_info'}) { }
41 5 0 if ($$self{'composite_info'}[0][0] =~ /^StackedBars$/i)
44 0 5 if ($$self{'composite_info'}[1][0] =~ /^StackedBars$/i)
57 8 28 if (scalar @{$$data[$_];} > $$self{'num_datapoints'})
66 316 0 if ($$data[$j][$i] > 0) { }
0 0 elsif ($$data[$j][$i] < 0) { }
67 0 316 if ($posneg eq 'neg') { }
75 0 0 if ($posneg eq 'pos') { }
90 12 76 if (length $_ > $length)
119 228 0 if defined $datum
121 80 8 if (defined $max) { }
122 12 68 if ($sum > $max) { }
26 42 elsif ($sum < $min) { }
131 8 0 if ($max > 0 and $min > 0)
134 0 8 if ($min < 0 and $max < 0)
278 0 6 if ($$self{'imagemap'} =~ /^true$/i)
285 4 2 if ($$self{'spaced_bars'} =~ /^true$/i) { }
296 6 0 if ($$self{'min_val'} >= 0) { }
0 0 elsif ($$self{'max_val'} <= 0) { }
332 140 72 if ($$self{'spaced_bars'} =~ /^true$/i) { }
344 0 212 if ($$data[$j][$i] > $$self{'max_val'}) { }
0 212 elsif ($$data[$j][$i] < $$self{'min_val'}) { }
359 212 0 if ($$data[$j][$i] > 0) { }
361 0 212 if ($$self{'imagemap'} =~ /^true$/i)
367 0 0 if ($$self{'imagemap'} =~ /^true$/i)
373 212 0 if (not $cut) { }
406 0 1 unless (ref $font eq 'GD::Font')
442 0 3 if ($$self{'dataref'}[1][0] < 0) { }
469 0 3 if ($$self{'dataref'}[1][0] < 0) { }
492 0 1 unless (ref $font eq 'GD::Font')
531 0 3 if ($$self{'dataref'}[1][0] < 0) { }
558 0 3 if ($$self{'dataref'}[1][0] < 0) { }