Branch Coverage

blib/lib/PDF/Cropmarks.pm
Criterion Covered Total %
branch 77 94 81.9


line true false branch
213 10 0 if (my $signature = $self->signature)
215 2 8 if ($signature == 1)
218 0 10 if $signature % 4
225 14 130 if ($page_in_sig == 1)
231 72 72 if ($page_in_sig % 2)
232 22 50 if ($page_in_sig > $half + 1) { }
36 14 elsif ($page_in_sig < $half) { }
265 13 5 if (my $signature = $self->signature) { }
266 3 10 if ($signature == 1) { }
1 9 elsif ($signature % 4) { }
270 0 3 if (my $modulo = $total_input_pages % 4)
280 6 3 if (my $modulo = $total_input_pages % $signature)
306 47 0 if ($string =~ /$re/six) { }
365 0 18 unless copy($self->input, $name)
380 18 0 if ($input) { }
384 0 0 unless $input
409 9 2 if (my $dimensions = $sizes{lc $self->paper}) { }
2 0 elsif ($paper =~ /\A\s* $measure_re \s*:\s* $measure_re \s*\z/six) { }
432 0 11 if $self->_is_closed
434 0 11 if $needed < 0
436 5 6 if ($needed)
438 2 3 if ($self->cover)
445 2 3 if ($last)
461 0 11 unless move($self->out_pdf, $self->output)
470 32 586 unless $float
471 28 558 if ($float < 0.001 and $float > -0.001)
490 125 16 defined $src_page_number ? :
493 0 141 if $llx + $lly
495 125 16 $in_page ? :
497 0 141 if $inllx + $inlly
508 0 141 if (not $self->bottom || $self->top) { }
28 113 elsif (not $self->bottom) { }
24 89 elsif (not $self->top) { }
520 0 141 if (not $self->inner || $self->outer) { }
56 85 elsif (not $self->inner) { }
28 57 elsif (not $self->outer) { }
525 22 34 if ($self->twoside and not $page_number % 2) { }
536 8 20 if ($self->twoside and not $page_number % 2) { }
547 92 49 if ($self->signature and $self->twoside)
550 0 92 unless defined $paper_thickness
553 46 46 if ($page_number % 2) { }
564 125 16 if ($in_page)
593 113 28 if ($bottom_middle_mark)
612 99 42 if ($right_middle_mark)
633 117 24 if ($top_middle_mark)
653 99 42 if ($left_middle_mark)
720 11 18 if ($self->_is_closed) { }