| 182 | } |
| 183 | |
| 184 | void testPreambleCount() |
| 185 | { |
| 186 | lm::packet pkt("N0CALL", "APRS", {}, ">preamble count"); |
| 187 | auto nrzi = makeNrziBitstream(pkt, 10, 3); |
| 188 | |
| 189 | HdlcCodec codec; |
| 190 | for (uint8_t bit : nrzi) |
| 191 | codec.processBit(bit); |
| 192 | |
| 193 | // Preamble count should be >= 10 (the requested preamble flags). |
| 194 | report("preamble count >= 10", codec.preambleCount() >= 10); |
| 195 | } |
| 196 | |
| 197 | void testReset() |
| 198 | { |
no test coverage detected