Branch Coverage

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


line true false branch
19 0 276 if @_ < 2
0 276 if @_ > 2
39 0 0 defined $_ ? :
439 0 ref $_ ? :
45 0 1546 if @_ < 3
0 1546 if @_ > 3
73 1285 521 unless $sss->matches($tag, $attributes, $nth_child, $nth_child_of_type)
79 0 521 unless $bit_shift < 64
83 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') { }
88 44 0 unless ($sp_next->{'extra_bits'} & $bit)
93 1 0 unless ($sp->{'extra_bits'} & $bit)
104 33 1738 if (defined $cur_next)
116 0 1508 if @_ < 1
118 4 1504 if (defined(my $marker = $dsp->{'marker'}))
126 33 1703 if (defined(my $cur = $sp_prev->{'cur'}))
136 0 9 if @_ < 2
0 9 if @_ > 2
140 0 7 if @_ < 1