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 63 if $x + $y
217 0 63 unless $w and $h
263 91 5 if ($self->file)
264 0 91 unless -f $self->file
269 0 91 unless copy($self->file, $tmpfile)
274 0 91 if ($@) { }
296 64 0 if ($self->file)
297 1 63 unless -f $self->file
322 0 835 if (not defined $page or $page <= 0 or $page > $self->total_pages)
358 43 26 unless ($out)
360 0 43 unless $suffix
405 25 106 if ($signature) { }
442 0 118 if ($self->_out_pdf_object_is_open)
446 28 90 if ($self->_in_pdf_object_is_open)