Branch Coverage

blib/lib/Spreadsheet/WriteExcel/Chart.pm
Criterion Covered Total %
branch 62 126 49.2


line true false branch
75 0 9 if $@
122 0 0 unless exists $arg{'values'}
130 0 0 unless (defined $category_data[1])
230 0 0 if (defined $arg{'position'})
231 0 0 if (lc $arg{'position'} eq 'none')
248 1 8 unless keys %arg
253 0 8 if (defined $arg{'visible'})
255 0 0 unless $$area{'_visible'}
262 5 3 if (defined $arg{'color'})
264 5 0 if (defined $index)
273 3 5 if (defined $arg{'line_color'})
275 3 0 if (defined $index)
282 3 5 if (defined $arg{'line_pattern'})
288 3 5 if (defined $arg{'line_weight'})
305 1 16 unless keys %arg
310 8 8 if $$self{'_embedded'}
314 10 6 if (defined $arg{'color'})
316 10 0 if (defined $index)
322 5 5 if $$self{'_embedded'}
328 6 10 if (defined $arg{'line_color'})
330 6 0 if (defined $index)
340 6 10 if (defined $arg{'line_pattern'})
344 4 2 unless defined $arg{'line_color'}
349 6 10 if (defined $arg{'line_weight'})
353 4 2 unless defined $arg{'line_pattern'}
354 4 2 unless defined $arg{'line_color'}
458 2 0 unless ($$self{'_embedded'})
463 2 0 unless ($$self{'_embedded'})
545 0 0 unless defined $formula
558 0 0 if ($@)
572 0 0 if (ord $formula == 58)
577 0 0 if (ord $formula == 59)
602 0 0 unless defined $string
608 0 0 if ($] >= 5.008)
611 0 0 if (Encode::is_utf8($string))
618 0 0 $encoding ? :
620 0 0 if (length $string >= $limit)
646 1 31 unless defined $color
672 27 4 if (exists $colors{$color}) { }
1 3 elsif ($color =~ /\D/) { }
2 1 elsif ($color < 8 or $color > 63) { }
752 28 3 if (exists $patterns{$value}) { }
788 18 4 if (exists $weights{$value}) { }
814 2 0 unless ($$self{'_embedded'})
820 0 2 if ($$self{'_chartarea'}{'_visible'})
853 0 2 if (defined $$self{'_title_name'} or defined $$self{'_title_formula'})
873 0 0 $arg{'_name_formula'} ? :
874 0 0 $arg{'_value_formula'} ? :
875 0 0 $arg{'_category_formula'} ? :
883 0 0 if (defined $arg{'_name'})
950 0 0 $formula ? :
959 0 0 if (defined $$self{'_x_axis_name'})
981 0 0 $formula ? :
990 0 0 if (defined $$self{'_y_axis_name'})
1032 0 0 $formula ? :
1041 0 0 if (defined $$self{'_title_name'})
1069 0 2 if (defined $$self{'_x_axis_name'} or defined $$self{'_x_axis_formula'})
1073 0 2 if (defined $$self{'_y_axis_name'} or defined $$self{'_y_axis_formula'})
1077 2 0 if ($$self{'_plotarea'}{'_visible'})
1209 2 0 if ($$self{'_legend'}{'_visible'})
2157 1 1 if $encoding
2160 1 1 if $encoding
2231 0 3 if $$self{'_embedded'}