Branch Coverage

blib/lib/Chart/Split.pm
Criterion Covered Total %
branch 51 142 35.9


line true false branch
57 0 2 if $width == 0
60 0 2 unless (ref $font eq 'GD::Font')
67 0 2 if (not defined $$self{'start'} && defined $$self{'interval'}) { }
79 0 2 if ($ticks == 0)
91 5201 0 if ($_ > $x_max)
98 1 20 if (length $_ > $x_label_len)
105 0 2 if $lines == 0
111 2 0 if ($lines > 1) { }
112 0 2 if ($$self{'y_axes'} =~ /^right$/i) { }
0 2 elsif ($$self{'y_axes'} =~ /^both$/i) { }
139 2 0 if (not defined $$self{'skip_x_ticks'})
143 2 0 if ($$self{'x_ticks'} =~ /^normal$/i) { }
0 0 elsif ($$self{'x_ticks'} =~ /^staggered$/i) { }
0 0 elsif ($$self{'x_ticks'} =~ /^vertical$/i) { }
144 0 2 if ($$self{'skip_x_ticks'} > 1) { }
0 2 elsif ($$self{'custom_x_ticks'}) { }
146 0 0 if (defined $labels[$_ * $$self{'skip_x_ticks'}])
155 0 0 if (defined $labels[$_])
163 21 0 if (defined $labels[$_])
172 0 0 if ($$self{'skip_x_ticks'} > 1) { }
0 0 elsif ($$self{'custom_x_ticks'}) { }
174 0 0 if (defined $labels[$_ * $$self{'skip_x_ticks'}])
177 0 0 if ($stag % 2 == 0)
181 0 0 if ($stag % 2 == 0)
190 0 0 if (defined $labels[$_])
192 0 0 if ($stag % 2 == 0)
196 0 0 if ($stag % 2 == 0)
205 0 0 if (defined $labels[$_])
207 0 0 if ($stag % 2 == 0)
211 0 0 if ($stag % 2 == 0)
221 0 0 if ($$self{'skip_x_ticks'} > 1) { }
0 0 elsif ($$self{'custom_x_ticks'}) { }
223 0 0 if (defined $_)
232 0 0 if (defined $labels[$_])
241 0 0 if (defined $labels[$_])
252 1 1 if ($$self{'interval_ticks'} > 0)
253 1 0 if ($$self{'x_ticks'} =~ /^normal$/i) { }
0 0 elsif ($$self{'x_ticks'} =~ /^staggered$/i) { }
0 0 elsif ($$self{'x_ticks'} =~ /^vertical$/i) { }
268 0 2 if ($$self{'skip_x_ticks'} > 1) { }
0 2 elsif ($$self{'custom_x_ticks'}) { }
272 0 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
279 0 0 if ($_ <= $ticks)
282 0 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
292 0 21 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
299 1 1 if $$self{'interval_ticks'} > 0
337 0 2 unless (ref $font eq 'GD::Font')
350 5201 0 if ($_ > $x_max)
356 0 2 if $lines == 0
363 2 0 if ($lines > 1)
364 0 2 if ($side =~ /^right$/i) { }
0 2 elsif ($side =~ /^both$/i) { }
470 0 2 if $num_points == 0
471 0 2 if $num_sets == 0
476 0 2 if $interval == 0
480 0 2 if $width == 0
481 0 2 if $height == 0
484 0 2 if ($$self{'imagemap'} =~ /^true$/i)
488 0 2 if $x_interval == 0
493 5201 0 if ($_ > $x_max)
499 0 2 if $lines == 0
514 1 1 if ($$self{'min_val'} >= 0) { }
0 1 elsif ($$self{'max_val'} <= 0) { }
516 0 1 if ($$self{'scale'} > 1) { }
526 0 0 if ($$self{'scale'} > 1) { }
557 83603 0 if (defined $$data[0][$akt_point]) { }
558 9219 74384 if ($$data[0][$akt_point] <= ($akt_line + 1) * $x_interval + $start and $$data[0][$akt_point] >= $akt_line * $x_interval + $start) { }
569 9216 3 if $akt_point != 0
573 9196 23 if (defined $$data[0][$akt_point + 1] and $$data[0][$akt_point + 1] <= ($akt_line + 1) * $x_interval + $start and $$data[0][$akt_point + 1] > $akt_line * $x_interval + $start) { }
587 0 9219 if ($$self{'imagemap'} =~ /^true$/i)
597 0 0 if ($$self{'imagemap'} =~ /^true$/i)