Condition Coverage

blib/lib/CPU/Z80/Disassembler.pm
Criterion Covered Total %
condition 46 52 88.4


and 3 conditions

line !l l&&!r l&&r condition
352 14165 901 24562 $i <= $addr and $i <= $max
413 10883 2963 1172 defined $instr->NN and not defined $instr->format->{'NN'}
13467 0 379 defined $instr->DIS and not defined $instr->format->{'DIS'}
442 379 87 292 $instr->opcode =~ /$reg/ and defined(my $base = $self->$func)
461 3 36 39352 $p <= $max and not defined $self->instr->[$p]
582 28041 978 1566 $current_type ne "-" and $type ne "-"
29019 1565 1 $current_type ne "-" and $type ne "-" and $current_type ne $type
820 3383 7 12036 defined $can_call and not ref $can_call
3390 9568 2468 defined $can_call and not ref $can_call and $can_call
1232 2724 101 101 $size == 2 and $addr == $end_addr

or 2 conditions

line l !l condition
575 17822 3 $count ||= 1
902 2438 3622 $self->_block_comments->[$addr] ||= ""
924 1978 4768 $instr->comment // ""
1175 55 1 $self->header // ""
1182 0 0 $self->footer // ""

or 3 conditions

line l !l&&r !l&&!r condition
204 41989 11 0 'CPU::Z80::Disassembler::Instruction'->disassemble($self->memory, $addr) || 'CPU::Z80::Disassembler::Instruction'->defb($self->memory, $addr)
493 7 816 64730 $addr == $min or $addr % 80 == 0
653 145944 11862 0 $self->instr->[$addr] ||= "CPU::Z80::Disassembler::Instruction"->disassemble($self->memory, $addr)
729 0 48 13592 $instr->opcode =~ /call \w+,NN/ or $self->get_type($instr->next_addr) eq "C"