Condition Coverage

blib/lib/CPU/Emulator/Z80.pm
Criterion Covered Total %
condition 79 87 90.8


and 3 conditions

line !l l&&!r l&&r condition
787 4220 398 379 $self->_got_prefix(203) and $self->_got_prefix(221) || $self->_got_prefix(253)
821 1 0 3391 exists $self->{'instr_dispatch_table'}{$instr} and ref $self->{'instr_dispatch_table'}{$instr}
1 0 3391 exists $self->{'instr_dispatch_table'}{$instr} and ref $self->{'instr_dispatch_table'}{$instr} and &reftype($self->{'instr_dispatch_table'}{$instr}) eq "CODE"
885 129 32 224 defined $d and $r ne "(HL)"
923 175 10 15 $bit == 7 && $self->register($r)->get & 128
1094 0 1 3 $self->register("BC")->get and $self->register("Z")->get
1108 1 0 7 $self->register("BC")->get and $self->register("Z")->get
1211 746 14 14 defined $d and $r2 eq "(HL)"
760 10 4 defined $d and $r2 eq "(HL)" and $r1 =~ /^[HL]$/
746 10 14 defined $d and $r1 eq "(HL)"
756 10 4 defined $d and $r1 eq "(HL)" and $r2 =~ /^[HL]$/
1306 32 8 56 defined $d and $r ne "(HL)"
1360 8 2 14 defined $d and $r ne "(HL)"
1388 8 2 14 defined $d and $r ne "(HL)"
1418 8 2 14 defined $d and $r ne "(HL)"
1452 8 2 14 defined $d and $r ne "(HL)"
1509 3 2 6 $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]]$/
1522 1 0 1 $n and not $h
1523 1 1 0 $n and $h

or 2 conditions

line l !l condition
864 3 17 $c ||= 0
876 4 26 $c ||= 0
968 3 64 $c ||= 0
976 4 0 $c ||= 0
1167 389 292 $d || 0
1201 531 59 $d || 0

or 3 conditions

line l !l&&r !l&&!r condition
121 2 0 1 $args{'ports'} == 256 or $args{'ports'} == 65536
787 256 256 265 $self->_got_prefix(221) || $self->_got_prefix(253)
1218 21 21 732 $r1 eq "(HL)" or $r2 eq "(HL)"
1509 3 3 2 $row[2] eq '.' || $f->getH == $row[2]