Branch Coverage

lib/Games/Checkers/Game.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
35 0 0 if $params{'dumb_chars'}
41 0 0 defined $ENV{'_WHITE_STARTS'} ? :
0 0 (defined $ENV{'_WHITE_STARTS'} ? $ENV{'_WHITE_STARTS'} : $main::RULES{'WHITE_STARTS'}) ^ ($params{'black'} || 0) ? :
0 0 defined $params{'color'} ? :
72 0 0 if $params{'edit_board'}
74 0 0 if $params{'show_menu'}
82 0 0 if ($self->{'frontend'})
86 0 0 unless $self->{'board'}
94 0 0 if ($self->{'frontend'}) { }
98 0 0 unless $self->{'dumb_term'}
110 0 0 if ($self->{'frontend'})
122 0 0 if ($self->{'frontend'})
123 0 0 unless $self->{'frontend'}->quit
135 0 0 if ($rv == -1)
138 0 0 if ($rv == -2)
149 0 0 if ($self->{'frontend'}) { }
160 0 0 if ($self->{'frontend'}) { }
163 0 0 if $break
170 0 0 if ($self->{'frontend'}) { }
175 0 0 unless $self->{'dumb_term'}
178 0 0 unless $self->{'dumb_term'}
203 0 0 $random eq 1 || $random eq ($color == &White() ? 'w' : 'b') ? :
219 0 0 unless $creating_move->status == &Ok()
222 0 0 $move == &NO_MOVE() ? :
236 0 0 if ($self->{'frontend'}) { }
237 0 0 if $self->call_frontend('show_move', $move, $move_str, $is_second, $plies)
240 0 0 $is_second ? :
246 0 0 $color == &White() ? :
256 0 0 $main::RULES{'WHITE_STARTS'} ? :
259 0 0 $starting ? :
0 0 (($starting ? $starting_color : $self->{'color'}) == &White() xor $opposite) ? :
270 0 0 if ($self->{'frontend'}) { }
271 0 0 if $self->call_frontend('show_result', $message)
285 0 0 $code eq '*' ? :
0 0 $code eq '1/2-1/2' || $code eq '1-1' ? :
0 0 $code eq '0-1' || $code eq '0-2' ? :
0 0 $code eq '1-0' || $code eq '2-0' ? :
292 0 0 $self->can_move ? :
302 0 0 if ($self->{'frontend'})