Condition Coverage

lib/Games/Checkers/MoveLocationConstructor.pm
Criterion Covered Total %
condition 0 45 0.0


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 0 $self->{'must_beat'} and not $board->can_piece_beat($loc)
109 0 0 0 $self->{'must_beat'} and @{$self->{'destin'};} < 1
0 0 0 not $self->{'must_beat'} and @{$self->{'destin'};} != 1
123 0 0 0 $self->{'piece'} == &Pawn() and $board->is_crowning->[$self->{'color'}][$dst]

or 3 conditions

line l !l&&r !l&&!r condition
61 0 0 0 $loc == &NL() or not $board->occup($loc)
0 0 0 $loc == &NL() or not $board->occup($loc) or $board->color($loc) != $self->{'color'}
0 0 0 $loc == &NL() or not $board->occup($loc) or $board->color($loc) != $self->{'color'} or $self->{'must_beat'} and not $board->can_piece_beat($loc)
0 0 0 $self->{'must_beat'} || $board->can_piece_step($loc)
0 0 0 $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 0 $self->{'src'} == &NL() or @{$self->{'destin'};} == 100
92 0 0 0 $self->{'src'} == &NL() or @{$self->{'destin'};} == 0
102 0 0 0 $self->{'must_beat'} && @{$self->{'destin'};} > 0 && $self->{'work_board'}->can_piece_beat($self->dst_1) == &No() || !$self->{'must_beat'} && @{$self->{'destin'};} == 1
109 0 0 0 $self->{'src'} == &NL() or $self->{'must_beat'} and @{$self->{'destin'};} < 1
0 0 0 $self->{'src'} == &NL() or $self->{'must_beat'} and @{$self->{'destin'};} < 1 or not $self->{'must_beat'} and @{$self->{'destin'};} != 1
133 0 0 0 $self->{'src'} == &NL() or @{$self->{'destin'};} == 0