Branch Coverage

blib/lib/HTML/FormatPS.pm
Criterion Covered Total %
branch 57 88 64.7


line true false branch
145 0 2 unless exists $param{$key}
148 0 2 if ($key eq 'family')
150 0 0 unless exists $FontFamilies{$val}
155 0 2 if ($key eq 'papersize')
156 0 0 unless $self->papersize($val)
172 0 0 unless $PaperSizes{$val}
173 0 0 unless defined $width
185 0 823 if $size > 8
186 0 823 if $size < 0
202 817 6 unless ($plain_with_size)
203 13 804 if $$self{'bold'}
204 5 812 if $$self{'italic'} or $$self{'underline'}
205 6 811 if $$self{'teletype'}
210 800 23 if ($$self{'currentfont'} eq $font_with_size)
245 767 20 if ($$self{'psfontid'} eq $fontid) { }
275 0 2345 $_ > $#{$wx;} ? :
321 6 0 if $$self{'out'}
340 8 9 if $seenfont{$full}++
430 6 0 unless $$self{'no_trailer'}
433 6 0 unless $$self{'no_prolog'}
480 20 389 if (defined $$self{'vspace'}) { }
482 19 1 if ($$self{'out'}) { }
485 0 19 if ($$self{'ypos'} < $$self{'bm'}) { }
513 33 38 unless length $str
529 19 38 unless (length $line)
537 0 38 if ($$self{'ypos'} < $$self{'bm'})
550 0 0 if ($font)
559 0 38 if ($$self{'center'})
572 4 34 if ($$self{'bullet'})
578 2 2 if ($bullet eq '*') { }
641 0 6 if ($$self{'out'})
655 6 0 if ($$self{'printpageno'}) { }
659 6 0 if $f
661 6 0 if ($x) { }
688 64 790 if (utf8::is_utf8($str))
702 7 816 if ($$self{'collectingTheTitle'})
713 409 407 if ($text =~ /^\s*$/)
721 384 23 if ($$self{'hspace'})
723 11 373 if ($$self{'xpos'} + $swidth + $w > $$self{'rm'}) { }
745 13 767 if (length $fontps)
757 34 746 if $$self{'largest_pointsize'} < $$self{'pointsize'}
769 1 0 if (length $font)
839 0 0 unless my $state = 'IO::File'->new($filename, 'w')
849 0 0 if ($last_state_filename)