Condition Coverage

blib/lib/Mojo/DOM58/_CSS.pm
Criterion Covered Total %
condition 65 69 94.2


and 2 conditions

line l !l condition
181 4361 1517 _combinator([reverse(@$_)], $current, $tree, 0) and return 1
230 15 33 $_ ne $current and return undef

and 3 conditions

line !l l&&!r l&&r condition
62 600 7 1 not defined $value and defined $value_re
63 7 31 569 defined $value && defined $value_re
99 1037 619 1984 @$selectors and ref $selectors->[-1]
147 1296 1 69 (my $name = $1) =~ s/^([^|]*)\|// && $1 ne '*'
148 1297 4 65 defined $alias and length $alias
1301 64 1 defined $alias and length $alias and not defined $ns{$alias}
149 1297 4 64 defined $alias && length $alias
219 0 44 8 $current->[3] && $current->[3][0] eq 'root'
223 0 12 14 $current->[0] eq 'tag' and exists $current->[2]{'href'}
277 129 2928 2827 defined $s->[1] and not $current->[1] =~ /$s->[1]/
278 2980 59 18 defined $s->[2] and not _namespace($s->[2], $current)

or 2 conditions

line l !l condition
176 41 9 $2 || 0

or 3 conditions

line l !l&&r !l&&!r condition
26 0 982 0 ref $class || $class
48 83 2 1300 $current->[0] eq 'root' or $current eq $tree
62 364 1 607 not $name =~ /$name_re/ or not defined $value and defined $value_re
63 38 348 221 not defined $value && defined $value_re or $value =~ /$value_re/
131 4 41 189 $name eq 'matches' or $name eq 'not'
207 25 35 144 exists $current->[2]{'checked'} || exists $current->[2]{'selected'}
222 13 13 999 $class eq 'link' or $class eq 'visited'
228 20 20 959 $class eq 'only-child' or $class eq 'only-of-type'
236 27 46 878 $class eq 'nth-of-type' || $class eq 'nth-last-of-type'
239 290 46 615 $class eq 'nth-last-child' or $class eq 'nth-last-of-type'