Branch Coverage

blib/lib/CtrlO/PDF.pm
Criterion Covered Total %
branch 18 58 31.0


line true false branch
128 0 1 if $self->PDFlib and $self->PDFlib =~ /api2/i
135 0 1 unless $rc
262 1 0 $self->orientation eq 'portrait' ? :
288 1 0 $self->orientation eq 'portrait' ? :
318 0 1 if $self->header
319 0 1 if ($self->logo)
452 0 0 unless $self->_logo_info
462 0 0 unless $self->_logo_info
472 0 0 unless $self->logo
509 0 0 unless $y and $y =~ /^-?[0-9]+(\.[0-9]+)?$/
523 0 0 unless $y and $y =~ /^-?[0-9]+(\.[0-9]+)?$/
587 0 2 if $self->_y < 150
590 0 2 if ($options{'topmargin'}) { }
1 1 elsif ($self->is_new_page) { }
592 0 0 if $options{'topmargin'}
618 0 2 defined $options{'bottommargin'} ? :
661 0 1 unless $string
679 0 1 defined $options{'top_padding'} ? :
682 0 1 if ($self->is_new_page) { }
712 0 0 unless grep $_->{'text'}, @$unused
734 0 0 if $self->_y < 60 + $self->margin_bottom
786 0 0 if $type->{'error'}
817 0 0 if $height > $self->_y
819 0 0 $alignment eq 'right' ? :
0 0 $alignment eq 'left' ? :
841 0 1 if ($self->logo)
850 0 1 if ($logo)
861 0 1 if (my $header = $self->header)
868 1 0 if (my $footer = $self->footer)