Condition Coverage

blib/lib/HTML/Blitz/SSSelector.pm
Criterion Covered Total %
condition 27 30 90.0


and 3 conditions

line !l l&&!r l&&r condition
23 0 287 0 @_ > 1 and (@_ - 1) % 2
46 427 57 60 exists $attributes->{$attr} && $attributes->{$attr} eq $sel->{'value'}
50 26 13 13 exists $attributes->{$attr} && substr($attributes->{$attr}, 0, length $value) eq $value
54 6 3 3 exists $attributes->{$attr} && substr($attributes->{$attr}, -length($value)) eq $value
58 6 3 3 exists $attributes->{$attr} && index($attributes->{$attr}, $value) >= 0
62 28 151 146 exists $attributes->{$attr} && do { my $r = 0; foreach my $elem ($attributes->{$attr} =~ /[^ \t\n\r\f]+/gu) { if ($elem eq $value) { $r = 1; last; } ; } ; $r }
75 4 2 2 exists $attributes->{$attr} && $attributes->{$attr} =~ /\A\Q$value\E(?![^\-])/u

or 3 conditions

line l !l&&r !l&&!r condition
38 60 95 0 $type eq ":ST-NTH-CHILD" or $type eq ":ST-NTH-CHILD-OF-TYPE"
41 91 222 437 $sel->{'name'} eq '*' || $sel->{'name'} eq $tag
81 43 29 83 $d == 0 || $ka != 0 && $d < 0 == $ka < 0 && $d % $ka == 0