Branch Coverage

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


line true false branch
113 0 0 unless defined $input
115 0 0 if print STDERR "$sayHelp"
0 0 if ($input =~ /^-h$/ or $input =~ /^--help$/)
117 0 0 if print STDERR "$sayVersion\n"
0 0 if ($input =~ /^-v$/ or $input =~ /^--version$/)
119 0 0 unless -r $input
122 0 0 if $num_pag_input == 0
127 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') { }
139 0 0 if ($pgPerOutputPage == 4) { }
142 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
150 0 0 if ($_ >= 13) { }
0 0 elsif ($_ >= 9) { }
0 0 elsif ($_ >= 5) { }
160 0 0 if $_ % $pgPerOutputPage == 0
162 0 0 if $target_page > $num_pag_input
164 0 0 $_ % 4 > 1 ? :
168 0 0 if $numPagImposed == $num_pag_input
181 0 0 unless $Gpos
182 0 0 if $Gstream
195 0 0 unless $Gpos
197 0 0 unless my $pagenumber = $param->{'page'}
198 0 0 unless my $x = $param->{'x'}
199 0 0 unless my $y = $param->{'y'}
200 0 0 unless my $rotate = $param->{'rotate'}
207 0 0 unless defined $refNr
209 0 0 unless $refNr
234 0 0 if (%GpageXObject)
253 0 0 if exists $resources{$resourceDict}
256 0 0 if keys %resources < 10
292 0 0 unless ($Gparents[0])
301 0 0 if $Gcounts[0] > 9
309 0 0 unless $Gpos
311 0 0 if $Gstream
343 0 0 unless ($Gparents[$j])
374 0 0 defined $Gparents[0] ? :
376 0 0 if (defined $Gparents[$i])
380 0 0 if ($Gparents[$j])
411 0 0 if ($rotate)
430 0 0 if $buf =~ /Encrypt/
433 0 0 if ($buf =~ m[/Prev\s+\d]) { }
0 0 elsif ($buf =~ /\bstartxref\s+(\d+)/) { }
450 0 0 if $xref > (stat $GinFile)[7]
454 0 0 unless $tempRoot
472 0 0 if $readBytes =~ /^\s?(\d{10}) \d{5} n/
490 0 0 if $buf =~ m[\/Root\s+(\d+)\s+\d+\s+R]s
501 0 0 unless defined $GObjects{$index}
521 0 0 if ($elObje =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/s) { }
528 0 0 if $elObje =~ /^(\d+ \d+ obj\s*)/s
547 0 0 unless $elObje =~ m[/Pages\s+(\d+)\s+\d+\s+R]s
552 0 0 unless defined $GformBox[2] and defined $GformBox[3]
559 0 0 if ($_ > 119780 and $_ < 121780)
561 0 0 if ($_ > 123443 and $_ < 125443)
563 0 0 if ($_ > 152720 and $_ < 154720)
565 0 0 if ($_ > 241352 and $_ < 243352)
567 0 0 if ($_ > 248305 and $_ < 250305)
569 0 0 if ($_ > 307448 and $_ < 309448)
571 0 0 if ($_ > 483704 and $_ < 485704)
573 0 0 if ($_ > 499395 and $_ < 501395)
575 0 0 if ($_ > 615896 and $_ < 617896)
591 0 0 unless $elObje =~ m[/Pages\s+(\d+)\s+\d+\s+R]s
635 0 0 unless $elObje =~ m(/Kids\s*\[([^\]]+))s
646 0 0 if ($elObje =~ m[/Count\s+(\d+)]s) { }
647 0 0 if ($pageAccumulator + $1 < $pagenumber) { }
650 0 0 if $elObje =~ m(/Kids\s*\[([^\]]+))s
657 0 0 if $pageAccumulator == $pagenumber
671 0 0 unless (@GformBox)
672 0 0 if ($obj =~ /MediaBox\s*\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/s)
677 0 0 if ($obj =~ m[/Contents\s+(\d+)]s) { }
0 0 elsif ($obj =~ m(/Contents\s*\[\s*(\d+)\s+\d+\s+R\s*\])s) { }
695 0 0 if ($obj =~ m[^(.+/Resources)]s)
696 0 0 if $obj =~ /Resources(\s+\d+\s+\d+\s+R)/s
703 0 0 if (/\S/s)
705 0 0 if /<
706 0 0 if />>/s
707 0 0 if $k == 0
721 0 0 unless open $IN_FILE, "<", $GinFile
726 0 0 if $c ne "%PDF-"
730 0 0 unless $Groot > 0
736 0 0 unless eval { do { $elObje = getObject($Groot); 1 } }
738 0 0 if ($elObje =~ m[/Pages\s+(\d+)\s+\d+\s+R]s)
740 0 0 if $elObje =~ m[/Count\s+(\d+)]s
772 0 0 if exists $known{$1}
792 0 0 if $readBytes =~ /^(\d+)\s+(\d+)/
801 0 0 if $Gpos
806 0 0 unless open $OUT_FILE, ">", $outputfile