Branch Coverage

blib/lib/Spreadsheet/WriteExcel/Extended/FitColumnWidth.pm
Criterion Covered Total %
branch 27 52 51.9


line true false branch
20 1 0 if (@args == 1 and ref $args[0] eq 'HASH') { }
23 0 1 unless $$hr{'filename'} and $$hr{'filename'} ne ''
85 1 0 if ($$hr{'sheets'})
87 0 1 unless ref $$hr{'sheets'} eq 'ARRAY'
97 1 0 if (ref $sht eq 'HASH') { }
121 0 1 if ($$hr{'font'})
123 0 0 if (-f $$hr{'font'}) { }
132 0 1 if ($$hr{'font_bold'})
134 0 0 if (-f $$hr{'font_bold'}) { }
144 1 0 if (not -f $font_file) { }
152 1 0 if (not -f $font_file_bold) { }
176 1 0 if ($$workbook{'__extended_format_' . lc($name) . '__'})
217 0 15 unless defined $token
218 0 15 if $token eq ''
219 0 15 if ref $token eq 'ARRAY'
220 0 15 if $token =~ /^=/
223 4 11 if $token =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/
228 0 11 if $token =~ m[^[fh]tt?ps?://]
229 0 11 if $token =~ /^mailto:/
230 0 11 if $token =~ /^(?:in|ex)ternal:/
238 0 11 if ($arial) { }
248 0 11 if ($row == 0 and $arialbd) { }
3 8 elsif ($row == 0) { }
257 6 5 if (not defined $old_width or $string_width > $old_width)
260 6 0 $string_width > 4 ? :
324 3 0 if $width