Branch Coverage

lib/Loctools/Markdown/Builder/MD.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
20 45 156 if ($node->{'kind'} eq 'whitespace')
25 7 149 if ($node->{'kind'} eq 'hr')
30 76 73 if ($node->{'kind'} eq 'p')
35 11 62 if ($node->{'kind'} eq 'html')
40 14 48 if ($node->{'kind'} =~ /^h(\d+)$/)
41 2 12 if ($node->{'context'} and $node->{'context'}{'setext'} ne '') { }
50 7 41 if ($node->{'kind'} eq 'pre')
51 4 3 if ($node->{'context'} and $node->{'context'}{'text'} ne '') { }
62 32 9 if ($node->{'kind'} eq 'li')
72 9 0 if ($node->{'kind'} eq 'blockquote')
89 0 116 unless $length > 0
91 0 116 if $s eq ''
94 20 96 if ($s =~ /^(.*?)\n(.+)$/s)
110 151 98 if (@a > 0 and $a[0] =~ /^\s*$/)
114 0 249 if (length($accum) + length($chunk) > $length) { }
115 0 0 if $accum ne ''
126 96 0 if $accum ne ''