Branch Coverage

blib/lib/PDF/Imposition/Schema.pm
Criterion Covered Total %
branch 44 64 68.7


line true false branch
125 25 450 unless ($total_pages)
128 0 470 unless $sig
129 0 470 unless my $ppsheet = $self->pages_per_sheet
131 17 453 if ($sig =~ /^[0-9]+$/s)
132 0 17 if $sig % $ppsheet
136 453 0 if ($sig =~ /^([0-9]+)?-([0-9]+)?$/s) { }
141 0 453 unless $max > $min
142 0 453 if $min % $ppsheet
143 0 453 if $max % $ppsheet
151 0 453 if $roundedpages % $ppsheet
152 90 363 if ($roundedpages <= $min)
153 40 50 wantarray ? :
156 340 23 if ($roundedpages > $max)
164 360 3 wantarray ? :
169 0 707 unless my $ppsheet = $self->pages_per_sheet
170 0 707 if $num % $ppsheet
171 0 707 unless $num
177 707 4821 if ($num % $i == 0)
216 0 61 if $x + $y
217 0 61 unless $w and $h
263 89 5 if ($self->file)
264 0 89 unless -f $self->file
269 0 89 unless copy($self->file, $tmpfile)
274 0 89 if ($@) { }
296 62 0 if ($self->file)
297 1 61 unless -f $self->file
322 0 809 if (not defined $page or $page <= 0 or $page > $self->total_pages)
358 41 26 unless ($out)
360 0 41 unless $suffix
401 25 104 if ($signature) { }
438 0 114 if ($self->_out_pdf_object_is_open)
442 28 86 if ($self->_in_pdf_object_is_open)