blib/lib/MsOffice/Word/Surgeon/PackagePart.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 40 | 60.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
101 | 85 | 3549 | 0 | not $xml_before_text and !defined($txt_contents) || $txt_contents eq '' |
347 | 178 | 0 | 615 | not $run->xml_before and @new_runs |
178 | 343 | 272 | not $run->xml_before and @new_runs and $new_runs[-1]->props eq $run->props |
line | l | !l | condition |
---|---|---|---|
92 | 1992 | 12 | $run_contents //= "" |
102 | 1840 | 0 | $xml_before_text // "" |
1802 | 38 | $txt_contents // "" | |
110 | 1852 | 0 | $xml_before_run // "" |
1797 | 55 | $props // "" | |
131 | 63 | 0 | $attrs{$_} or croak("missing attribute '${_}' in <Relationship> node") |
405 | 10 | 1 | $replacement_args{'cleanup_XML'} //= 1 |
454 | 0 | 0 | @image_nums // 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
101 | 1794 | 0 | 1755 | !defined($txt_contents) || $txt_contents eq '' |
109 | 547 | 1305 | 152 | $xml_before_run or @texts |
160 | 0 | 0 | 0 | $attrs{'title'} || $attrs{'descr'} |
210 | 0 | 0 | 0 | $self->images->{$title} || ($title =~ /^\d+$/u ? "word/media/image$title.png" : die("couldn't find image '${title}'")) |
508 | 69 | 0 | 0 | $2 // $3 |