Condition Coverage

blib/lib/Game/Battleship/Grid.pm
Criterion Covered Total %
condition 8 24 33.3


and 3 conditions

line !l l&&!r l&&r condition
62 2 2 15 $x1 <= $self->dimension->[0] and $y1 <= $self->dimension->[1]
73 30 30 0 defined $_->position and _segment_intersection($x0, $y0, $x1, $y1, @{$_->position->[0];}, @{$_->position->[1];})
161 8 3 0 $u <= 1 && $u >= 0 && $v <= 1 && $v >= 0
165 0 0 14 $t1 != 0 and $t2 != 0

or 3 conditions

line l !l&&r !l&&!r condition
180 0 0 0 $d < $a or $c > $b
0 0 0 $d == $a or $c == $b
199 0 0 0 $d < $a or $c > $b
0 0 0 $d == $a or $c == $b