Branch Coverage

blib/lib/Chart/Direction.pm
Criterion Covered Total %
branch 117 202 57.9


line true false branch
63 2 2 if ($$self{'include_zero'} =~ /^true$/i)
65 2 0 if ($d_min * $d_max > 0)
67 2 0 if ($d_min > 0) { }
81 0 4 if $f_min
84 0 4 if $f_max
87 0 4 if ($d_min > $d_max)
97 0 4 if (0 == $d_width)
127 28 0 if (defined $$self{'f_y_tick'}) { }
130 28 0 if ($$self{'f_y_tick'} == \&Chart::Base::_default_f_tick) { }
141 8 20 if $maxtickLabelLen < length $labelText
165 0 4 if ($minTicks < 2)
171 0 4 if ($maxTicks < 5 * $minTicks)
191 0 4 if ($maxTicks < $tickCount) { }
0 4 elsif ($minTicks > $tickCount) { }
196 0 0 if (not defined $divisor or $divisor == 0)
212 0 4 if $minF and int $min * $divisor != $min * $divisor
213 0 4 if $maxF and int $max * $divisor != $max * $divisor
242 0 4 if ($$self{'grey_background'} =~ /^true$/i)
246 0 4 if ($$self{'imagemap'} =~ /^true$/i)
260 0 4 if ($width < $height) { }
277 0 4 if ($angle_interval == 0) { }
0 4 elsif ($angle_interval <= 5 and $angle_interval > 0) { }
0 4 elsif ($angle_interval <= 10 and $angle_interval > 5) { }
1 3 elsif ($angle_interval <= 15 and $angle_interval > 10) { }
0 3 elsif ($angle_interval <= 20 and $angle_interval > 15) { }
1 2 elsif ($angle_interval <= 30 and $angle_interval > 20) { }
2 0 elsif ($angle_interval <= 45 and $angle_interval > 30) { }
0 0 elsif ($angle_interval <= 90 and $angle_interval > 45) { }
325 4 48 if ($_ == 270)
396 2 2 if ($$self{'pairs'} =~ /^true$/i)
401 0 2 if ($c == 0)
408 0 4 if ($$self{'imagemap'} =~ /^true$/i)
422 0 4 if $diff < 1
432 2 2 if ($$self{'pairs'} =~ /^false$/i)
440 54 0 if (defined $$data[$j][$i] and $$data[$j][$i] <= $$self{'max_val'} and $$data[$j][$i] >= $$self{'min_val'}) { }
450 6 48 if ($i == 0)
458 54 0 if ($$self{'point'} =~ /^true$/i)
464 27 27 if ($$self{'line'} =~ /^true$/i)
468 27 0 if (defined $last_x) { }
476 0 54 if ($$self{'arrow'} =~ /^true$/i)
480 0 0 if ($$data[$j][$i] > $$self{'min_val'})
500 0 54 if ($$self{'imagemap'} =~ /^true$/i)
504 0 0 if ($$self{'imagemap'} =~ /^true$/i)
512 3 3 if ($$self{'line'} =~ /^true$/i)
520 2 2 if ($$self{'pairs'} =~ /^true$/i)
523 2 5 if ($j == 1) { }
532 42 0 if (defined $$data[$j][$i] and $$data[$j][$i] <= $$self{'max_val'} and $$data[$j][$i] >= $$self{'min_val'}) { }
542 7 35 if ($i == 0)
550 0 42 if ($$self{'point'} =~ /^true$/i)
556 0 42 if ($$self{'line'} =~ /^true$/i)
560 0 0 if (defined $last_x) { }
568 42 0 if ($$self{'arrow'} =~ /^true$/i)
572 42 0 if ($$data[$j][$i] > $$self{'min_val'})
592 0 42 if ($$self{'imagemap'} =~ /^true$/i)
596 0 0 if ($$self{'imagemap'} =~ /^true$/i)
604 0 7 if ($$self{'line'} =~ /^true$/i)
634 69 64 if ($type eq 'line') { }
64 0 elsif ($type eq 'point') { }
668 2 2 if ($$self{'legend'} =~ /^none$/)
673 0 2 if ($#{$$self{'legend_labels'};} >= 0 and scalar @{$$self{'legend_labels'};} != $$self{'num_datasets'})
679 2 0 unless ($$self{'max_legend_label'})
685 2 0 if ($$self{'pairs'} =~ /^false$/i)
687 3 3 unless ($$self{'legend_labels'}[$_ - 1])
691 2 4 if ($length > $$self{'max_legend_label'})
697 0 2 if ($$self{'pairs'} =~ /^true$/i)
700 0 0 unless ($$self{'legend_labels'}[$_ - 1])
704 0 0 if ($length > $$self{'max_legend_label'})
711 1 1 if ($$self{'legend'} eq 'bottom') { }
0 1 elsif ($$self{'legend'} eq 'right') { }
0 1 elsif ($$self{'legend'} eq 'left') { }
1 0 elsif ($$self{'legend'} eq 'top') { }
740 0 1 unless (ref $font eq 'GD::Font')
753 0 1 if ($$self{'y_axes'} =~ /^right$/i) { }
0 1 elsif ($$self{'y_axes'} =~ /^both$/i) { }
766 0 1 if ($$self{'y_label'})
769 0 1 if ($$self{'y_label2'})
779 0 1 unless ($cols)
786 1 0 unless ($$self{'num_datasets'} % $cols == 0)
789 0 1 unless ($rows)
812 3 5 if ($labels[$index])
860 0 1 unless (ref $font eq 'GD::Font')
873 0 1 if ($$self{'y_axes'} =~ /^right$/i) { }
0 1 elsif ($$self{'y_axes'} =~ /^both$/i) { }
890 0 1 unless ($cols)
897 1 0 unless ($$self{'num_datasets'} % $cols == 0)
900 0 1 unless ($rows)
922 3 1 if ($labels[$index])
968 0 0 unless (ref $font eq 'GD::Font')
989 0 0 if ($$self{'pairs'} =~ /^true$/i) { }
1053 0 0 unless (ref $font eq 'GD::Font')
1074 0 0 if ($$self{'pairs'} =~ /^true$/i) { }
1140 2 2 if ($$self{'pairs'} =~ /^false$/i)
1144 54 0 if (defined $datum)
1148 52 2 if (defined $max) { }
1149 9 43 if ($datum > $max) { }
2 41 elsif ($datum < $min) { }
1158 2 2 if ($$self{'pairs'} =~ /^true$/i)
1162 12 0 if (defined $datum)
1166 10 2 if (defined $max) { }
1167 4 6 if ($datum > $max) { }
2 4 elsif ($datum < $min) { }