Skip to content

Add baseline test coverage for pkg/simpleradio - #720

Merged
dharmab merged 1 commit into
mainfrom
test/simpleradio-baseline-coverage
Jul 26, 2026
Merged

Add baseline test coverage for pkg/simpleradio#720
dharmab merged 1 commit into
mainfrom
test/simpleradio-baseline-coverage

Conversation

@dharmab

@dharmab dharmab commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Context

Split off from #712 (fixing SRS transmissions being split into fragments). That PR added a large test suite to pkg/simpleradio, but most of it exercises pre-existing behavior unrelated to the fix. Splitting it out here lets it be reviewed independently of the fix's regression tests.

What's covered

  • Opus frame encode/decode round trip and malformed-audio rejection (frame_test.go)
  • Frequency parsing and radio/frequency matching (frequency_test.go)
  • Client sync filtering: coalition/frequency admission, retuning, removal (sync_test.go)
  • Server settings handling and message routing, including SRS's inconsistent boolean casing (message_test.go)
  • Message JSON round trips and a captured (scrubbed) sync payload (types/message_test.go)
  • Radio/RadioInfo frequency matching in the types package (types/radio_test.go, types/info_test.go)

None of this touches receive.go's transmission-window logic, which is what #712 changes and tests separately.

make test && make lint vet fix format && go mod tidy   # all pass, no further changes

🤖 Generated with Claude Code

Split off from the SRS transmission-splitting fix: these tests cover
pre-existing, unrelated behavior (frame encode/decode round trips,
frequency/radio matching, client sync filtering, server settings, and
message JSON) rather than anything changed by that fix, so they can be
reviewed independently.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dharmab
dharmab enabled auto-merge (rebase) July 26, 2026 20:04
@dharmab
dharmab merged commit 5eaab3b into main Jul 26, 2026
9 checks passed
@dharmab
dharmab deleted the test/simpleradio-baseline-coverage branch July 26, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant