Branch Coverage

blib/lib/HTML/FormatText.pm
Criterion Covered Total %
branch 27 42 64.2


line true false branch
34 0 1 if exists $hash->{'lm'}
35 1 0 if exists $hash->{'leftmargin'}
36 0 1 if exists $hash->{'rm'}
37 1 0 if exists $hash->{'rightmargin'}
40 0 1 if ($width < 1)
41 0 0 if $^W
44 0 1 if ($width < 20)
45 0 0 if $^W
49 0 0 if $^W
85 2 0 if ($level <= 2)
87 1 1 if $level == 1
88 1 1 if $level == 2
117 1 0 if (defined $self->{'vspace'})
118 1 0 if ($self->{'out'})
137 389 398 if ($text =~ /^\s*$/)
142 32 366 if (defined $self->{'vspace'})
143 25 7 if ($self->{'out'})
151 358 40 if ($self->{'hspace'})
152 41 317 if ($self->{'curpos'} + length($text) > $self->{'rm'}) { }
169 31 367 if $self->{'maxpos'} < $pos
179 73 30 if ($pos < $lm)