Branch Coverage

blib/lib/HTML/FormatMarkdown.pm
Criterion Covered Total %
branch 31 52 59.6


line true false branch
28 0 2 if exists $hash->{'lm'}
29 2 0 if exists $hash->{'leftmargin'}
30 0 2 if exists $hash->{'rm'}
31 2 0 if exists $hash->{'rightmargin'}
34 0 2 if ($width < 1)
35 0 0 if $^W
38 0 2 if ($width < 20)
39 0 0 if $^W
43 0 0 if $^W
106 0 2 if ($node->attr('name')) { }
0 2 elsif ($node->attr('href') =~ /^#/) { }
121 0 2 if ($node->attr('name')) { }
2 0 elsif (my $href = $node->attr('href')) { }
125 0 2 if ($href =~ /^#/)
140 0 1 if ($self->{'pre'}) { }
151 0 1 if ($self->{'pre'}) { }
189 4 26 if ($self->{'curpos'} + length($line) > $self->{'rm'})
207 1 0 if (defined $self->{'vspace'})
208 1 0 if ($self->{'out'})
226 423 439 if ($text =~ /^\s*$/)
231 27 412 if (defined $self->{'vspace'})
232 25 2 if ($self->{'out'})
240 393 46 if ($self->{'hspace'})
241 46 347 if ($self->{'curpos'} + length($text) > $self->{'rm'}) { }
258 23 416 if $self->{'maxpos'} < $pos
267 78 12 if ($pos < $lm)