Branch Coverage

blib/lib/HTML/Formatter.pm
Criterion Covered Total %
branch 30 68 44.1


line true false branch
33 6 23 if keys %arg
48 0 0 if $^W
58 0 21 if $html->tag eq 'p'
78 6 0 unless ref $self
80 0 6 unless defined $filename and length $filename
101 2 13 unless ref $self
103 0 15 unless defined $content
134 0 21 unless defined $html and ref $html and $html->can('tag')
148 389 117 if (ref $node) { }
150 207 182 $start ? :
154 388 1 if ($self->can($func)) { }
208 21 0 if ($html) { }
0 0 elsif ($HTML::Parser::VERSION) { }
209 21 0 $HTML::Parser::VERSION ? :
244 0 0 if (defined $align and lc $align eq 'center')
255 0 0 if (defined $align and lc $align eq 'center')
284 0 0 defined $alt ? :
306 0 0 if (defined $align and lc $align eq 'center')
317 0 0 if (defined $align and lc $align eq 'center')
332 0 0 unless defined $size
333 0 0 if ($size =~ /^\s*[+\-]/)
348 0 0 unless defined $size
390 0 0 unless defined $size
399 0 0 unless defined $size
457 0 0 defined $_[2] ? :
460 0 0 $size_number > $#Size_magic_numbers ? :
0 0 $size_number < 0 ? :
728 4 113 if ($self->{'pre'}) { }
1 112 elsif ($self->{'blockquote'}) { }
744 17 3274 unless length $_
765 96 125 if (defined $old) { }
768 4 92 if $new < $min
797 0 112 unless defined $text
802 4 104 if ($unicode_text =~ s/ ( \xA0 | \xAD ) / /gx)