Condition Coverage

blib/lib/CPU/Emulator/DCPU16.pm
Criterion Covered Total %
condition 14 26 53.8


and 3 conditions

line !l l&&!r l&&r condition
179 680 52 3 $opts{'limit'} > 0 and ++$count > $opts{'limit'}
180 733 0 2 $self->pc >= $self->program_top and not $opts{'full_memory'}

or 2 conditions

line l !l condition
173 3 2 $opts{'limit'} ||= 0
174 0 5 $opts{'debug'} ||= 0
195 0 735 $opts{'debug'} ||= 0
196 0 735 $opts{'cycle_penalty'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
298 0 0 110 $loc < 0 or $loc >= $MAX_REGISTERS
305 0 0 794 $loc < 0 or $loc >= $MAX_REGISTERS
318 0 0 755 $loc < 0 or $loc >= $MAX_MEMORY
326 0 0 464 $loc < 0 or $loc >= $MAX_MEMORY