Branch Coverage

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


line true false branch
116 0 0 unless defined $input
118 0 0 if print STDERR "$sayHelp"
0 0 if ($input =~ /^-h$/ or $input =~ /^--help$/)
120 0 0 if print STDERR "$sayVersion\n"
0 0 if ($input =~ /^-v$/ or $input =~ /^--version$/)
122 0 0 unless -r $input
125 0 0 if $num_pag_input == 0
130 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') { }
142 0 0 if ($pgPerOutputPage == 4) { }
144 0 0 if ($num_pag_input >= 13) { }
0 0 elsif ($num_pag_input >= 9) { }
0 0 elsif ($num_pag_input >= 5) { }
150 0 0 if ($num_pag_input >= 13) { }
0 0 elsif ($num_pag_input >= 9) { }
0 0 elsif ($num_pag_input >= 5) { }
159 0 0 if $_ % $pgPerOutputPage == 0
161 0 0 if $target_page > $num_pag_input
163 0 0 $_ % 4 > 1 ? :
167 0 0 if $numPagImposed == $num_pag_input
180 0 0 unless $Gpos
181 0 0 if defined $Gstream and length $Gstream > 0
194 0 0 unless $Gpos
196 0 0 unless my $pagenumber = $param->{'page'}
197 0 0 unless my $x = $param->{'x'}
198 0 0 unless my $y = $param->{'y'}
199 0 0 unless my $rotate = $param->{'rotate'}
204 0 0 unless defined $refNr
206 0 0 unless $refNr
208 0 0 defined $x && defined $y && defined $rotate ? :
235 0 0 if (%GpageXObject)
252 0 0 if exists $Gresources{$resourceDict}
255 0 0 if keys %Gresources < 10
291 0 0 unless ($Gparents[0])
300 0 0 if $Gcounts[0] > 9
308 0 0 unless $Gpos
310 0 0 if $Gstream
342 0 0 unless ($Gparents[$j])
373 0 0 defined $Gparents[0] ? :
375 0 0 if (defined $Gparents[$i])
379 0 0 if ($Gparents[$j])
411 0 0 if ($rotate)
430 0 0 if $buf =~ /Encrypt/
432 0 0 if ($buf =~ /\bstartxref\s+(\d+)/)
435 0 0 if $xref > (stat $GinFile)[7]
439 0 0 unless $tempRoot
457 0 0 if ($incoming_line =~ /^\s?(\d+) \d+ (\w)\s*/)
458 0 0 unless $2 ne "n" or exists $GoldObject{$i}
467 0 0 if $buf =~ m[\/Root\s+(\d+)\s{1,2}\d+\s{1,2}R]so
468 0 0 if $rooty
480 0 0 unless defined $GoldObject{$index}
500 0 0 if ($elObje =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/so) { }
507 0 0 if $elObje =~ /^(\d+ \d+ obj\s*)/so
526 0 0 unless $elObje =~ m[/Pages\s+(\d+)\s{1,2}\d+\s{1,2}R]so
531 0 0 unless defined $GformBox[2] and defined $GformBox[3]
536 0 0 if ($multi > 119780 and $multi < 121780)
540 0 0 if ($multi > 123443 and $multi < 125443)
544 0 0 if ($multi > 152720 and $multi < 154720)
548 0 0 if ($multi > 241352 and $multi < 243352)
552 0 0 if ($multi > 248305 and $multi < 250305)
556 0 0 if ($multi > 307448 and $multi < 309448)
560 0 0 if ($multi > 483704 and $multi < 485704)
563 0 0 if ($multi > 499395 and $multi < 501395)
566 0 0 if ($multi > 615896 and $multi < 617896)
584 0 0 unless $elObje =~ m[/Pages\s+(\d+)\s{1,2}\d+\s{1,2}R]so
627 0 0 unless $elObje =~ m(/Kids\s*\[([^\]]+))so
638 0 0 if ($elObje =~ m[/Count\s+(\d+)]so) { }
639 0 0 if ($pageAccumulator + $1 < $pagenumber) { }
642 0 0 if $elObje =~ m(/Kids\s*\[([^\]]+))so
649 0 0 if $pageAccumulator == $pagenumber
663 0 0 unless (@GformBox)
664 0 0 if ($obj =~ /MediaBox\s*\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/so)
669 0 0 if ($obj =~ m[/Contents\s+(\d+)]so) { }
0 0 elsif ($obj =~ m(/Contents\s*\[\s*(\d+)\s{1,2}\d+\s{1,2}R\s*\])so) { }
687 0 0 if ($obj =~ m[^(.+/Resources)]so)
688 0 0 if $obj =~ /Resources(\s+\d+\s{1,2}\d+\s{1,2}R)/so
695 0 0 if (/\S/s)
697 0 0 if /<
698 0 0 if />>/s
699 0 0 if $k == 0
713 0 0 unless open $IN_FILE, "<", $GinFile
724 0 0 unless eval { do { $elObje = getObject($Groot); 1 } }
725 0 0 if ($elObje =~ m[/Pages\s+(\d+)\s{1,2}\d+\s{1,2}R]so)
727 0 0 if $elObje =~ m[/Count\s+(\d+)]so
746 0 0 unless $_ =~ /^xref/
757 0 0 if exists $Gold{$1}
777 0 0 if ($incoming_line =~ /^(\d+)\s+(\d+)/)
789 0 0 if $Gpos
794 0 0 unless open $OUT_FILE, ">", $outputfile