Branch Coverage

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


line true false branch
70 71 4644 if uc $self->nodeName eq "CODE"
72 3637 1007 if ($p and $p->can("nodeName"))
92 642 1514 unless $self->can("getElementsByTagName")
94 197 39254 if $self->getElementsByTagName($tag)
103 11 592 if not $self->isVoid || $self->isMeaningfulWhenBlank and $self->textContent =~ /^\s*$/u and not $self->hasVoid
136 651 106 if (_isBlock($node) or $options->{'preformattedCode'} and isCode($node))
143 0 106 if ($edges->{'leadingAscii'} and isFlankedByWhitespace("left", $node, $options))
148 0 106 if ($edges->{'trailingAscii'} and isFlankedByWhitespace("right", $node, $options))
173 7 9 if ($side eq 'left') { }
181 10 6 if ($sibling)
182 6 4 if ($sibling->nodeType == 3) { }
0 4 elsif ($options->{'preformattedCode'} and $sibling->nodeName eq 'CODE') { }
4 0 elsif ($sibling->nodeType == 1 and not _isBlock($sibling)) { }