Branch Coverage

blib/lib/CPU/Emulator/Memory.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
66 1 8 exists $params{'bytes'} ? :
70 10 3 unless (exists $params{'bytes'})
73 1 12 if length $params{'bytes'} != $params{'size'}
76 3 9 if (exists $params{'file'})
77 1 2 if (-e $params{'file'}) { }
83 3 9 $params{'file'} ? :
118 0 2 if ($$self{'endianness'} eq 'BIG')
125 3 19 if $addr < 0 or $addr > $$self{'size'} - 1
153 1 1 if ($$self{'endianness'} eq 'BIG')
162 2 11 if $value < 0 or $value > 255
163 2 9 if $addr < 0 or $addr > $$self{'size'} - 1
166 3 6 if exists $$self{'file'}
176 0 10 unless open my $fh, $file
180 1 9 unless length $contents == $size
198 0 9 unless open my $fh, '>', $file