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

Function testLongPayload

tests/hdlc_codec_test.cpp:236–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void testLongPayload()
237{
238 // 256-byte payload — exercises the frame buffer boundary
239 std::string data(256, 'X');
240 data[0] = '>';
241 lm::packet pkt("N0CALL", "APRS", {}, data);
242 auto nrzi = makeNrziBitstream(pkt);
243
244 HdlcCodec codec;
245 auto r = feedBits(codec, nrzi);
246 report("long payload: decoded", r.goodFcs == 1);
247}
248
249} // namespace
250

Callers 1

mainFunction · 0.85

Calls 3

makeNrziBitstreamFunction · 0.85
feedBitsFunction · 0.85
reportFunction · 0.70

Tested by

no test coverage detected