Condition Coverage

blib/lib/DOM/Tiny.pm
Criterion Covered Total %
condition 57 62 91.9


and 2 conditions

line l !l condition
99 3 5 $_ eq $ns and return $attrs->{$_}
314 0 51 ++$match and next
338 0 152 ++$i and next

and 3 conditions

line !l l&&!r l&&r condition
175 7 9 0 $tag eq 'input' and $type eq 'radio' || $type eq 'checkbox'
213 10 6 641 $trim and $tree->[0] ne 'root'
224 674 0 872 $tree->[0] eq 'tag' and $tree = $tree->[3]
314 150 83 51 not $match and $node eq $tree
315 49 66 118 $tags and $node->[0] ne 'tag'
338 71 81 15 $nodes->[$i][0] eq 'text' and $next->[0] eq 'text'
348 2 61 133 $type eq 'tag' and $recurse
360 812 97 23 $text =~ /\S\z/ and $chunk =~ /^[^.!?,;:\s]+/
372 10 1 1 (my $tree = $self->tree)->[0] eq 'root' and not $content
373 1 7 3 $tree->[0] ne 'root' and $tree->[0] ne 'tag'
8 2 1 $tree->[0] ne 'root' and $tree->[0] ne 'tag' and $content

or 2 conditions

line l !l condition
174 8 8 $self->{'type'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
23 1759 125 0 ref $class || $class
51 3 1 36 @_ > 1 or ref $_[0]
68 6 16 31 $type eq 'root' or $type eq 'tag'
175 2 3 4 $type eq 'radio' || $type eq 'checkbox'
241 7 19 2 $tree->[0] eq 'root' or $tree->[0] eq 'tag'
348 11 22 196 $type eq 'cdata' or $type eq 'raw'
363 805 14 113 $chunk =~ /\S+/ or not $trim