Branch Coverage

blib/lib/MsOffice/Word/HTML/Writer.pm
Criterion Covered Total %
branch 25 52 48.0


line true false branch
53 0 4 if scalar @{$self->{'sections'};} == 1 and not $self->{'sections'}[0]{'content'}
73 0 4 unless $filename =~ /\.\w{1,5}$/
76 0 4 unless open my $fh, ">:raw:encoding($self->{'charset'}):crlf", $filename
93 0 0 if (@other) { }
0 0 elsif ($open2) { }
94 0 0 unless open $fh, $open1, $open2, @other
98 0 0 unless open $fh, $open1, $open2
102 0 0 unless open $fh, $open1
107 0 0 unless $name =~ /\.(html?|css|te?xt|rtf)$/i
133 0 4 unless $prevent_html_entity_encoding
140 2 0 if ($args) { }
185 16 0 if ($mime_type =~ /^text|xml$/) { }
190 8 8 unless $self->{'charset'} eq "utf-8"
230 8 8 if ($i > 1)
233 4 4 if $break and &looks_like_number($break)
282 4 4 unless my $xml_root = $self->{'WordDocument'}
293 4 4 ref $v ? :
8 4 $v ? :
314 32 0 unless my $val = $section->{'page'}{$prop}
322 64 0 unless my $val = $section->{'page'}{$prop}
327 64 0 unless $section->{$hf}
328 0 0 if $hf =~ /^first/
333 0 16 if $has_first_page
353 0 8 if $hf_content
369 64 0 unless $section->{$hf}
386 8 0 !$hf_divs ? :