Coverage for src/galaxy_beep_frame/converter/state.py: 100%
13 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-31 04:18 +0200
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-31 04:18 +0200
1"""State class."""
3from enum import Enum, auto
6class State(Enum):
7 """Possible Lexer state."""
9 START = auto() # start of a Frame
10 MSG_TYPE = auto() # inside a message type (or one space after)
11 CHANNEL = auto() # inside a channel number (oosa)
12 MESSAGE = auto() # inside a message number (oosa)
13 CONTINUATION = auto() # inside a continuation indicator (oosa)
14 SEQUENCE = auto() # inside a sequence number (oosa)
15 SIZE = auto() # inside a size
16 ANSWER = auto() # inside a answer number (or one space before)
17 HEADER_END = auto() # inside the CR or LN of the end of the header
18 PAYLOAD = auto() # inside the payload
19 END = auto() # inside the END sequence