spaxel/mothership/sim
jedarden ab5e79fb26 test: add fuzz tests for binary frame parser, JSON protocol, and phase sanitization property tests
- FuzzParseBinaryFrame: validates ParseFrame never panics on any input
  Seed corpus: valid frame, truncated header, n_sub mismatch, channel=0, n_sub>128
  Property: never panic; drop/parse/error all OK

- FuzzParseJSONFrame: validates ParseJSONMessage never panics on any input
  Seed corpus: hello, health, ble, motion_hint, ota_status, unknown type
  Property: never panic; unknown types return typed error

- Phase sanitization property test: validates output never contains NaN or Inf
  For all valid int8 I/Q pairs: all-zero, max int8 (127), min int8 (-128),
  alternating signs, typical CSI values, extreme RSSI values

All fuzz tests run for 60 seconds with no panics found.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-04 06:00:48 -04:00

8.7 MiB
Executable file