Condition Coverage

blib/lib/Games/TicTacToe.pm
Criterion Covered Total %
condition 4 24 16.6


and 3 conditions

line !l l&&!r l&&r condition
179 0 0 1 $self->has_players and scalar @{$self->players;} == 2
228 1 0 0 $self->has_players and scalar @{$self->players;} == 2
232 0 0 0 defined $move and $self->_getCurrentPlayer->type eq 'H'
325 0 0 0 defined $move && $move =~ /^\d+$/ && $move >= 1 && $move <= $self->board->getSize && $self->board->isCellEmpty($move - 1)
340 0 0 0 defined $symbol && $symbol =~ /^[X|O]$/i
352 0 0 0 defined $size && $size >= 3

or 3 conditions

line l !l&&r !l&&!r condition
203 1 0 0 not $self->has_players or scalar @{$self->players;} == 0
300 1 0 0 not $self->has_players or scalar @{$self->players;} == 0