Branch Coverage

blib/lib/MsOffice/Word/HTML/Writer.pm
Criterion Covered Total %
branch 27 58 46.5


line true false branch
32 3 3 unless exists $self->{'encode_fallback'} or $self->{'charset'} eq "utf-8"
54 0 4 if scalar @{$self->{'sections'};} == 1 and not $self->{'sections'}[0]{'content'}
73 0 2 unless $file_or_handle
76 2 0 if (&openhandle($file_or_handle)) { }
82 0 0 unless $file_or_handle =~ /\.\w{1,5}$/
84 0 0 unless open $fh, ">:raw", $file_or_handle
103 0 0 if (@other) { }
0 0 elsif ($open2) { }
104 0 0 unless open $fh, $open1, $open2, @other
108 0 0 unless open $fh, $open1, $open2
112 0 0 unless open $fh, $open1
117 0 0 unless $name =~ /\.(html?|css|te?xt|rtf)$/i
143 0 4 unless $prevent_html_entity_encoding
150 2 0 if ($args) { }
195 16 0 if ($mime_type =~ /^text|xml$/) { }
200 8 8 unless $self->{'charset'} eq "utf-8"
240 4 8 if ($i > 1)
243 2 2 if $break and &looks_like_number($break)
292 6 2 unless my $xml_root = $self->{'WordDocument'}
303 2 2 ref $v ? :
4 2 $v ? :
324 24 0 unless my $val = $section->{'page'}{$prop}
332 48 0 unless my $val = $section->{'page'}{$prop}
337 48 0 unless $section->{$hf}
338 0 0 if $hf =~ /^first/
343 0 12 if $has_first_page
363 0 8 if $hf_content
379 48 0 unless $section->{$hf}
396 8 0 !$hf_divs ? :