Branch Coverage

blib/lib/CtrlO/PDF.pm
Criterion Covered Total %
branch 20 68 29.4


line true false branch
125 1 0 if (lc($self->PDFlib) =~ /b/) { }
131 0 1 if (not defined $rc) { }
137 0 0 if (not defined $rc) { }
153 0 0 if (not defined $rc) { }
159 0 0 if (not defined $rc) { }
276 1 0 $self->orientation eq 'portrait' ? :
302 1 0 $self->orientation eq 'portrait' ? :
332 0 1 if $self->header
333 0 1 if ($self->logo)
466 0 0 unless $self->_logo_info
476 0 0 unless $self->_logo_info
486 0 0 unless $self->logo
523 0 0 unless $y and $y =~ /^[0-9]+(\.[0-9]+)?$/
537 0 0 unless $y and $y =~ /^[0-9]+(\.[0-9]+)?$/
601 0 2 if $self->_y < 150
604 0 2 if ($options{'topmargin'}) { }
1 1 elsif ($self->is_new_page) { }
606 0 0 if $options{'topmargin'}
649 0 2 defined $options{'bottommargin'} ? :
684 0 1 if ($self->is_new_page) { }
728 1 0 if ($tb->y >= $tb->y - $tb->h + 15)
734 0 1 unless $string
743 0 1 if ($string_before eq $string)
747 0 0 unless $string =~ /\s/
759 1 0 unless $string
806 0 0 if $self->_y < 60 + $self->margin_bottom
858 0 0 if $type->{'error'}
889 0 0 if $height > $self->_y
891 0 0 $alignment eq 'right' ? :
0 0 $alignment eq 'left' ? :
913 0 1 if ($self->logo)
922 0 1 if ($logo)
933 0 1 if (my $header = $self->header)
940 1 0 if (my $footer = $self->footer)