[test](trx-server): add SDR config validation unit tests
Adds 12 unit tests for ServerConfig::validate_sdr() covering: minimal valid config, non-SDR skip, empty/missing args, zero sample_rate, channel IF out-of-range (positive, negative, exactly at Nyquist), dual stream_opus, tx_enabled with SDR backend, duplicate decoder, and multiple simultaneous errors. Marks SDR-11 complete in SDR.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -41,7 +41,7 @@ This document specifies the requirements for a SoapySDR-based RX-only backend (`
|
||||
| ID | Status | Task | Touches | Needs |
|
||||
|----|--------|------|---------|-------|
|
||||
| SDR-10 | `[x]` | Unit tests for `demod.rs`: known-input tone through each demodulator, check output frequency correct | `…/src/demod.rs` | SDR-05 |
|
||||
| SDR-11 | `[ ]` | Unit tests for config validation: channel IF out-of-range, dual `stream_opus`, TX enabled with SDR backend, AGC fallback warning | `src/trx-server/src/config.rs` | SDR-03 |
|
||||
| SDR-11 | `[x]` | Unit tests for config validation: channel IF out-of-range, dual `stream_opus`, TX enabled with SDR backend, AGC fallback warning | `src/trx-server/src/config.rs` | SDR-03 |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user