Branch Coverage

blib/lib/Excel/ValueWriter/XLSX.pm
Criterion Covered Total %
branch 51 68 75.0


line true false branch
118 19 8 if @_ < 5 or @_ == 5 and (ref $_[4] // "") eq "HASH"
124 0 27 unless &none(sub { $sheet_name eq $_; } , @{$$self{"sheets"};})
135 23 4 $last_row >= 1 ? :
141 1 26 if $options
148 21 6 if ($table_name and $headers)
172 2 25 if ($ref and $ref eq 'CODE') { }
14 11 elsif ($ref and $ref eq 'ARRAY') { }
11 0 elsif (builtin::blessed($rows_maker) and $rows_maker->isa('DBI::st')) { }
0 0 elsif (builtin::blessed($rows_maker) and $rows_maker->isa('DBIx::DataModel::Statement')) { }
178 35 14 $i < @$rows_maker ? :
183 0 11 unless $rows_maker->{'Executed'}
188 0 0 unless "DBIx::DataModel"->VERSION >= 3
191 0 0 $row ? :
217 0 16661 unless my $last_col = @$row
229 1340 365874 unless defined $val and length $val
234 2 2 $1 ? :
2 10024 $val =~ /^=/u ? :
4 10026 $bool_regex && $val =~ /$bool_regex/u ? :
14 10030 $date_regex && $val =~ /$date_regex/u && is_valid_date(\%+, \$n_days) ? :
355830 10044 &looks_like_number($val) && !($val =~ /^\pL/u) ? :
254 1 26 if $table_name and $row_num == 1
277 0 4 ref $col ? :
279 4 0 if $attrs{'width'}
297 1 0 unless (@table_names)
330 0 21 unless &none(sub { $table_name eq $_; } , @{$$self{"tables"};})
365 0 2 if exists $self->{'defined_names'}{$name}
374 21 6 if $table_id
397 1 5 ref $target ? :
398 0 6 unless $write_result == 0
450 6 0 if (my $names = $self->{'defined_names'})
454 1 1 if $content->[1]
640 2 6210 $string =~ /^\s|\s$/u ? :
660 1 15 if $y < 1900
665 10 4 if $is_after_february_1900