Coverage for app/domain/probe/entities/probe.py: 100%
11 statements
« prev ^ index » next coverage.py v7.14.1, created at 2026-06-16 20:06 +0000
« prev ^ index » next coverage.py v7.14.1, created at 2026-06-16 20:06 +0000
1from app.domain.probe.exceptions import InvalidCoordinateError
2from app.schemas.direction import Direction
5class Probe:
6 def __init__(self, x: int, y: int, direction: Direction):
7 if x < 0:
8 raise InvalidCoordinateError(f"{x} (X value) is not a positive integer")
10 if y < 0:
11 raise InvalidCoordinateError(f"{y} (Y value) is not a positive integer")
13 self.x = x
14 self.y = y
15 self.direction = direction