Branch Coverage

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


line true false branch
21 0 274 if @_ < 2
0 274 if @_ > 2
41 0 0 defined $_ ? :
436 0 ref $_ ? :
47 0 1539 if @_ < 3
0 1539 if @_ > 3
75 1279 518 unless $sss->matches($tag, $attributes, $nth_child, $nth_child_of_type)
81 0 518 unless $bit_shift < 64
85 436 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 1729 if (defined $cur_next)
118 0 1501 if @_ < 1
120 3 1498 if (defined(my $marker = $dsp->{'marker'}))
128 33 1694 if (defined(my $cur = $sp_prev->{'cur'}))
138 0 8 if @_ < 2
0 8 if @_ > 2
142 0 6 if @_ < 1