Branch Coverage

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


line true false branch
23 0 290 if @_ < 5
0 290 if @_ > 1 and (@_ - 1) % 2
290 0 exists ${__rest}{'simple_selectors'} ? :
290 0 exists ${__rest}{'link_type'} ? :
0 290 if keys %{__rest}
30 0 521 if @_ < 1
0 521 if @_ > 1
34 0 1806 if @_ < 5
0 1806 if @_ > 5
38 16 1900 if ($type eq ':ST-FALSE') { }
755 1145 elsif ($type eq ':ST-TAG-NAME') { }
33 1112 elsif ($type eq ':ST-ATTR-HAS') { }
548 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 1850 if ($sel->{'negated'})
90 1285 631 unless $match