Branch Coverage

blib/lib/Chess/Game/MoveList.pm
Criterion Covered Total %
branch 35 58 60.3


line true false branch
163 0 230 if (not defined($player1 && $player2) or $player1 eq $player2)
178 0 1 unless $r_move_list
196 0 0 if ref $self
202 0 62 unless ref $self
204 0 62 unless $obj_data
210 0 431 unless ref $self
212 0 431 unless $obj_data
214 7 424 unless defined $last_moved
220 0 0 unless ref $self
222 0 0 unless $obj_data
228 0 51 unless ref $self
230 0 51 unless $obj_data
231 3 48 unless defined $player
232 0 48 unless grep /^$player$/, @{$$obj_data{'players'};}
238 0 228 unless ref $self
240 0 228 unless $obj_data
241 0 228 if defined $player and not grep(/^$player$/, @{$$obj_data{'players'};})
242 2 226 if (defined $player) { }
255 0 2791 unless ref $self
257 0 2791 unless $obj_data
260 1324 1467 defined $last_moved && $last_moved == 0 ? :
261 2560 231 if (defined $last_moved) { }
262 1236 1324 if $turn == 0
278 0 5 unless ref $self
280 0 5 unless $obj_data
282 1 4 unless defined $last_moved
287 2 2 $last_moved ? :
288 2 2 if ($last_moved == 0)
289 0 2 if ($curr_move == 0) { }