Branch Coverage

blib/lib/Games/TicTacToe/Board.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
58 1 0 if $self->isCellEmpty($i)
73 1 3 unless defined $index
74 1 2 unless defined $symbol
75 1 1 unless $symbol =~ /^[X|O]$/i
78 0 1 if ($index =~ /^\d*$/ and $index >= 0 and $index < $size) { }
95 1 2 unless defined $index
98 1 1 if ($index =~ /^\d*$/ and $index >= 0 and $index < $size) { }
118 0 0 if $self->isCellEmpty($i - 1)
161 0 0 unless $self->cellContains($cells->[$i], $symbol)
245 0 0 if ($pad_size % 2 == 0) { }
261 0 0 if ($text =~ /^\d+$/) { }
0 0 elsif ($text eq 'X') { }
0 0 elsif ($text eq 'O') { }