Branch Coverage

blib/lib/WWW/Noss/TextToHtml.pm
Criterion Covered Total %
branch 37 44 84.0


line true false branch
297 7 10 if ($e =~ /^#x([[:xdigit:]]+)$/u) { }
5 5 elsif ($e =~ /^#(\d+)$/u) { }
5 0 elsif (exists $ENTITY2CHAR{$1}) { }
344 77 125 if ($state == 0) { }
84 41 elsif ($state == 1) { }
16 25 elsif ($state == 2) { }
14 11 elsif ($state == 3) { }
11 0 elsif ($state == 4) { }
345 56 21 if $c ne "<"
346 0 21 if (substr($text, $i, 4) eq '")
376 0 2 if ($state == 0)
382 1 13 if (substr($text, $i, 3) eq "]]>")
388 3 8 if ($c eq $quot) { }
2 6 elsif ($c eq '\\') { }
396 0 6 if ($state == 0 and $start < length $text) { }
0 6 elsif ($state != 2 and $state != 0) { }