Branch Coverage

blib/lib/CPU/Z80/Assembler/Expr.pm
Criterion Covered Total %
branch 51 52 98.0


line true false branch
43 5 13100 defined $_[1] ? :
44 27 7021 defined $_[1] ? :
45 60 36226 defined $_[1] ? :
169 20972 33513 if ($type eq 'NUMBER') { }
15114 18399 elsif ($type eq 'NAME') { }
16 18383 elsif ($type eq 'STRING') { }
2653 15730 elsif ($type eq 'EXPR') { }
173 6449 8665 if ($value eq '$') { }
180 1 8664 unless defined $expr
182 8643 21 if (ref $expr) { }
183 1 8642 if $seen->{$value}
196 7 9 if (length $value > 2)
210 0 15730 if $type =~ /^[a-z_]/
215 10 25766 unless @code
218 1 25765 if ($@)
254 1801 8639 if ($token->type eq '{') { }
255 2 1799 unless defined $token_stream->peek and $token_stream->next->type eq "}"
288 2732 8565 if ($type eq 'w') { }
343 8222 elsif ($type eq 'ub') { }
8221 1 elsif ($type eq 'sb') { }
289 2 2730 if ($value > 65535) { }
2 2728 elsif ($value < -32768) { }
300 7 336 if ($value > 255) { }
1 335 elsif ($value < -128) { }
315 2 8219 if ($value > 127) { }
2 8217 elsif ($value < -128) { }