Condition Coverage

blib/lib/CPU/Emulator/Memory/Banked.pm
Criterion Covered Total %
condition 30 42 71.4


and 3 conditions

line !l l&&!r l&&r condition
120 9 0 6 not exists $params{'size'} and exists $params{'file'}
9 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'}
147 0 0 1 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 1 2 $$bank{'type'} eq 'ROM' and $$bank{'writethrough'}

or 3 conditions

line l !l&&r !l&&!r condition
134 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