Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
58 0 0 0 $$self{'must_beat'} and not $self->can_piece_beat($loc)
98 0 0 0 $$self{'must_beat'} and @{$$self{'destin'};} < 1
0 0 0 not $$self{'must_beat'} and @{$$self{'destin'};} != 1

or 3 conditions

line l !l&&r !l&&!r condition
57 0 0 0 $loc == NL or not $self->occup($loc)
0 0 0 $loc == NL or not $self->occup($loc) or $self->color($loc) != $$self{'color'}
58 0 0 0 $$self{'must_beat'} || $self->can_piece_step($loc)
0 0 0 $$self{'must_beat'} and not $self->can_piece_beat($loc) or not $$self{'must_beat'} || $self->can_piece_step($loc)
66 0 0 0 $$self{'src'} == NL or @{$$self{'destin'};} == 8
81 0 0 0 $$self{'src'} == NL or @{$$self{'destin'};} == 0
91 0 0 0 $$self{'must_beat'} && @{$$self{'destin'};} > 0 && $self->can_piece_beat($self->dst_1) == No || !$$self{'must_beat'} && @{$$self{'destin'};} == 1
98 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
119 0 0 0 $$self{'src'} == NL or @{$$self{'destin'};} == 0