| 130 | } |
| 131 | |
| 132 | void testSamplerStatusIdempotent() |
| 133 | { |
| 134 | TransmitModel tx; |
| 135 | |
| 136 | tx.applyApdSamplerStatus(kvs({ |
| 137 | {"tx_ant", "ANT1"}, |
| 138 | {"selected_sampler", "RX_A"}, |
| 139 | {"valid_samplers", "RX_A,XVTA"}, |
| 140 | })); |
| 141 | |
| 142 | QSignalSpy spy(&tx, &TransmitModel::apdSamplerChanged); |
| 143 | // Re-apply identical status — must not re-emit. |
| 144 | tx.applyApdSamplerStatus(kvs({ |
| 145 | {"tx_ant", "ANT1"}, |
| 146 | {"selected_sampler", "RX_A"}, |
| 147 | {"valid_samplers", "RX_A,XVTA"}, |
| 148 | })); |
| 149 | report("identical sampler status is idempotent", spy.count() == 0); |
| 150 | } |
| 151 | |
| 152 | void testResetStateClearsSamplers() |
| 153 | { |
no test coverage detected