Branch Coverage

blib/lib/Excel/ValueWriter/XLSX.pm
Criterion Covered Total %
branch 40 52 76.9


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 34 13 $i < @$code_or_array ? :
0 13 ref $code_or_array ne 'ARRAY' ? :
2 13 ref $code_or_array eq 'CODE' ? :
129 0 1041 unless my $last_col = @$row
141 2 300705 unless defined $val and length $val
147 2 2 $1 ? :
2 657 $val =~ /^=/u ? :
4 659 $bool_regex && $val =~ /$bool_regex/u ? :
14 663 $date_regex && $val =~ /$date_regex/u ? :
300028 677 &looks_like_number($val) && !($val =~ /^\pL/u) ? :
167 9 6 if ($table_name and $row_num)
195 0 0 unless (@table_names)
232 0 9 unless $table_name =~ /$TABLE_NAME/u
234 0 9 unless &none(sub { $table_name eq $_; } , @{$$self{"tables"};})
273 0 2 unless $name and $formula
274 0 2 if exists $self->{'defined_names'}{$name}
283 9 6 if $table_id
307 1 4 ref $target ? :
308 0 5 unless $write_result == 0
352 5 0 if (my $names = $self->{'defined_names'})
356 1 1 if $content->[1]
542 1 652 $string =~ /^\s|\s$/u ? :
563 10 4 if $is_after_february_1900