Condition Coverage

blib/lib/MsOffice/Word/Surgeon/PackagePart.pm
Criterion Covered Total %
condition 36 54 66.6


and 3 conditions

line !l l&&!r l&&r condition
306 396 0 702 not $run->xml_before and @new_runs
396 648 54 not $run->xml_before and @new_runs and $new_runs[-1]->props eq $run->props
651 0 6 138 $last_field and $prev_field
6 92 46 $last_field and $prev_field and $last_field->status eq "end"
756 42 0 0 $is_outside_para && $xml
794 0 12 30 $self->{'ignore'} and $bookmark_name =~ /$self->{'ignore'}/u

or 2 conditions

line l !l condition
89 2713 14 $run_contents //= ""
99 5324 48 $_ //= ""
107 5324 48 $_ //= ""
127 396 0 $attrs{$_} or &croak("missing attribute '${_}' in <Relationship> node")
337 10 2 $replacement_args{'cleanup_XML'} //= 1
394 79 0 delete $bkmk_args{'attrs'} // ""
535 434 142 $node{$_} //= ""
694 0 0 @image_nums // 0
775 1 0 $self{'color'} //= "yellow"
776 0 1 $self{'props'} //= "<w:highlight w:val=\"%s\"/>"
777 0 1 $self{'start'} //= "<%s>"
778 0 1 $self{'end'} //= "</%s>"

or 3 conditions

line l !l&&r !l&&!r condition
98 140 2546 2621 $xml_before_text or length $txt_contents
106 1002 1684 41 $xml_before_run or @texts
156 0 0 0 $attrs{'title'} || $attrs{'descr'}
442 18 0 0 $should_erase_markup or $should_erase_range