Branch Coverage

blib/lib/HTML/Formatter.pm
Criterion Covered Total %
branch 26 64 40.6


line true false branch
33 4 17 if keys %arg
48 0 0 if $^W
58 0 17 if $html->tag eq 'p'
78 4 0 unless ref $self
80 0 4 unless defined $filename and length $filename
101 0 13 unless ref $self
103 0 13 unless defined $content
134 0 17 unless defined $html and ref $html and $html->can('tag')
148 334 97 if (ref $node) { }
150 175 159 $start ? :
154 333 1 if ($self->can($func)) { }
208 17 0 if ($html) { }
0 0 elsif ($HTML::Parser::VERSION) { }
209 17 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 93 if ($self->{'pre'}) { }
1 92 elsif ($self->{'blockquote'}) { }
743 13 2970 unless length $_
764 84 105 if (defined $old) { }
767 4 80 if $new < $min