Branch Coverage

blib/lib/MsOffice/Word/Surgeon/PackagePart.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
100 2824 2749 if not $xml_before_text and !defined($txt_contents) || $txt_contents eq ''
108 159 1978 unless $xml_before_run or @texts
145 0 0 if $_
153 0 0 if ($drawing =~ m[<wp:docPr \s+ (.*?) />
159 0 0 unless my $img_id = $attrs{'title'} || $attrs{'descr'}
161 0 0 unless $image{$img_id} = "word/$rel_image{$rId}"
270 0 105 unless my $regex = $noise_reduction_regexes{$regex_name}
279 45 105 ref $_ eq 'Regexp' ? :
301 2 16 $should_erase_contents{$bookmark_name} ? :
336 807 1037 if $args{'no_caps'}
339 277 1567 if (not $run->xml_before and @new_runs and $new_runs[-1]->props eq $run->props) { }
388 8 3 unless $keep_xml_as_is
398 11 0 unless $dont_overwrite_contents
408 0 0 if $self->{'contents_has_changed'}
415 0 0 unless my $member_name = $self->images->{$image_title}
448 0 0 unless ($ct =~ /Extension="png"/u)