Branch Coverage

blib/lib/Excel/Writer/XLSX/Package/Styles.pm
Criterion Covered Total %
branch 140 144 97.2


line true false branch
159 28 46 if ($index =~ /^#([0-9A-F]{6})$/i)
208 893 10 unless $count
218 19 19 unless $format->{'_num_format_index'} >= 164
279 6 25 if ($num_fmt_id < 164)
280 6 0 if (exists $format_codes{$num_fmt_id}) { }
308 37 865 if ($self->{'_has_comments'})
319 1041 130 if $format->{'_has_font'}
322 37 865 if ($self->{'_has_comments'})
345 7 1062 if $format->{'_font_condense'}
346 7 1062 if $format->{'_font_extend'}
348 80 989 if $format->{'_bold'}
349 53 1016 if $format->{'_italic'}
350 4 1065 if $format->{'_font_strikeout'}
351 2 1067 if $format->{'_font_outline'}
352 2 1067 if $format->{'_font_shadow'}
355 27 1042 if $format->{'_underline'}
357 3 1066 if $format->{'_font_script'} == 1
358 2 1067 if $format->{'_font_script'} == 2
360 1058 11 unless ($dxf_format)
367 11 1058 if ($theme == -1) { }
9 1049 elsif ($theme) { }
0 1049 elsif (my $index = $format->{'_color_indexed'}) { }
21 1028 elsif (my $color = $format->{'_color'}) { }
1024 4 elsif (not $dxf_format) { }
385 1058 11 unless ($dxf_format)
388 1049 9 if ($format->{'_font_family'})
392 1 1057 if ($format->{'_font_charset'})
396 1034 24 if ($format->{'_font'} eq "Calibri" and not $format->{'_hyperlink'})
404 9 1049 if ($format->{'_hyperlink'})
407 9 0 unless ($self->{'_hyperlink_font_id'})
449 1 26 if ($underline == 2) { }
1 25 elsif ($underline == 33) { }
1 24 elsif ($underline == 34) { }
523 18 1152 if $format->{'_has_fill'}
566 17 18 if ($dxf_format)
596 1 0 if (not $fg_color || $bg_color and $format->{'_pattern'})
604 15 19 if ($dxf_format and $format->{'_pattern'} <= 1) { }
616 18 16 if ($fg_color)
621 25 9 if ($bg_color) { }
626 8 1 if (not $dxf_format and $format->{'_pattern'} <= 1)
653 947 224 if $format->{'_has_border'}
675 2 947 if ($format->{'_diag_type'} == 1) { }
2 945 elsif ($format->{'_diag_type'} == 2) { }
4 941 elsif ($format->{'_diag_type'} == 3) { }
687 1 948 if ($format->{'_diag_type'} and not $format->{'_diag_border'})
724 948 1 unless ($dxf_format)
733 1 948 if ($dxf_format)
756 4685 61 unless ($style)
784 10 51 if ($color) { }
807 8 894 if ($self->{'_has_hyperlink'})
818 8 894 if ($self->{'_has_hyperlink'})
873 8 903 if ($has_hyperlink) { }
918 48 1159 if ($format->{'_num_format_index'} > 0)
923 135 1072 if ($format->{'_font_index'} > 0 and not $format->{'_hyperlink'})
928 23 1184 if ($format->{'_fill_index'} > 0)
933 45 1162 if ($format->{'_border_index'} > 0)
941 44 1163 if $apply_align and @align
944 53 1154 if ($apply_align or $format->{'_hyperlink'})
951 24 1183 if (@protection or $format->{'_hyperlink'})
954 16 8 unless ($format->{'_hyperlink'})
960 59 1148 if ($has_align or $has_protect) { }
962 44 15 if $has_align
963 16 43 if $has_protect
983 8 894 if ($self->{'_has_hyperlink'})
992 8 894 if ($self->{'_has_hyperlink'})
1040 23 879 if ($count) { }
1046 11 22 if $format->{'_has_dxf_font'}
1048 11 22 if ($format->{'_num_format_index'})
1053 17 16 if $format->{'_has_dxf_fill'}
1054 1 32 if $format->{'_has_dxf_border'}
1101 897 7 unless @custom_colors
1122 1 8 if ($count > 10)