Branch Coverage

blib/lib/Chart/HorizontalBars.pm
Criterion Covered Total %
branch 73 112 65.2


line true false branch
52 0 4 unless (ref $font eq 'GD::Font')
60 1 3 if ($$self{'y_axes'} =~ /^right$/i) { }
2 1 elsif ($$self{'y_axes'} =~ /^both$/i) { }
83 2 2 if ($$self{'x_ticks'} =~ /^normal/i) { }
1 1 elsif ($$self{'x_ticks'} =~ /^staggered/i) { }
1 0 elsif ($$self{'x_ticks'} =~ /^vertical/i) { }
101 3 3 if (not $_ % 2) { }
142 44 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
165 0 4 unless (ref $font eq 'GD::Font')
173 1 3 if ($side =~ /^right$/i) { }
2 1 elsif ($side =~ /^both$/i) { }
180 1 0 $$self{'num_datapoints'} > 0 ? :
184 0 1 if (not defined $$self{'skip_y_ticks'})
203 5 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
216 2 0 $$self{'num_datapoints'} > 0 ? :
220 0 2 if (not defined $$self{'skip_y_ticks'})
239 17 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
250 2 0 $$self{'num_datapoints'} > 0 ? :
273 17 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
286 1 0 $$self{'num_datapoints'} > 0 ? :
289 0 1 if (not defined $$self{'skip_y_ticks'})
313 5 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
338 2 2 if ($$self{'include_zero'} =~ /^true$/i)
340 2 0 if ($d_min * $d_max > 0)
342 1 1 if ($d_min > 0) { }
353 0 4 if ($$self{'integer_ticks_only'} =~ /^\d$/)
354 0 0 if ($$self{'integer_ticks_only'} == 1) { }
360 1 3 if ($$self{'integer_ticks_only'} =~ /^true$/i) { }
365 1 0 if $f_min
368 1 0 if $f_max
371 0 1 if ($d_min > $d_max)
391 21 0 if (defined $$self{'f_x_tick'}) { }
394 0 21 if ($$self{'f_x_tick'} == \&_default_f_tick) { }
409 2 19 if $maxtickLabelLen < length $labelText
418 0 3 if $f_min
421 0 3 if $f_max
424 0 3 if ($d_min > $d_max)
434 0 3 if (0 == $d_width)
464 23 0 if (defined $$self{'f_x_tick'}) { }
467 0 23 if ($$self{'f_x_tick'} == \&_default_f_tick) { }
479 4 19 if $maxtickLabelLen < length $labelText
506 0 4 if ($$self{'imagemap'} =~ /^true$/i)
515 4 0 $$self{'num_datapoints'} > 0 ? :
517 3 1 if ($$self{'spaced_bars'} =~ /^true$/i) { }
526 2 2 if ($$self{'min_val'} >= 0) { }
1 1 elsif ($$self{'max_val'} <= 0) { }
550 100 13 if (defined $$data[$i][$j]) { }
552 90 10 if ($$self{'spaced_bars'} =~ /^true$/i) { }
562 0 100 if ($$data[$i][$j] > $$self{'max_val'}) { }
0 100 elsif ($$data[$i][$j] < $$self{'min_val'}) { }
578 20 80 if ($$data[$i][$j] < 0) { }
580 0 20 if ($$self{'imagemap'} =~ /^true$/i)
585 0 20 if ($$self{'imagemap'} =~ /^true$/i)
591 0 80 if ($$self{'imagemap'} =~ /^true$/i)
597 100 0 if (not $cut) { }
606 0 13 if ($$self{'imagemap'} =~ /^true$/i)