Branch Coverage

blib/lib/CtrlO/PDF.pm
Criterion Covered Total %
branch 19 60 31.6


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
671 0 1 if $self->_y - $self->_line_height($size) < $self->margin_bottom
683 0 1 defined $options{'top_padding'} ? :
686 0 1 if ($self->is_new_page) { }
716 0 0 unless grep $_->{'text'}, @$unused
738 0 0 if $self->_y < 60 + $self->margin_bottom
790 0 0 if $type->{'error'}
821 0 0 if $height > $self->_y
823 0 0 $alignment eq 'right' ? :
0 0 $alignment eq 'left' ? :
845 0 1 if ($self->logo)
854 0 1 if ($logo)
865 0 1 if (my $header = $self->header)
872 1 0 if (my $footer = $self->footer)