Branch Coverage

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


line true false branch
143 0 0 unless defined $input
144 0 0 if ($input =~ /^-h$/ or $input =~ /^--help$/)
146 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) { }
168 0 0 $inpPgNum >= 5 ? :
0 0 $inpPgNum >= 9 ? :
0 0 $inpPgNum >= 13 ? :
173 0 0 $inpPgNum >= 5 ? :
0 0 $inpPgNum >= 9 ? :
0 0 $inpPgNum >= 13 ? :
181 0 0 if $_ % $pgPerOutputPage == 0
183 0 0 if $target_page > $inpPgNum
185 0 0 $_ % 4 > 1 ? :
189 0 0 if $numPagImposed == $inpPgNum
202 0 0 unless $Gpos
203 0 0 if $Gstream
216 0 0 unless $Gpos
218 0 0 unless my $pagenumber = $param->{'page'}
219 0 0 unless my $x = $param->{'x'}
220 0 0 unless my $y = $param->{'y'}
221 0 0 unless my $rotate = $param->{'rotate'}
229 0 0 unless defined $refNr
231 0 0 unless $refNr
271 0 0 if exists $resources{$resourceDict}
274 0 0 if keys %resources < 10
309 0 0 unless $Gparents[0]
316 0 0 if $Gcounts[0] > 9
324 0 0 unless $Gpos
326 0 0 if $Gstream
358 0 0 unless $Gparents[$j]
386 0 0 defined $Gparents[0] ? :
388 0 0 if (defined $Gparents[$i])
392 0 0 if ($Gparents[$j])
423 0 0 unless $rotate
442 0 0 if $buf =~ /Encrypt/
445 0 0 if ($buf =~ m[/Prev\s+\d]) { }
0 0 elsif ($buf =~ /\bstartxref\s+(\d+)/) { }
462 0 0 if $xref > &getInputFileWeight
465 0 0 unless $tempRoot
479 0 0 if $readBytes =~ /^\s?(\d{10}) \d{5} n/
497 0 0 if ($readBytes =~ /^(xref$cr)/) { }
0 0 elsif ($readBytes =~ /^\d+\s+\d+\s+obj/) { }
518 0 0 if $buf =~ m[\/Root\s+(\d+)\s+\d+\s+R]
529 0 0 unless defined $GObjects{$index}
546 0 0 if ($objContent =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/s) { }
553 0 0 if $objContent =~ /^(\d+ \d+ obj)\b/
576 0 0 unless &getPageSizeAndSetMediabox
583 0 0 if (alike($_, $Gpaper{'QuarterLetter'}))
584 0 0 if (alike($_, $Gpaper{'A6'}))
585 0 0 if (alike($_, $Gpaper{'HalfLetter'}))
586 0 0 if (alike($_, $Gpaper{'QuarterLegal'}))
587 0 0 if (alike($_, $Gpaper{'A5'}))
588 0 0 if (alike($_, $Gpaper{'HalfLegal'}))
589 0 0 if (alike($_, $Gpaper{'Letter'}))
590 0 0 if (alike($_, $Gpaper{'A4'}))
591 0 0 if (alike($_, $Gpaper{'Legal'}))
592 0 0 if (alike($_, $Gpaper{'Tabloid'}))
593 0 0 if (alike($_, $Gpaper{'A3'}))
604 0 0 if $num1 > $num2 + $tolerance or $num1 < $num2 - $tolerance
613 0 0 if $pagenumber > &getInputPageCount
651 0 0 unless $GpagesObjContent =~ m(/Kids\s*\[([^\]]+))
660 0 0 unless @pageObjBackup
663 0 0 if ($objContent =~ m[/Count\s+(\d+)]) { }
664 0 0 if ($pageAccumulator + $1 < $pagenumber) { }
667 0 0 if $objContent =~ m(/Kids\s*\[([^\]]+))
674 0 0 if $pageAccumulator == $pagenumber
685 0 0 if ($GpagesObjContent =~ /MediaBox/) { }
689 0 0 unless $objContent =~ /MediaBox/
693 0 0 unless (@GmediaBox)
695 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/) { }
699 0 0 if ($ref =~ /\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/) { }
717 0 0 if $objContent =~ m[/Contents\s+(\d+)] or $objContent =~ m(/Contents\s*\[\s*(\d+)\s+\d+\s+R\s*\])
731 0 0 if $objContent =~ /Resources\s+(\d+\s+\d+\s+R)/
732 0 0 if ($objContent =~ m[^.+/Resources]s)
739 0 0 if (/\S/)
741 0 0 if /<
742 0 0 if />>/
743 0 0 if $k == 0
755 0 0 if defined $maxPages
758 0 0 unless eval { do { $objContent = getContentOfObjectNr($GrootNr); 1 } }
759 0 0 if ($objContent =~ m[/Pages\s+(\d+)\s+\d+\s+R])
761 0 0 if $objContent =~ m[/Count\s+(\d+)]
772 0 0 unless &getInputFileWeight
774 0 0 unless open $IN_FILE, "<", $GinFile
778 0 0 if $c ne "%PDF-"
782 0 0 unless $GrootNr > 0
785 0 0 unless $rootObjContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]
801 0 0 if $known
839 0 0 if exists $known{$1}
856 0 0 if $readBytes =~ /^(\d+)\s+(\d+)/
864 0 0 if $Gpos
869 0 0 unless open $OUT_FILE, ">", $outputfile