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
145 0 0 if print STDERR "$sayHelp"
0 0 if ($input =~ /^-h$/ or $input =~ /^--help$/)
147 0 0 if print STDERR "$sayVersion\n"
0 0 if ($input =~ /^-v$/ or $input =~ /^--version$/)
149 0 0 unless -r $input
152 0 0 if $inpPgNum == 0
157 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') { }
171 0 0 if ($pgPerOutputPage == 4) { }
174 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
182 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
192 0 0 if $_ % $pgPerOutputPage == 0
194 0 0 if $target_page > $inpPgNum
196 0 0 $_ % 4 > 1 ? :
200 0 0 if $numPagImposed == $inpPgNum
213 0 0 unless $Gpos
214 0 0 if $Gstream
227 0 0 unless $Gpos
229 0 0 unless my $pagenumber = $param->{'page'}
230 0 0 unless my $x = $param->{'x'}
231 0 0 unless my $y = $param->{'y'}
232 0 0 unless my $rotate = $param->{'rotate'}
240 0 0 unless defined $refNr
242 0 0 unless $refNr
282 0 0 if exists $resources{$resourceDict}
285 0 0 if keys %resources < 10
320 0 0 unless ($Gparents[0])
329 0 0 if $Gcounts[0] > 9
337 0 0 unless $Gpos
339 0 0 if $Gstream
371 0 0 unless ($Gparents[$j])
402 0 0 defined $Gparents[0] ? :
405 0 0 if (defined $Gparents[$i])
409 0 0 if ($Gparents[$j])
440 0 0 if ($rotate)
459 0 0 if $buf =~ /Encrypt/
462 0 0 if ($buf =~ m[/Prev\s+\d]) { }
0 0 elsif ($buf =~ /\bstartxref\s+(\d+)/) { }
480 0 0 if $xref > (stat $GinFile)[7]
483 0 0 unless $tempRoot
497 0 0 if $readBytes =~ /^\s?(\d{10}) \d{5} n/
515 0 0 if ($readBytes =~ /^(xref$cr)/) { }
0 0 elsif ($readBytes =~ /^\d+\s+\d+\s+obj/i) { }
536 0 0 if $buf =~ m[\/Root\s+(\d+)\s+\d+\s+R]s
547 0 0 unless defined $GObjects{$index}
565 0 0 if ($objectContent =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/s) { }
572 0 0 if $objectContent =~ /^(\d+ \d+ obj)\b/s
592 0 0 unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s
594 0 0 unless $objectContent =~ /MediaBox/s
597 0 0 unless defined $GmediaBox[2] and defined $GmediaBox[3]
604 0 0 if (alike($_, $Gpaper{'QuarterLetter'}))
605 0 0 if (alike($_, $Gpaper{'A6'}))
606 0 0 if (alike($_, $Gpaper{'HalfLetter'}))
607 0 0 if (alike($_, $Gpaper{'QuarterLegal'}))
608 0 0 if (alike($_, $Gpaper{'A5'}))
609 0 0 if (alike($_, $Gpaper{'HalfLegal'}))
610 0 0 if (alike($_, $Gpaper{'Letter'}))
611 0 0 if (alike($_, $Gpaper{'A4'}))
612 0 0 if (alike($_, $Gpaper{'Legal'}))
613 0 0 if (alike($_, $Gpaper{'Tabloid'}))
614 0 0 if (alike($_, $Gpaper{'A3'}))
625 0 0 if $hxw > $namedHxw + $tolerance or $hxw < $namedHxw - $tolerance
634 0 0 if $pagenumber > getInputPageCount()
642 0 0 unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s
679 0 0 unless $objectContent =~ m(/Kids\s*\[([^\]]+))s
688 0 0 unless @pageObjBackup
691 0 0 if ($objectContent =~ m[/Count\s+(\d+)]s) { }
692 0 0 if ($pageAccumulator + $1 < $pagenumber) { }
695 0 0 if $objectContent =~ m(/Kids\s*\[([^\]]+))s
702 0 0 if $pageAccumulator == $pagenumber
716 0 0 unless (@GmediaBox)
718 0 0 if (/MediaBox\s*\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/s) { }
0 0 elsif (/MediaBox\s*(\d+)\s+\d+\s+R\b/s) { }
722 0 0 if $ref =~ /\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/s
728 0 0 if ($objContent =~ m[/Contents\s+(\d+)]s) { }
0 0 elsif ($objContent =~ m(/Contents\s*\[\s*(\d+)\s+\d+\s+R\s*\])s) { }
746 0 0 if ($objContent =~ m[^(.+/Resources)]s)
747 0 0 if $objContent =~ /Resources\s+(\d+\s+\d+\s+R)/s
754 0 0 if (/\S/s)
756 0 0 if /<
757 0 0 if />>/s
758 0 0 if $k == 0
770 0 0 if defined $maxPages
773 0 0 unless eval { do { $objectContent = getContentOfObjectNr($GrootNr); 1 } }
774 0 0 if ($objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s)
776 0 0 if $objectContent =~ m[/Count\s+(\d+)]s
788 0 0 unless open $IN_FILE, "<", $GinFile
793 0 0 if $c ne "%PDF-"
797 0 0 unless $GrootNr > 0
830 0 0 if exists $known{$1}
850 0 0 if $readBytes =~ /^(\d+)\s+(\d+)/
858 0 0 if $Gpos
863 0 0 unless open $OUT_FILE, ">", $outputfile