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
21 0 290 0 @_ > 1 and (@_ - 1) % 2
44 429 58 61 exists $attributes->{$attr} && $attributes->{$attr} eq $sel->{'value'}
48 26 13 13 exists $attributes->{$attr} && substr($attributes->{$attr}, 0, length $value) eq $value
52 6 3 3 exists $attributes->{$attr} && substr($attributes->{$attr}, -length($value)) eq $value
56 6 3 3 exists $attributes->{$attr} && index($attributes->{$attr}, $value) != -1
60 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 }
73 4 2 2 exists $attributes->{$attr} && $attributes->{$attr} =~ /\A\Q$value\E(?![^\-])/u

or 3 conditions

line l !l&&r !l&&!r condition
36 60 95 0 $type eq ":ST-NTH-CHILD" or $type eq ":ST-NTH-CHILD-OF-TYPE"
39 91 224 440 $sel->{'name'} eq '*' || $sel->{'name'} eq $tag
79 43 29 83 $d == 0 || $ka != 0 && $d < 0 == $ka < 0 && $d % $ka == 0