Branch Coverage

blib/lib/HTML/FormatPS.pm
Criterion Covered Total %
branch 52 84 61.9


line true false branch
140 0 2 unless exists $param{$key}
143 0 2 if ($key eq 'family')
146 0 0 unless exists $FontFamilies{$val}
150 0 2 if ($key eq 'papersize')
151 0 0 unless $self->papersize($val)
167 0 0 unless $PaperSizes{$val}
168 0 0 unless defined $width
180 0 638 if $size > 8
181 0 638 if $size < 0
197 637 1 unless ($plain_with_size)
198 8 629 if $self->{'bold'}
199 0 637 if $self->{'italic'} or $self->{'underline'}
200 1 636 if $self->{'teletype'}
205 631 7 if ($self->{'currentfont'} eq $font_with_size)
240 607 7 if ($self->{'psfontid'} eq $fontid) { }
311 1 0 if $self->{'out'}
330 2 3 if $seenfont{$full}++
421 1 0 unless $self->{'no_trailer'}
424 1 0 unless $self->{'no_prolog'}
470 11 306 if (defined $self->{'vspace'}) { }
472 10 1 if ($self->{'out'}) { }
475 0 10 if ($self->{'ypos'} < $self->{'bm'}) { }
503 13 24 unless length $str
521 7 24 unless (length $line)
529 0 24 if ($self->{'ypos'} < $self->{'bm'})
542 0 0 if ($font)
551 0 24 if ($self->{'center'})
564 2 22 if ($self->{'bullet'})
570 2 0 if ($bullet eq '*') { }
633 0 1 if ($self->{'out'})
647 1 0 if ($self->{'printpageno'}) { }
651 1 0 if $f
653 1 0 if ($x) { }
678 7 636 if ($self->{'collectingTheTitle'})
689 320 316 if ($text =~ /^\s*$/)
697 306 10 if ($self->{'hspace'})
699 10 296 if ($self->{'xpos'} + $swidth + $w > $self->{'rm'}) { }
721 5 607 if (length $fontps)
734 20 592 if $self->{'largest_pointsize'} < $self->{'pointsize'}
745 1 0 if (length $font)
815 0 0 unless my $state = 'IO::File'->new($filename, 'w')
825 0 0 if ($last_state_filename)