Branch Coverage

blib/lib/MsOffice/Word/HTML/Writer.pm
Criterion Covered Total %
branch 22 52 42.3


line true false branch
53 0 4 if scalar @{$self->{'sections'};} == 1 and not $self->{'sections'}[0]{'content'}
73 0 0 unless $filename =~ /\.\w{1,5}$/
76 0 0 unless open my $fh, ">: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 4 0 if ($mime_type =~ /^text|xml$/) { }
190 2 2 unless $self->{'charset'} eq "utf-8"
230 4 2 if ($i > 1)
233 2 2 if $break and &looks_like_number($break)
281 0 2 unless my $xml_root = $self->{'WordDocument'}
292 2 2 ref $v ? :
4 2 $v ? :
313 12 0 unless my $val = $section->{'page'}{$prop}
321 24 0 unless my $val = $section->{'page'}{$prop}
326 24 0 unless $section->{$hf}
327 0 0 if $hf =~ /^first/
332 0 6 if $has_first_page
352 0 2 if $hf_content
368 24 0 unless $section->{$hf}
384 2 0 !$hf_divs ? :