Branch Coverage

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


line true false branch
25 51 0 if ($length % 64 > 0)
51 1 0 if (defined $this->{'block'})
61 3 7 if $i < $this->{'first_bit_set'}
62 10 0 if (not $this->get($i))
72 1 0 if ($this->get($i))
82 0 107 unless (defined $this and defined $this->{'bits'} and defined $this->{'bits'}[int $i / 64])
86 29 78 $this->{'bits'}[int $i / 64] & 1 << $i % 64 ? :
95 5 4 if ($this->{'bits'}[int $i / 64] & 18446744073709551615 >> 63 - $i % 64) { }
100 0 5 if (defined $max and $i < $start - $max)
115 4 0 if ($block < 0 or defined $max and $i - ($block + 1) * 64 + 1 > $max)
123 0 0 if (defined $max and $i < $start - $max)
136 3 0 if ($this->{'bits'}[int $i / 64] & 18446744073709551615 << $i % 64) { }
141 0 3 if ($i == $this->{'n'} or defined $max and $i > $max + $start)
156 0 0 if ($block >= $this->{'maxCases'} or defined $max and $block * 64 - $i > $max)
165 0 0 if ($i == $this->{'n'} or defined $max and $i > $max + $start)
175 2 2 $self->get($i) ? :
179 4 4 if ($i != -1) { }
220 0 4 unless defined $sep
223 0 40 if ($i % 64 == 0 and $i > 0)