Branch Coverage

lib/Games/Checkers/MoveLocationConstructor.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
48 0 0 $self->{'work_board'} ? :
61 0 0 if $loc == &NL() or not $board->occup($loc) or $board->color($loc) != $self->{'color'} or $self->{'must_beat'} and not $board->can_piece_beat($loc) or not $self->{'must_beat'} || $board->can_piece_step($loc)
74 0 0 if $self->{'src'} == &NL() or @{$self->{'destin'};} == 100
76 0 0 unless my $board = $self->{'work_board'}
77 0 0 if ($self->{'must_beat'}) { }
78 0 0 unless $board->occup($self->dst_1)
79 0 0 unless $board->can_piece_beat($self->dst_1, $dst)
81 0 0 if @{$self->{'destin'};} > 0
82 0 0 unless $board->can_piece_step($self->{'src'}, $dst)
92 0 0 if $self->{'src'} == &NL() or @{$self->{'destin'};} == 0
109 0 0 if $self->{'src'} == &NL() or $self->{'must_beat'} and @{$self->{'destin'};} < 1 or not $self->{'must_beat'} and @{$self->{'destin'};} != 1
122 0 0 if $self->{'must_beat'}
123 0 0 if ($self->{'piece'} == &Pawn() and $board->is_crowning->[$self->{'color'}][$dst])
133 0 0 if $self->{'src'} == &NL() or @{$self->{'destin'};} == 0
146 0 0 @{$self->{'destin'};} == 0 ? :
151 0 0 @{$self->{'destin'};} == 1 ? :