Branch Coverage

blib/lib/HTML/Blitz/SSSelector.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
23 0 287 if @_ < 5
0 287 if @_ > 1 and (@_ - 1) % 2
287 0 exists ${__rest}{'simple_selectors'} ? :
287 0 exists ${__rest}{'link_type'} ? :
0 287 if keys %{__rest}
30 0 518 if @_ < 1
0 518 if @_ > 1
34 0 1797 if @_ < 5
0 1797 if @_ > 5
38 16 1891 if ($type eq ':ST-FALSE') { }
750 1141 elsif ($type eq ':ST-TAG-NAME') { }
33 1108 elsif ($type eq ':ST-ATTR-HAS') { }
544 564 elsif ($type eq ':ST-ATTR-EQ') { }
52 512 elsif ($type eq ':ST-ATTR-PREFIX') { }
12 500 elsif ($type eq ':ST-ATTR-SUFFIX') { }
12 488 elsif ($type eq ':ST-ATTR-INFIX') { }
325 163 elsif ($type eq ':ST-ATTR-LIST-HAS') { }
8 155 elsif ($type eq ':ST-ATTR-LANG-PREFIX') { }
155 0 elsif ($type eq ':ST-NTH-CHILD' or $type eq ':ST-NTH-CHILD-OF-TYPE') { }
77 60 95 $type eq ':ST-NTH-CHILD' ? :
86 66 1841 if ($sel->{'negated'})
90 1279 628 unless $match