Branch Coverage

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


line true false branch
28 0 1 if exists $$hash{'lm'}
29 1 0 if exists $$hash{'leftmargin'}
30 0 1 if exists $$hash{'rm'}
31 1 0 if exists $$hash{'rightmargin'}
34 0 1 if ($width < 1)
35 0 0 if $^W
38 0 1 if ($width < 20)
39 0 0 if $^W
43 0 0 if $^W
106 0 1 if ($node->attr('name')) { }
0 1 elsif ($node->attr('href') =~ /^#/) { }
121 0 1 if ($node->attr('name')) { }
1 0 elsif (my $href = $node->attr('href')) { }
125 0 1 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'})
228 344 355 if ($text =~ /^\s*$/)
233 18 337 if (defined $$self{'vspace'})
234 17 1 if ($$self{'out'})
242 323 32 if ($$self{'hspace'})
243 37 286 if ($$self{'curpos'} + length($text) > $$self{'rm'}) { }
260 12 343 if $$self{'maxpos'} < $pos
269 60 12 if ($pos < $lm)