Condition Coverage

blib/lib/CPU/Emulator/Memory/Banked.pm
Criterion Covered Total %
condition 28 42 66.6


and 3 conditions

line !l l&&!r l&&r condition
120 9 6 0 not exists $params{'size'} and exists $params{'file'}
0 0 6 not exists $params{'size'} and exists $params{'file'} and not ref $params{'file'}
0 0 6 not exists $params{'size'} and exists $params{'file'} and not ref $params{'file'} and -s $params{'file'}
148 0 1 0 exists $params{'function_read'} and exists $params{'function_write'}
151 1 0 7 $bank->{'address'} >= $address and $bank->{'address'} < $address + $size
0 0 1 $address >= $bank->{'address'} and $address < $bank->{'address'} + $bank->{'size'}
202 2 3 23 $bank->{'address'} <= $addr and $bank->{'address'} + $bank->{'size'} > $addr
229 0 2 5 $bank->{'address'} <= $addr and $bank->{'address'} + $bank->{'size'} > $addr
233 2 3 0 $bank->{'type'} eq 'ROM' and $bank->{'writethrough'}

or 3 conditions

line l !l&&r !l&&!r condition
135 0 1 14 $address < 0 or $address + $size - 1 > $self->{'size'} - 1
151 7 0 1 $bank->{'address'} >= $address and $bank->{'address'} < $address + $size or $address >= $bank->{'address'} and $address < $bank->{'address'} + $bank->{'size'}
200 1 2 35 $addr < 0 or $addr > $self->{'size'} - 1
225 1 1 11 $value < 0 or $value > 255
226 1 1 9 $addr < 0 or $addr > $self->{'size'} - 1