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
83 0 0 107 defined $this and defined $this->{'bits'}
0 0 107 defined $this and defined $this->{'bits'} and defined $this->{'bits'}[int $i / 64]
101 5 0 0 defined $max and $i < $start - $max
109 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
116 0 0 0 defined $max and $i - ($block + 1) * 64 + 1 > $max
124 0 0 0 defined $max and $i < $start - $max
139 0 3 11 $i < $this->{'n'} and $this->get($i) == 0
142 3 0 0 defined $max and $i > $max + $start
150 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
157 0 0 0 defined $max and $block * 64 - $i > $max
163 0 0 0 $i < $this->{'n'} and $this->get($i) == 0
166 0 0 0 defined $max and $i > $max + $start
193 2 0 2 $nb > 1 and $i != -1
224 36 4 0 $i % 64 == 0 and $i > 0

or 3 conditions

line l !l&&r !l&&!r condition
109 0 0 0 !defined($max) || $i - ($block + 1) * 64 + 1 <= $max
116 4 0 0 $block < 0 or defined $max and $i - ($block + 1) * 64 + 1 > $max
142 0 0 3 $i == $this->{'n'} or defined $max and $i > $max + $start
150 0 0 0 !defined($max) || $block * 64 - $i <= $max
157 0 0 0 $block >= $this->{'maxCases'} or defined $max and $block * 64 - $i > $max
166 0 0 0 $i == $this->{'n'} or defined $max and $i > $max + $start