Branch Coverage

blib/lib/Data/BitStream/Code/StartStop.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
51 0 3264 unless defined $p and ref $p eq 'ARRAY' and scalar @$p >= 2
53 0 47269 unless not defined $step or $step >= 0
70 47269 0 defined $step ? :
71 3258 44011 if $bits > $maxbits
73 44011 3258 $bits < $maxbits ? :
87 0 0 unless _verify_p_array($p)
95 0 1631 unless _verify_p_array($p)
98 1589 42 if (not defined $count) { }
42 0 elsif ($count < 0) { }
0 0 elsif ($count == 0) { }
107 44 4683 unless defined $look
113 4683 0 if $bits > 0
116 42 1589 wantarray ? :
121 0 1633 unless _verify_p_array($p)
125 4 4683 unless defined $val and $val >= 0
126 0 4683 if $val > $global_maxval
131 4683 0 if ($prefix_bits + $bits <= 32) { }
133 2 4681 $prefix_cmp == 0 ? :
136 0 0 if ($prefix_cmp == 0) { }
138 0 0 if $bits > 0
147 0 1631 unless defined $p and ref $p eq 'ARRAY' and scalar @$p >= 3
151 1629 2 if not defined $stop or $stop > $maxstop
153 0 1631 unless $start >= 0 and $start <= $maxstop
154 0 1631 unless $step >= 0
155 0 1631 unless $stop >= $start
166 1629 32590 if $blen > $stop
174 0 816 unless $self->writing
177 0 816 if $start == $stop
178 0 816 if $step == 0
181 0 816 if scalar @pmap < 2
188 0 815 if $self->writing
191 0 815 if $start == $stop
192 0 815 if $step == 0
195 0 815 if scalar @pmap < 2