Branch Coverage

blib/lib/Games/2048/Board.pm
Criterion Covered Total %
branch 7 122 5.7


line true false branch
46 0 474 if $self->no_animations
62 0 30 if $self->no_animations
98 0 0 if $redraw and not $self->needs_redraw
101 0 0 if $redraw
104 0 0 unless $redraw
121 0 0 $tile ? :
125 0 0 if (defined $value and length $value > $self->cell_width * $self->cell_height)
133 0 0 if ($this_line >= 0 and $this_line < $lines) { }
149 0 0 if ($tile and $tile->appearing and $self->appearing) { }
168 0 0 if ($within xor $on)
171 0 0 $on ? :
179 0 0 if ($on)
196 0 0 if $appearing and not $self->appearing->update
197 0 0 if $self->moving and not $moving && $self->moving->update
200 0 0 if not $self->needs_redraw
205 0 0 unless $self->win or $self->lose
206 0 0 $self->win ? :
216 0 0 $self->win ? :
222 0 0 $yes ? :
245 0 0 $condition ? :
280 0 0 if ($self->colors == 2)
282 0 0 $value < 4096 ? :
0 0 $value < 2048 ? :
0 0 $value < 1024 ? :
0 0 $value < 512 ? :
0 0 $value < 256 ? :
0 0 $value < 128 ? :
0 0 $value < 64 ? :
0 0 $value < 32 ? :
0 0 $value < 16 ? :
0 0 $value < 8 ? :
0 0 $value < 4 ? :
0 0 !defined($value) ? :
296 0 0 if ($self->colors == 1)
298 0 0 $value < 4096 ? :
0 0 $value < 2048 ? :
0 0 $value < 1024 ? :
0 0 $value < 512 ? :
0 0 $value < 256 ? :
0 0 $value < 128 ? :
0 0 $value < 64 ? :
0 0 $value < 32 ? :
0 0 $value < 16 ? :
0 0 $value < 8 ? :
0 0 $value < 4 ? :
0 0 !defined($value) ? :
312 0 0 $^O eq 'MSWin32' ? :
313 0 0 $^O eq 'MSWin32' ? :
314 0 0 $value < 4096 ? :
0 0 $value < 128 ? :
0 0 $value < 64 ? :
0 0 $value < 32 ? :
0 0 $value < 16 ? :
0 0 $value < 8 ? :
0 0 $value < 4 ? :
0 0 !defined($value) ? :
411 0 55 if $zoom > $#zooms
412 0 55 if $zoom < 0
438 0 55 if $ENV{'KONSOLE_DBUS_SERVICE'}
446 0 55 if $colors > 2
447 0 55 if $colors < 0