Branch Coverage

blib/lib/Excel/Writer/XLSX/Package/Styles.pm
Criterion Covered Total %
branch 138 142 97.1


line true false branch
159 28 45 if ($index =~ /^#([0-9A-F]{6})$/i)
208 850 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 36 823 if ($self->{'_has_comments'})
319 996 122 if $format->{'_has_font'}
322 36 823 if ($self->{'_has_comments'})
345 7 1017 if $format->{'_font_condense'}
346 7 1017 if $format->{'_font_extend'}
348 79 945 if $format->{'_bold'}
349 52 972 if $format->{'_italic'}
350 4 1020 if $format->{'_font_strikeout'}
351 2 1022 if $format->{'_font_outline'}
352 2 1022 if $format->{'_font_shadow'}
355 27 997 if $format->{'_underline'}
357 3 1021 if $format->{'_font_script'} == 1
358 2 1022 if $format->{'_font_script'} == 2
360 1013 11 unless ($dxf_format)
367 11 1013 if ($theme == -1) { }
9 1004 elsif ($theme) { }
0 1004 elsif (my $index = $format->{'_color_indexed'}) { }
21 983 elsif (my $color = $format->{'_color'}) { }
979 4 elsif (not $dxf_format) { }
385 1013 11 unless ($dxf_format)
388 1004 9 if ($format->{'_font_family'})
392 1 1012 if ($format->{'_font_charset'})
396 989 24 if ($format->{'_font'} eq 'Calibri' and not $format->{'_hyperlink'})
404 9 1004 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 16 1101 if $format->{'_has_fill'}
566 17 16 if ($dxf_format)
599 15 18 if ($dxf_format and $format->{'_pattern'} <= 1) { }
611 17 16 if ($fg_color)
616 25 8 if ($bg_color) { }
621 8 0 unless ($dxf_format)
648 904 214 if $format->{'_has_border'}
670 2 904 if ($format->{'_diag_type'} == 1) { }
2 902 elsif ($format->{'_diag_type'} == 2) { }
4 898 elsif ($format->{'_diag_type'} == 3) { }
682 1 905 if ($format->{'_diag_type'} and not $format->{'_diag_border'})
719 905 1 unless ($dxf_format)
728 1 905 if ($dxf_format)
751 4470 61 unless ($style)
779 10 51 if ($color) { }
802 8 851 if ($self->{'_has_hyperlink'})
813 8 851 if ($self->{'_has_hyperlink'})
868 8 860 if ($has_hyperlink) { }
913 48 1106 if ($format->{'_num_format_index'} > 0)
918 133 1021 if ($format->{'_font_index'} > 0 and not $format->{'_hyperlink'})
923 21 1133 if ($format->{'_fill_index'} > 0)
928 45 1109 if ($format->{'_border_index'} > 0)
936 44 1110 if $apply_align and @align
939 53 1101 if ($apply_align or $format->{'_hyperlink'})
946 18 1136 if (@protection or $format->{'_hyperlink'})
949 10 8 unless ($format->{'_hyperlink'})
955 53 1101 if ($has_align or $has_protect) { }
957 44 9 if $has_align
958 10 43 if $has_protect
978 8 851 if ($self->{'_has_hyperlink'})
987 8 851 if ($self->{'_has_hyperlink'})
1035 23 836 if ($count) { }
1041 11 22 if $format->{'_has_dxf_font'}
1043 11 22 if ($format->{'_num_format_index'})
1048 17 16 if $format->{'_has_dxf_fill'}
1049 1 32 if $format->{'_has_dxf_border'}
1096 854 7 unless @custom_colors
1117 1 8 if ($count > 10)