Branch Coverage

blib/lib/HTML/Formatter.pm
Criterion Covered Total %
branch 24 62 38.7


line true false branch
33 3 11 if keys %arg
48 0 0 if $^W
58 0 11 if $html->tag eq 'p'
78 3 0 unless ref $self
80 0 3 unless defined $filename and length $filename
101 0 8 unless ref $self
103 0 8 unless defined $content
134 0 11 unless defined $html and ref $html and $html->can('tag')
148 167 49 if (ref $node) { }
150 89 78 $start ? :
154 166 1 if ($self->can($func)) { }
208 11 0 if ($html) { }
0 0 elsif ($HTML::Parser::VERSION) { }
209 11 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 3 46 if ($self->{'pre'}) { }
739 2 1920 unless length $_
760 37 58 if (defined $old) { }
763 2 35 if $new < $min