Branch Coverage

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


line true false branch
128 0 0 unless defined $input
130 0 0 if print STDERR "$sayHelp"
0 0 if ($input =~ /^-h$/ or $input =~ /^--help$/)
132 0 0 if print STDERR "$sayVersion\n"
0 0 if ($input =~ /^-v$/ or $input =~ /^--version$/)
134 0 0 unless -r $input
137 0 0 if $inpPgNum == 0
142 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') { }
154 0 0 if ($pgPerOutputPage == 4) { }
157 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
165 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
175 0 0 if $_ % $pgPerOutputPage == 0
177 0 0 if $target_page > $inpPgNum
179 0 0 $_ % 4 > 1 ? :
183 0 0 if $numPagImposed == $inpPgNum
196 0 0 unless $Gpos
197 0 0 if $Gstream
210 0 0 unless $Gpos
212 0 0 unless my $pagenumber = $param->{'page'}
213 0 0 unless my $x = $param->{'x'}
214 0 0 unless my $y = $param->{'y'}
215 0 0 unless my $rotate = $param->{'rotate'}
222 0 0 unless defined $refNr
224 0 0 unless $refNr
249 0 0 if (%GpageXObject)
267 0 0 if exists $resources{$resourceDict}
270 0 0 if keys %resources < 10
305 0 0 unless ($Gparents[0])
314 0 0 if $Gcounts[0] > 9
322 0 0 unless $Gpos
324 0 0 if $Gstream
356 0 0 unless ($Gparents[$j])
387 0 0 defined $Gparents[0] ? :
389 0 0 if (defined $Gparents[$i])
393 0 0 if ($Gparents[$j])
424 0 0 if ($rotate)
443 0 0 if $buf =~ /Encrypt/
446 0 0 if ($buf =~ m[/Prev\s+\d]) { }
0 0 elsif ($buf =~ /\bstartxref\s+(\d+)/) { }
464 0 0 if $xref > (stat $GinFile)[7]
467 0 0 unless $tempRoot
481 0 0 if $readBytes =~ /^\s?(\d{10}) \d{5} n/
499 0 0 if ($readBytes =~ /^(xref$cr)/) { }
0 0 elsif ($readBytes =~ /^\d+\s+\d+\s+obj/i) { }
520 0 0 if $buf =~ m[\/Root\s+(\d+)\s+\d+\s+R]s
531 0 0 unless defined $GObjects{$index}
549 0 0 if ($objectContent =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/s) { }
556 0 0 if $objectContent =~ /^(\d+ \d+ obj\s*)/s
576 0 0 unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s
578 0 0 unless $objectContent =~ /MediaBox/s
581 0 0 unless defined $GmediaBox[2] and defined $GmediaBox[3]
588 0 0 if (alike($_, $Gpaper{'QuarterLetter'}))
589 0 0 if (alike($_, $Gpaper{'A6'}))
590 0 0 if (alike($_, $Gpaper{'HalfLetter'}))
591 0 0 if (alike($_, $Gpaper{'QuarterLegal'}))
592 0 0 if (alike($_, $Gpaper{'A5'}))
593 0 0 if (alike($_, $Gpaper{'HalfLegal'}))
594 0 0 if (alike($_, $Gpaper{'Letter'}))
595 0 0 if (alike($_, $Gpaper{'A4'}))
596 0 0 if (alike($_, $Gpaper{'Legal'}))
607 0 0 if $hxw > $namedHxw + $tolerance or $hxw < $namedHxw - $tolerance
622 0 0 unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s
664 0 0 unless $objectContent =~ m(/Kids\s*\[([^\]]+))s
675 0 0 if ($objectContent =~ m[/Count\s+(\d+)]s) { }
676 0 0 if ($pageAccumulator + $1 < $pagenumber) { }
679 0 0 if $objectContent =~ m(/Kids\s*\[([^\]]+))s
686 0 0 if $pageAccumulator == $pagenumber
700 0 0 unless (@GmediaBox)
702 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) { }
706 0 0 if $ref =~ /\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/s
712 0 0 if ($objContent =~ m[/Contents\s+(\d+)]s) { }
0 0 elsif ($objContent =~ m(/Contents\s*\[\s*(\d+)\s+\d+\s+R\s*\])s) { }
730 0 0 if ($objContent =~ m[^(.+/Resources)]s)
731 0 0 if $objContent =~ /Resources\s+(\d+\s+\d+\s+R)/s
738 0 0 if (/\S/s)
740 0 0 if /<
741 0 0 if />>/s
742 0 0 if $k == 0
755 0 0 unless eval { do { $objectContent = getObjectContent($GrootNr); 1 } }
756 0 0 if ($objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s)
758 0 0 if $objectContent =~ m[/Count\s+(\d+)]s
770 0 0 unless open $IN_FILE, "<", $GinFile
775 0 0 if $c ne "%PDF-"
779 0 0 unless $GrootNr > 0
812 0 0 if exists $known{$1}
832 0 0 if $readBytes =~ /^(\d+)\s+(\d+)/
840 0 0 if $Gpos
845 0 0 unless open $OUT_FILE, ">", $outputfile