Branch Coverage

blib/lib/CSS/Selector/Parser.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
36 4 7 if s/^($re_name|\*)//
37 5 26 if s/^\#($re_name)//
39 10 16 if (s/^\.($re_name)//)
43 0 16 if (s/$re_attr_value//)
47 1 15 if (s/$re_attr_exist//)
48 1 0 unless exists $attr{$1}
52 4 11 if (s/$re_pseudo//)
54 1 3 if ($p =~ s/\((.+)\)$//) { }
63 2 9 if ($options{'class_as_array'})
64 1 1 defined $class ? :
76 27 39 unless defined $$simple{$_}
79 17 5 unless %{$$simple{$_};}
86 1 10 if (s/$re_combinator//)
92 2 8 if s/$re_comma//
93 8 0 unless $_