Branch Coverage

blib/lib/Text/HTML/Turndown/Node.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
70 71 4598 if uc $self->nodeName eq "CODE"
72 3603 995 if ($p and $p->can("nodeName"))
92 636 1496 unless $self->can("getElementsByTagName")
94 192 38828 if $self->getElementsByTagName($tag)
103 11 585 if not $self->isVoid || $self->isMeaningfulWhenBlank and $self->textContent =~ /^\s*$/u and not $self->hasVoid
136 647 101 if (_isBlock($node) or $options->{'preformattedCode'} and isCode($node))
143 0 101 if ($edges->{'leadingAscii'} and isFlankedByWhitespace("left", $node, $options))
148 0 101 if ($edges->{'trailingAscii'} and isFlankedByWhitespace("right", $node, $options))
173 6 9 if ($side eq 'left') { }
181 9 6 if ($sibling)
182 6 3 if ($sibling->nodeType == 3) { }
0 3 elsif ($options->{'preformattedCode'} and $sibling->nodeName eq 'CODE') { }
3 0 elsif ($sibling->nodeType == 1 and not _isBlock($sibling)) { }