Branch Coverage

blib/lib/CracTools/BitVector.pm
Criterion Covered Total %
branch 21 38 55.2


line true false branch
26 51 0 if ($length % 64 > 0)
52 1 0 if (defined $this->{'block'})
62 3 7 if $i < $this->{'first_bit_set'}
63 10 0 if (not $this->get($i))
73 1 0 if ($this->get($i))
83 0 107 unless (defined $this and defined $this->{'bits'} and defined $this->{'bits'}[int $i / 64])
87 29 78 $this->{'bits'}[int $i / 64] & 1 << $i % 64 ? :
96 5 4 if ($this->{'bits'}[int $i / 64] & 18446744073709551615 >> 63 - $i % 64) { }
101 0 5 if (defined $max and $i < $start - $max)
116 4 0 if ($block < 0 or defined $max and $i - ($block + 1) * 64 + 1 > $max)
124 0 0 if (defined $max and $i < $start - $max)
137 3 0 if ($this->{'bits'}[int $i / 64] & 18446744073709551615 << $i % 64) { }
142 0 3 if ($i == $this->{'n'} or defined $max and $i > $max + $start)
157 0 0 if ($block >= $this->{'maxCases'} or defined $max and $block * 64 - $i > $max)
166 0 0 if ($i == $this->{'n'} or defined $max and $i > $max + $start)
176 2 2 $self->get($i) ? :
180 4 4 if ($i != -1) { }
221 0 4 unless defined $sep
224 0 40 if ($i % 64 == 0 and $i > 0)