Branch Coverage

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


line true false branch
23 0 284 if @_ < 5
0 284 if @_ > 1 and (@_ - 1) % 2
284 0 exists ${__rest}{'simple_selectors'} ? :
284 0 exists ${__rest}{'link_type'} ? :
0 284 if keys %{__rest}
30 0 509 if @_ < 1
0 509 if @_ > 1
34 0 1765 if @_ < 5
0 1765 if @_ > 5
38 16 1857 if ($type eq ':ST-FALSE') { }
732 1125 elsif ($type eq ':ST-TAG-NAME') { }
33 1092 elsif ($type eq ':ST-ATTR-HAS') { }
544 548 elsif ($type eq ':ST-ATTR-EQ') { }
52 496 elsif ($type eq ':ST-ATTR-PREFIX') { }
12 484 elsif ($type eq ':ST-ATTR-SUFFIX') { }
12 472 elsif ($type eq ':ST-ATTR-INFIX') { }
309 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 1807 if ($sel->{'negated'})
90 1256 617 unless $match