blib/lib/Games/TicTacToe.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 4 | 24 | 16.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
111 | 0 | 0 | 1 | $self->has_players and scalar @{$self->players;} == 2 |
160 | 1 | 0 | 0 | $self->has_players and scalar @{$self->players;} == 2 |
164 | 0 | 0 | 0 | defined $move and $self->_getCurrentPlayer->type eq 'H' |
257 | 0 | 0 | 0 | defined $move && $move =~ /^\d+$/ && $move >= 1 && $move <= $self->board->getSize && $self->board->isCellEmpty($move - 1) |
272 | 0 | 0 | 0 | defined $symbol && $symbol =~ /^[X|O]$/i |
284 | 0 | 0 | 0 | defined $size && $size >= 3 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
135 | 1 | 0 | 0 | not $self->has_players or scalar @{$self->players;} == 0 |
232 | 1 | 0 | 0 | not $self->has_players or scalar @{$self->players;} == 0 |