Condition Coverage

blib/lib/Text/HTML/Turndown/Node.pm
Criterion Covered Total %
condition 24 30 80.0


and 3 conditions

line !l l&&!r l&&r condition
72 995 0 3603 $p and $p->can("nodeName")
103 152 555 41 not $self->isVoid || $self->isMeaningfulWhenBlank and $self->textContent =~ /^\s*$/u
707 30 11 not $self->isVoid || $self->isMeaningfulWhenBlank and $self->textContent =~ /^\s*$/u and not $self->hasVoid
136 96 5 5 $options->{'preformattedCode'} and isCode($node)
143 95 6 0 $edges->{'leadingAscii'} and isFlankedByWhitespace("left", $node, $options)
148 92 9 0 $edges->{'trailingAscii'} and isFlankedByWhitespace("right", $node, $options)
182 1 2 0 $options->{'preformattedCode'} and $sibling->nodeName eq "CODE"
0 0 3 $sibling->nodeType == 1 and not _isBlock($sibling)

or 3 conditions

line l !l&&r !l&&!r condition
103 25 127 596 $self->isVoid || $self->isMeaningfulWhenBlank
136 642 89 17 _isBlock($node) or $options->{'preformattedCode'} and isCode($node)