Branch Coverage

blib/lib/Games/2048.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
83 0 0 if ($first_time and $game = 'Games::2048::Game'->restore) { }
85 0 0 if $game->lose or not $game->is_valid
90 0 0 unless ($game)
99 0 0 if ($first_time)
110 0 0 unless ($game->lose or $game->win)
113 0 0 if ($vec) { }
0 0 elsif ($key =~ /^[q]$/iu) { }
0 0 elsif ($key =~ /^[r]$/iu) { }
129 0 0 if (not $game->needs_redraw and $game->lose || $game->win)
137 0 0 if ($delay > 0)
146 0 0 unless ($quit or $restart)
147 0 0 $game->win ? :
151 0 0 if ($key =~ /^[yn]$/iu)
154 0 0 if ($key =~ /^[nq]$/iu) { }
0 0 elsif ($key =~ /^[yr\n]$/iu) { }
167 0 0 if ($game->win)
169 0 0 unless $quit
178 0 0 if (defined $game->best_score and $game->best_score > $self->best_score) { }