MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / testPreambleCount

Function testPreambleCount

tests/hdlc_codec_test.cpp:184–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void 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
197void testReset()
198{

Callers 1

mainFunction · 0.85

Calls 4

makeNrziBitstreamFunction · 0.85
preambleCountMethod · 0.80
reportFunction · 0.70
processBitMethod · 0.45

Tested by

no test coverage detected