Condition Coverage

blib/lib/CracTools/BitVector.pm
Criterion Covered Total %
condition 14 72 19.4


and 3 conditions

line !l l&&!r l&&r condition
82 0 107 0 defined $this and defined $this->{'bits'}
0 107 0 defined $this and defined $this->{'bits'} and defined $this->{'bits'}[int $i / 64]
100 5 0 0 defined $max and $i < $start - $max
108 0 0 0 defined $this->{'block'}[$block] && $this->{'block'}[$block]
4 0 0 $block >= 0 and not defined $this->{'block'}[$block] && $this->{'block'}[$block]
4 0 0 $block >= 0 and not defined $this->{'block'}[$block] && $this->{'block'}[$block] and !defined($max) || $i - ($block + 1) * 64 + 1 <= $max
115 0 0 0 defined $max and $i - ($block + 1) * 64 + 1 > $max
123 0 0 0 defined $max and $i < $start - $max
138 0 3 11 $i < $this->{'n'} and $this->get($i) == 0
141 3 0 0 defined $max and $i > $max + $start
149 0 0 0 defined $this->{'block'}[$block] && $this->{'block'}[$block]
0 0 0 $block < $this->{'maxCases'} and not defined $this->{'block'}[$block] && $this->{'block'}[$block]
0 0 0 $block < $this->{'maxCases'} and not defined $this->{'block'}[$block] && $this->{'block'}[$block] and !defined($max) || $block * 64 - $i <= $max
156 0 0 0 defined $max and $block * 64 - $i > $max
162 0 0 0 $i < $this->{'n'} and $this->get($i) == 0
165 0 0 0 defined $max and $i > $max + $start
192 2 0 2 $nb > 1 and $i != -1
223 36 4 0 $i % 64 == 0 and $i > 0

or 3 conditions

line l !l&&r !l&&!r condition
108 0 0 0 !defined($max) || $i - ($block + 1) * 64 + 1 <= $max
115 4 0 0 $block < 0 or defined $max and $i - ($block + 1) * 64 + 1 > $max
141 0 0 3 $i == $this->{'n'} or defined $max and $i > $max + $start
149 0 0 0 !defined($max) || $block * 64 - $i <= $max
156 0 0 0 $block >= $this->{'maxCases'} or defined $max and $block * 64 - $i > $max
165 0 0 0 $i == $this->{'n'} or defined $max and $i > $max + $start