| blib/lib/Game/Battleship/Grid.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 13 | 24 | 54.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 64 | 2 | 3 | 22 | $x1 <= $self->{'dimension'}[0] and $y1 <= $self->{'dimension'}[1] |
| 75 | 30 | 34 | 7 | defined $_->{'position'} and _segment_intersection($x0, $y0, $x1, $y1, @{$$_{'position'}[0];}, @{$$_{'position'}[1];}) |
| 163 | 13 | 2 | 6 | $u <= 1 && $u >= 0 && $v <= 1 && $v >= 0 |
| 167 | 1 | 0 | 16 | $t1 != 0 and $t2 != 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 182 | 0 | 0 | 0 | $d < $a or $c > $b |
| 0 | 0 | 0 | $d == $a or $c == $b | |
| 201 | 0 | 0 | 1 | $d < $a or $c > $b |
| 0 | 0 | 1 | $d == $a or $c == $b |