blib/lib/Game/Battleship/Grid.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 24 | 58.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
64 | 2 | 3 | 17 | $x1 <= $self->dimension->[0] and $y1 <= $self->dimension->[1] |
75 | 30 | 30 | 2 | defined $_->position and _segment_intersection($x0, $y0, $x1, $y1, @{$_->position->[0];}, @{$_->position->[1];}) |
164 | 11 | 1 | 1 | $u <= 1 && $u >= 0 && $v <= 1 && $v >= 0 |
168 | 2 | 0 | 11 | $t1 != 0 and $t2 != 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
183 | 1 | 0 | 1 | $d < $a or $c > $b |
0 | 0 | 1 | $d == $a or $c == $b | |
202 | 0 | 0 | 0 | $d < $a or $c > $b |
0 | 0 | 0 | $d == $a or $c == $b |