Branch Coverage

blib/lib/App/paperback.pm
Criterion Covered Total %
branch 0 208 0.0


line true false branch
143 0 0 unless defined $input
144 0 0 if print STDERR "$sayHelp"
0 0 if ($input =~ /^-h$/ or $input =~ /^--help$/)
146 0 0 if print STDERR "$sayVersion\n"
0 0 if ($input =~ /^-v$/ or $input =~ /^--version$/)
152 0 0 if ($_ eq 'A6') { }
0 0 elsif ($_ eq 'A5') { }
0 0 elsif ($_ eq 'QT') { }
0 0 elsif ($_ eq 'QG') { }
0 0 elsif ($_ eq 'HT') { }
0 0 elsif ($_ eq 'HG') { }
0 0 elsif ($_ eq 'LT') { }
0 0 elsif ($_ eq 'A4') { }
166 0 0 if ($pgPerOutputPage == 4) { }
169 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
177 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
187 0 0 if $_ % $pgPerOutputPage == 0
189 0 0 if $target_page > $inpPgNum
191 0 0 $_ % 4 > 1 ? :
195 0 0 if $numPagImposed == $inpPgNum
208 0 0 unless $Gpos
209 0 0 if $Gstream
222 0 0 unless $Gpos
224 0 0 unless my $pagenumber = $param->{'page'}
225 0 0 unless my $x = $param->{'x'}
226 0 0 unless my $y = $param->{'y'}
227 0 0 unless my $rotate = $param->{'rotate'}
235 0 0 unless defined $refNr
237 0 0 unless $refNr
277 0 0 if exists $resources{$resourceDict}
280 0 0 if keys %resources < 10
315 0 0 unless ($Gparents[0])
324 0 0 if $Gcounts[0] > 9
332 0 0 unless $Gpos
334 0 0 if $Gstream
366 0 0 unless ($Gparents[$j])
397 0 0 defined $Gparents[0] ? :
400 0 0 if (defined $Gparents[$i])
404 0 0 if ($Gparents[$j])
435 0 0 if ($rotate)
454 0 0 if $buf =~ /Encrypt/
457 0 0 if ($buf =~ m[/Prev\s+\d]) { }
0 0 elsif ($buf =~ /\bstartxref\s+(\d+)/) { }
475 0 0 if $xref > getInputFileWeight()
478 0 0 unless $tempRoot
492 0 0 if $readBytes =~ /^\s?(\d{10}) \d{5} n/
510 0 0 if ($readBytes =~ /^(xref$cr)/) { }
0 0 elsif ($readBytes =~ /^\d+\s+\d+\s+obj/) { }
531 0 0 if $buf =~ m[\/Root\s+(\d+)\s+\d+\s+R]
542 0 0 unless defined $GObjects{$index}
560 0 0 if ($objectContent =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/s) { }
567 0 0 if $objectContent =~ /^(\d+ \d+ obj)\b/
583 0 0 unless getPageSizeAndSetMediabox()
591 0 0 if (alike($_, $Gpaper{'QuarterLetter'}))
592 0 0 if (alike($_, $Gpaper{'A6'}))
593 0 0 if (alike($_, $Gpaper{'HalfLetter'}))
594 0 0 if (alike($_, $Gpaper{'QuarterLegal'}))
595 0 0 if (alike($_, $Gpaper{'A5'}))
596 0 0 if (alike($_, $Gpaper{'HalfLegal'}))
597 0 0 if (alike($_, $Gpaper{'Letter'}))
598 0 0 if (alike($_, $Gpaper{'A4'}))
599 0 0 if (alike($_, $Gpaper{'Legal'}))
600 0 0 if (alike($_, $Gpaper{'Tabloid'}))
601 0 0 if (alike($_, $Gpaper{'A3'}))
612 0 0 if $hxw > $namedHxw + $tolerance or $hxw < $namedHxw - $tolerance
621 0 0 if $pagenumber > getInputPageCount()
629 0 0 unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]
666 0 0 unless $objectContent =~ m(/Kids\s*\[([^\]]+))
675 0 0 unless @pageObjBackup
678 0 0 if ($objectContent =~ m[/Count\s+(\d+)]) { }
679 0 0 if ($pageAccumulator + $1 < $pagenumber) { }
682 0 0 if $objectContent =~ m(/Kids\s*\[([^\]]+))
689 0 0 if $pageAccumulator == $pagenumber
703 0 0 unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]
705 0 0 unless $objectContent =~ /MediaBox/
709 0 0 unless (@GmediaBox)
711 0 0 if (/MediaBox\s*\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/) { }
0 0 elsif (/MediaBox\s*(\d+)\s+\d+\s+R\b/) { }
715 0 0 if ($ref =~ /\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/) { }
735 0 0 if ($objContent =~ m[/Contents\s+(\d+)]) { }
0 0 elsif ($objContent =~ m(/Contents\s*\[\s*(\d+)\s+\d+\s+R\s*\])) { }
751 0 0 if $objContent =~ /Resources\s+(\d+\s+\d+\s+R)/
752 0 0 if ($objContent =~ m[^.+/Resources]s)
759 0 0 if (/\S/)
761 0 0 if /<
762 0 0 if />>/
763 0 0 if $k == 0
775 0 0 if defined $maxPages
778 0 0 unless eval { do { $objectContent = getContentOfObjectNr($GrootNr); 1 } }
779 0 0 if ($objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R])
781 0 0 if $objectContent =~ m[/Count\s+(\d+)]
792 0 0 unless getInputFileWeight()
794 0 0 unless open $IN_FILE, "<", $GinFile
798 0 0 if $c ne "%PDF-"
802 0 0 unless $GrootNr > 0
815 0 0 unless $known
846 0 0 if exists $known{$1}
866 0 0 if $readBytes =~ /^(\d+)\s+(\d+)/
874 0 0 if $Gpos
879 0 0 unless open $OUT_FILE, ">", $outputfile