Branch Coverage

blib/lib/CPU/Z80/Assembler/Program.pm
Criterion Covered Total %
branch 51 60 85.0


line true false branch
37 2818 21964 defined $_[1] ? :
38 0 5621 defined $_[1] ? :
39 0 93324 defined $_[1] ? :
40 0 5888 defined $_[1] ? :
41 0 144 defined $_[1] ? :
133 2808 21954 if (defined $name or @{$self->child;} == 0) { }
135 2763 45 unless defined $name
139 2783 25 unless (defined $id)
191 2620 10 unless @{$self->segment->child;}
204 1 10 if $segment_map->{$_} >= $new_id
229 19449 0 if @opcodes
252 1 99 if (exists $self->symbols->{$name})
292 0 5632 unless @{$self->child;}
296 156 156 $final ? :
5320 312 defined $first->address ? :
306 5496 162 if (defined $segment->address) { }
308 2 5494 if ($segment->address < $address) { }
12 5482 elsif ($segment->address > $address) { }
320 3 159 if $final
328 3994 38278 if ($jump_opcodes and $opcode->can("short_jump_dist"))
366 2022 1972 if ($dist >= 0) { }
368 1169 853 if $target < $min_target
380 1146 826 if $target > $max_target
404 1580 4006 if ($jump->{'slack'} < 0)
418 12102 12090 if exists $jumps->{$depend_address}
452 2 2814 unless @{$self->child;}
463 2812 0 defined $CPU::Z80::Assembler::fill_byte ? :
472 6 2818 if (length $bytes and $address != $segment_address)
474 0 6 if $fill < 0
486 0 21125 if $list_output