Branch Coverage

blib/lib/Excel/ValueWriter/XLSX.pm
Criterion Covered Total %
branch 39 52 75.0


line true false branch
86 8 7 if @_ < 5
92 0 15 unless $sheet_name =~ /$SHEET_NAME/u
94 0 15 unless &none(sub { $sheet_name eq $_; } , @{$$self{"sheets"};})
105 33 13 $i < @$code_or_array ? :
0 13 ref $code_or_array ne 'ARRAY' ? :
2 13 ref $code_or_array eq 'CODE' ? :
129 0 1040 unless my $last_col = @$row
141 2 300702 unless defined $val and length $val
146 2 2 $1 ? :
2 654 $val =~ /^=/u ? :
4 656 $bool_regex && $val =~ /$bool_regex/u ? :
14 660 $date_regex && $val =~ /$date_regex/u ? :
300028 674 &looks_like_number($val) ? :
166 9 6 if ($table_name and $row_num)
194 0 0 unless (@table_names)
231 0 9 unless $table_name =~ /$TABLE_NAME/u
233 0 9 unless &none(sub { $table_name eq $_; } , @{$$self{"tables"};})
272 0 2 unless $name and $formula
273 0 2 if exists $self->{'defined_names'}{$name}
282 9 6 if $table_id
306 1 4 ref $target ? :
307 0 5 unless $write_result == 0
351 5 0 if (my $names = $self->{'defined_names'})
355 1 1 if $content->[1]
527 0 650 $string =~ /^\s|\s$/u ? :
548 10 4 if $is_after_february_1900