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

Function testSingleFrame

tests/hdlc_codec_test.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56// ── Tests ─────────────────────────────────────────────────────────────────────
57
58void testSingleFrame()
59{
60 lm::packet pkt("N0CALL-9", "APRS", {"WIDE1-1", "WIDE2-1"}, ">Test payload 123");
61 auto nrzi = makeNrziBitstream(pkt);
62
63 HdlcCodec codec;
64 auto r = feedBits(codec, nrzi);
65
66 report("single frame: exactly one complete", r.frames == 1);
67 report("single frame: FCS valid", r.goodFcs == 1);
68}
69
70void testFrameContents()
71{

Callers 1

mainFunction · 0.85

Calls 3

makeNrziBitstreamFunction · 0.85
feedBitsFunction · 0.85
reportFunction · 0.70

Tested by

no test coverage detected