Condition Coverage

blib/lib/Mojo/DOM.pm
Criterion Covered Total %
condition 63 71 88.7


and 2 conditions

line l !l condition
91 5 5 $_ eq $ns and return $attrs->{$_}
173 0 2127 ${$_[0];}->tree($_[1]) && (return $_[0])
201 0 2146 ${$_[0];}->xml($_[1]) && (return $_[0])
309 143 82 defined $match++ and $_ eq $tree and last

and 3 conditions

line !l l&&!r l&&r condition
185 8 11 3 $tag eq "input" and $type eq 'radio' || $type eq 'checkbox'
225 53 0 88 $tree->[0] eq "tag" and $tree = $tree->[3]
289 63 0 21 &blessed($input) and $input->isa("Mojo::DOM")
309 0 143 82 defined $match++ and $_ eq $tree
316 17 7 4 $i == -1 && !@$nodes
329 2 61 155 $type eq "tag" and $all
333 6 6 140 $node->[1] ne "script" and $node->[1] ne "style"
343 14 1 1 +(my $tree = $self->tree)->[0] eq "root" and not $content
344 1 11 3 $tree->[0] ne "root" and $tree->[0] ne "tag"
12 2 1 $tree->[0] ne "root" and $tree->[0] ne "tag" and $content

or 2 conditions

line l !l condition
184 13 9 $self->{'type'} // ""
185 3 2 $self->{'value'} // "on"
232 570 0 shift() // []

or 3 conditions

line l !l&&r !l&&!r condition
40 3 1 44 @_ > 1 or ref $_[0]
57 6 22 31 $type eq "root" or $type eq "tag"
102 2130 264 0 ref $class || $class
181 2 8 0 $self->{'value'} // $self->text
185 2 3 9 $type eq 'radio' || $type eq 'checkbox'
241 7 31 2 $tree->[0] eq "root" or $tree->[0] eq "tag"
329 959 10 256 $type eq "text" or $type eq "cdata"
969 38 218 $type eq "text" or $type eq "cdata" or $type eq "raw"
333 3 143 9 $xml or $node->[1] ne "script" and $node->[1] ne "style"