Branch Coverage

blib/lib/Chart/ErrorBars.pm
Criterion Covered Total %
branch 60 98 61.2


line true false branch
52 0 2 if ($$self{'imagemap'} =~ /^true$/i)
60 2 0 $$self{'num_datapoints'} > 0 ? :
62 0 2 if $diff == 0
66 2 0 if ($$self{'xy_plot'} =~ /^true$/i)
68 0 2 if $diff == 0
71 1 1 if ($$self{'x_min_val'} <= 0 and $$self{'x_max_val'} >= 0) { }
1 0 elsif ($$self{'x_min_val'} > 0 or $$self{'x_max_val'} < 0) { }
83 0 2 if ($$self{'xy_plot'} =~ /^false$/i) { }
89 2 0 if ($$self{'min_val'} >= 0) { }
0 0 elsif ($$self{'max_val'} <= 0) { }
114 3 2 if ($$self{'same_error'} =~ /^false$/i) { }
117 1 2 if ($i - 1) % 3 == 0
124 17 34 if (($i - 1) % 3 == 0)
126 16 1 if (defined $$data[$i][$j])
127 16 0 if ($$self{'xy_plot'} =~ /^true$/i) { }
141 16 0 if ($$data[$i][$j] <= $$self{'max_val'} and $$data[$i][$j] >= $$self{'min_val'})
151 16 0 if ($flag =~ /^true$/i)
163 0 16 if ($$self{'imagemap'} =~ /^true$/i)
173 1 1 if ($i - 1) % 2 == 0
180 17 17 if (($i - 1) % 2 == 0)
182 16 1 if (defined $$data[$i][$j])
183 16 0 if ($$self{'xy_plot'} =~ /^true$/i) { }
197 15 1 if ($$data[$i][$j] <= $$self{'max_val'} and $$data[$i][$j] >= $$self{'min_val'})
207 15 1 if ($flag =~ /^true$/i)
219 0 16 if ($$self{'imagemap'} =~ /^true$/i)
243 32 85 if ($type eq 'line') { }
85 0 elsif ($type eq 'point') { }
276 2 0 if ($$self{'legend'} =~ /^none$/)
281 0 0 if ($#{$$self{'legend_labels'};} >= 0)
286 0 0 if ($$self{'same_error'} =~ /^false$/i) { }
294 0 0 unless ($$self{'max_legend_label'})
300 0 0 unless ($$self{'legend_labels'}[$j])
304 0 0 if ($length > $$self{'max_legend_label'})
317 0 0 if ($post_length > 0 and $post_length != $j)
322 0 0 if ($$self{'legend'} eq 'bottom') { }
0 0 elsif ($$self{'legend'} eq 'right') { }
0 0 elsif ($$self{'legend'} eq 'left') { }
0 0 elsif ($$self{'legend'} eq 'top') { }
351 1 1 if ($$self{'same_error'} =~ /^false$/i) { }
353 1 2 if (($i - 1) % 3 == 0)
355 16 1 if (defined $$data[$i][$j] and defined $$data[$i + 1][$j] and defined $$data[$i + 2][$j])
356 15 1 if (defined $max) { }
357 7 8 if ($$data[$i][$j] + abs($$data[$i + 1][$j]) > $max)
360 3 12 if ($$data[$i][$j] - abs($$data[$i + 2][$j]) < $min)
372 1 1 if (($i - 1) % 2 == 0)
374 16 1 if (defined $$data[$i][$j] and defined $$data[$i + 1][$j])
375 15 1 if (defined $max) { }
376 7 8 if ($$data[$i][$j] + $$data[$i + 1][$j] > $max)
379 2 13 if ($$data[$i][$j] - $$data[$i + 1][$j] < $min)