Branch Coverage

blib/lib/HTML/Blitz/Matcher.pm
Criterion Covered Total %
branch 29 44 65.9


line true false branch
21 0 276 if @_ < 2
0 276 if @_ > 2
41 0 0 defined $_ ? :
439 0 ref $_ ? :
47 0 1546 if @_ < 3
0 1546 if @_ > 3
75 1285 521 unless $sss->matches($tag, $attributes, $nth_child, $nth_child_of_type)
81 0 521 unless $bit_shift < 64
85 439 82 if (not defined $link) { }
33 49 elsif ($link eq ':LT-DESCENDANT') { }
44 5 elsif ($link eq ':LT-CHILD') { }
1 4 elsif ($link eq ':LT-SIBLING') { }
4 0 elsif ($link eq ':LT-ADJACENT-SIBLING') { }
90 44 0 unless ($sp_next->{'extra_bits'} & $bit)
95 1 0 unless ($sp->{'extra_bits'} & $bit)
106 33 1738 if (defined $cur_next)
118 0 1508 if @_ < 1
120 4 1504 if (defined(my $marker = $dsp->{'marker'}))
128 33 1703 if (defined(my $cur = $sp_prev->{'cur'}))
138 0 9 if @_ < 2
0 9 if @_ > 2
142 0 7 if @_ < 1