Branch Coverage

blib/lib/Chart/Pareto.pm
Criterion Covered Total %
branch 18 48 37.5


line true false branch
47 17 0 if ($$data[1][$i] >= 0) { }
88 2 0 if ($$self{'legend'} =~ /^none$/)
93 0 0 if ($#{$$self{'legend_labels'};} >= 0 and scalar @{$$self{'legend_labels'};} != 2)
99 0 0 unless ($$self{'max_legend_label'})
104 0 0 unless ($$self{'legend_labels'}[0])
107 0 0 unless ($$self{'legend_labels'}[1])
111 0 0 if (length $$self{'legend_labels'}[0] > length $$self{'legend_labels'}[1]) { }
123 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') { }
161 0 2 unless (ref $font eq 'GD::Font')
169 0 2 if ($$self{'imagemap'} =~ /^true$/i)
178 2 0 $$self{'num_datapoints'} > 0 ? :
180 0 2 if $diff == 0
182 1 1 if ($$self{'spaced_bars'} =~ /^true$/i) { }
204 17 2 if (defined $$data[1][$j]) { }
210 10 7 if ($$self{'spaced_bars'} =~ /^true$/i) { }
221 0 17 if ($$data[1][$j] > $$self{'max_val'}) { }
0 17 elsif ($$data[1][$j] < $$self{'min_val'}) { }
237 0 17 if ($$self{'imagemap'} =~ /^true$/i)
241 17 0 if (not $cut) { }
249 17 0 if ($$self{'max_val'} >= $curr_sum) { }
289 0 2 if ($$self{'imagemap'} =~ /^true$/i)