Branch Coverage

blib/lib/Excel/Writer/XLSX/Package/Packager.pm
Criterion Covered Total %
branch 70 72 97.2


line true false branch
107 20 1021 if ($worksheet->{'_is_chartsheet'}) { }
188 20 1021 if $worksheet->{'_is_chartsheet'}
211 1021 20 unless $worksheet->{'_is_chartsheet'}
235 507 385 unless @{$self->{'_workbook'}{'_charts'};}
261 407 485 unless $self->{'_drawing_count'}
289 961 22 unless $worksheet->{'_has_vml'} or $worksheet->{'_has_header_vml'}
294 58 22 if ($worksheet->{'_has_vml'})
308 24 56 if ($worksheet->{'_has_header_vml'})
340 997 44 unless $worksheet->{'_has_comments'}
369 645 247 unless $total > 0
405 20 1021 if $worksheet->{'_is_chartsheet'}
411 1021 20 unless $worksheet->{'_is_chartsheet'}
416 18 874 if (my $range_count = scalar @{$self->{'_named_ranges'};})
466 891 1 unless $self->{'_workbook'}{'_has_metadata'}
488 888 4 unless @$properties
515 20 1021 if ($worksheet->{'_is_chartsheet'}) { }
531 63 829 if ($self->{'_num_vml_files'})
544 247 645 if ($self->{'_workbook'}{'_str_total'})
549 6 886 if ($self->{'_workbook'}{'_vba_project'})
554 4 888 if (@{$self->{'_workbook'}{'_custom_properties'};})
559 1 891 if ($self->{'_workbook'}{'_has_metadata'})
644 1013 28 unless @table_props
688 4 888 if (@{$self->{'_workbook'}{'_custom_properties'};})
717 20 1021 if ($worksheet->{'_is_chartsheet'}) { }
731 247 645 if ($self->{'_workbook'}{'_str_total'})
737 6 886 if ($self->{'_workbook'}{'_vba_project'})
742 1 891 if ($self->{'_workbook'}{'_has_metadata'})
766 20 1021 if $worksheet->{'_is_chartsheet'}
779 377 644 unless @external_links
815 1021 20 unless $worksheet->{'_is_chartsheet'}
821 0 20 unless @external_links
857 523 518 if (@{$worksheet->{'_drawing_links'};} or $worksheet->{'_has_shapes'})
861 528 513 unless @{$worksheet->{'_drawing_links'};}
953 886 6 unless $vba_project
971 8531 7536 if -e $dir
975 0 7536 if (not $ret)