Branch Coverage

blib/lib/Chart/Composite.pm
Criterion Covered Total %
branch 117 188 62.2


line true false branch
43 0 21 unless ($#_ % 2)
49 8 13 unless ($$self{'opts'})
74 0 1 unless ($$self{'imagemap'} =~ /^true$/i and $$self{'imagemap_data'})
124 0 8 unless ($$self{'composite_info'} and $#{$$self{'composite_info'};} == 1)
130 0 8 if ($$self{'y_ticks'} == 1)
141 8 39 if (scalar @{$$self{'dataref'}[$_];} > $$self{'num_datapoints'})
148 10 50 if (length $_ > $length)
188 0 8 if (defined $$self{'opts'}{'min_val1'})
191 2 6 if (defined $$self{'opts'}{'max_val1'})
194 0 8 if (defined $$self{'opts'}{'min_val2'})
197 2 6 if (defined $$self{'opts'}{'max_val2'})
200 0 8 if ($$self{'opts'}{'y_ticks1'})
203 0 8 if ($$self{'opts'}{'y_ticks2'})
207 0 8 if (defined $$self{'opts'}{'f_y_tick1'})
210 0 8 if (defined $$self{'opts'}{'f_y_tick2'})
240 3 5 if ($$self{'same_y_axes'} =~ /^true$/i)
241 0 3 if ($$self{'sub_0'}{'min_val'} < $$self{'sub_1'}{'min_val'}) { }
248 0 3 if ($$self{'sub_0'}{'max_val'} > $$self{'sub_1'}{'max_val'}) { }
273 0 8 if ($#{$$self{'legend_labels'};} >= 0 and scalar @{$$self{'legend_labels'};} != $$self{'num_datasets'})
279 8 0 unless ($$self{'max_legend_label'})
285 15 24 unless ($$self{'legend_labels'}[$_ - 1])
289 12 27 if ($length > $$self{'max_legend_label'})
295 3 5 if ($$self{'legend'} eq 'bottom') { }
2 3 elsif ($$self{'legend'} eq 'right') { }
1 2 elsif ($$self{'legend'} eq 'left') { }
2 0 elsif ($$self{'legend'} eq 'top') { }
0 0 elsif ($$self{'legend'} eq 'none') { }
365 0 2 unless (ref $font eq 'GD::Font')
379 1 1 if ($$self{'y_label'})
382 0 2 if ($$self{'y_label2'})
393 0 2 unless ($cols)
400 0 2 unless ($$self{'num_datasets'} % $cols == 0)
403 0 2 unless ($rows)
438 3 9 if ($rows == 1) { }
439 3 0 if ($$self{'legend_example_height' . $yi} < $max_legend_example) { }
447 5 4 if ($$self{'legend_example_height' . $yi} < $row_height) { }
455 0 12 if ($yh <= 1) { }
477 6 6 if ($r == 0)
544 0 2 unless (ref $font eq 'GD::Font')
587 8 0 if ($$self{'legend_example_height' . $_} < $max_legend_example) { }
593 8 0 if ($yh <= 1) { }
659 0 1 unless (ref $font eq 'GD::Font')
705 4 0 if ($$self{'legend_example_height' . $_} < $max_legend_example) { }
711 4 0 if ($yh <= 1) { }
779 0 3 unless (ref $font eq 'GD::Font')
794 2 1 if ($$self{'y_label'})
797 1 2 if ($$self{'y_label2'})
805 0 3 unless ($cols)
812 2 1 unless ($$self{'num_datasets'} % $cols == 0)
815 0 3 unless ($rows)
848 6 9 if ($rows == 1) { }
849 6 0 if ($$self{'legend_example_height' . $yi} < $max_legend_example) { }
857 5 4 if ($$self{'legend_example_height' . $yi} < $row_height) { }
865 2 13 if ($yh <= 1) { }
885 7 8 if ($r == 0)
952 0 8 unless (ref $font eq 'GD::Font')
975 8 0 $$self{'num_datapoints'} > 0 ? :
976 1 7 if ($delta <= $$self{'x_tick_label_length'} * $w)
977 0 1 unless ($$self{'x_ticks'} =~ /^vertical$/i)
983 5 3 if ($$self{'x_ticks'} =~ /^normal$/i) { }
0 3 elsif ($$self{'x_ticks'} =~ /^staggered$/i) { }
3 0 elsif ($$self{'x_ticks'} =~ /^vertical$/i) { }
984 0 5 if ($$self{'skip_x_ticks'}) { }
0 5 elsif ($$self{'custom_x_ticks'}) { }
1008 0 0 if ($$self{'skip_x_ticks'}) { }
0 0 elsif ($$self{'custom_x_ticks'}) { }
1013 0 0 if ($stag % 2 == 1)
1019 0 0 if ($stag % 2 == 1)
1029 0 0 if ($stag % 2 == 1)
1033 0 0 if ($stag % 2 == 1)
1042 0 0 if ($_ % 2 == 1)
1046 0 0 if ($_ % 2 == 1)
1054 0 3 if (defined $$self{'skip_x_ticks'} and $$self{'skip_x_ticks'} > 1) { }
0 3 elsif ($$self{'custom_x_ticks'}) { }
1088 5 3 if ($$self{'x_ticks'} =~ /^normal$/i) { }
0 3 elsif ($$self{'x_ticks'} =~ /^staggered$/i) { }
3 0 elsif ($$self{'x_ticks'} =~ /^vertical$/i) { }
1102 0 8 if ($$self{'skip_x_ticks'}) { }
0 8 elsif ($$self{'custom_x_ticks'}) { }
1106 0 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
1116 0 0 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
1126 6 54 if ($$self{'grid_lines'} =~ /^true$/i or $$self{'x_grid_lines'} =~ /^true$/i)
1169 7 1 if ($$self{'grey_background'} =~ /^true$/i)
1176 7 1 unless (not $$self{'grey_background'} =~ /^true$/i)
1177 1 6 if $$self{'grid_lines'} =~ /^true$/i
1178 0 7 if $$self{'x_grid_lines'} =~ /^true$/i
1179 0 7 if $$self{'y_grid_lines'} =~ /^true$/i
1180 0 7 if $$self{'y2_grid_lines'} =~ /^true$/i
1190 1 7 if ($$self{'imagemap'} =~ /^true$/i)
1257 4 4 if ($$self{'legend_example_height'} =~ /^false$/i)
1264 4 4 if ($$self{'legend_example_height'} =~ /^true$/i)
1268 2 27 if (defined $$self{'legend_example_height' . $i}) { }
1276 6 235 if (defined $$self{'legend_example_height' . $anh})
1277 0 6 if ($b > $e)