Branch Coverage

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


line true false branch
21 0 273 if @_ < 2
0 273 if @_ > 2
41 0 0 defined $_ ? :
427 0 ref $_ ? :
47 0 1527 if @_ < 3
0 1527 if @_ > 3
75 1256 509 unless $sss->matches($tag, $attributes, $nth_child, $nth_child_of_type)
81 0 509 unless $bit_shift < 64
85 427 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 1697 if (defined $cur_next)
118 0 1493 if @_ < 1
120 3 1490 if (defined(my $marker = $dsp->{'marker'}))
128 33 1670 if (defined(my $cur = $sp_prev->{'cur'}))
138 0 8 if @_ < 2
0 8 if @_ > 2
142 0 6 if @_ < 1