Condition Coverage

blib/lib/Games/2048/Board.pm
Criterion Covered Total %
condition 1 35 2.8


and 3 conditions

line !l l&&!r l&&r condition
98 0 0 0 $redraw and not $self->needs_redraw
125 0 0 0 defined $value and length $value > $self->cell_width * $self->cell_height
133 0 0 0 $this_line >= 0 and $this_line < $lines
149 0 0 0 $tile and $tile->appearing
0 0 0 $tile and $tile->appearing and $self->appearing
196 0 0 0 $appearing and not $self->appearing->update
197 0 0 0 $moving && $self->moving->update
0 0 0 $self->moving and not $moving && $self->moving->update

or 2 conditions

line l !l condition
129 0 0 $value // ''
445 55 0 $colors //= 0

or 3 conditions

line l !l&&r !l&&!r condition
205 0 0 0 $self->win or $self->lose

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
168 0 0 0 0 $within xor $on