Condition Coverage

blib/lib/CPU/Emulator/Z80.pm
Criterion Covered Total %
condition 74 84 88.1


and 3 conditions

line !l l&&!r l&&r condition
788 2294 776 0 $self->_got_prefix(203) and $self->_got_prefix(221) || $self->_got_prefix(253)
822 1 0 1467 exists $$self{'instr_dispatch_table'}{$instr} and ref $$self{'instr_dispatch_table'}{$instr}
1 0 1467 exists $$self{'instr_dispatch_table'}{$instr} and ref $$self{'instr_dispatch_table'}{$instr} and reftype($$self{'instr_dispatch_table'}{$instr}) eq 'CODE'
886 128 32 224 defined $d and $r ne '(HL)'
924 175 10 15 $bit == 7 && $self->register($r)->get & 128
1086 0 1 3 $self->register('BC')->get and $self->register('Z')->get
1100 1 0 7 $self->register('BC')->get and $self->register('Z')->get
1203 514 14 14 defined $d and $r2 eq '(HL)'
528 10 4 defined $d and $r2 eq '(HL)' and $r1 =~ /^[HL]$/
514 10 14 defined $d and $r1 eq '(HL)'
524 10 4 defined $d and $r1 eq '(HL)' and $r2 =~ /^[HL]$/
1294 32 8 56 defined $d and $r ne '(HL)'
1348 8 2 14 defined $d and $r ne '(HL)'
1376 8 2 14 defined $d and $r ne '(HL)'
1406 8 2 14 defined $d and $r ne '(HL)'
1440 8 2 14 defined $d and $r ne '(HL)'
1497 3 8 0 $f->getC == $row[0] and $row[2] eq '.' || $f->getH == $row[2]
2 2 4 $f->getC == $row[0] and $row[2] eq '.' || $f->getH == $row[2] and sprintf('%x', $a->get >> 4 & 15) =~ /^[$row[1]]$/
4 2 2 $f->getC == $row[0] and $row[2] eq '.' || $f->getH == $row[2] and sprintf('%x', $a->get >> 4 & 15) =~ /^[$row[1]]$/ and sprintf('%x', $a->get & 15) =~ /^[$row[3]]$/
1510 1 0 1 $n and not $h
1511 1 1 0 $n and $h

or 2 conditions

line l !l condition
865 3 17 $c ||= 0
877 4 26 $c ||= 0
964 3 64 $c ||= 0
972 4 0 $c ||= 0
1159 389 36 $d || 0
1193 531 171 $d || 0

or 3 conditions

line l !l&&r !l&&!r condition
122 2 0 1 $args{'ports'} == 256 or $args{'ports'} == 65536
788 256 256 264 $self->_got_prefix(221) || $self->_got_prefix(253)
1497 3 3 2 $row[2] eq '.' || $f->getH == $row[2]