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 1007 0 3637 $p and $p->can("nodeName")
103 154 560 43 not $self->isVoid || $self->isMeaningfulWhenBlank and $self->textContent =~ /^\s*$/u
714 32 11 not $self->isVoid || $self->isMeaningfulWhenBlank and $self->textContent =~ /^\s*$/u and not $self->hasVoid
136 101 5 5 $options->{'preformattedCode'} and isCode($node)
143 99 7 0 $edges->{'leadingAscii'} and isFlankedByWhitespace("left", $node, $options)
148 97 9 0 $edges->{'trailingAscii'} and isFlankedByWhitespace("right", $node, $options)
182 2 2 0 $options->{'preformattedCode'} and $sibling->nodeName eq "CODE"
0 0 4 $sibling->nodeType == 1 and not _isBlock($sibling)

or 3 conditions

line l !l&&r !l&&!r condition
103 27 127 603 $self->isVoid || $self->isMeaningfulWhenBlank
136 646 93 18 _isBlock($node) or $options->{'preformattedCode'} and isCode($node)