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

Function main

tests/hdlc_codec_test.cpp:251–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249} // namespace
250
251int main()
252{
253 testStateTransitions();
254 testSingleFrame();
255 testFrameContents();
256 testFcsMatchesLibmodem();
257 testBadFcs();
258 testTwoConsecutiveFrames();
259 testPreambleCount();
260 testReset();
261 testLongPayload();
262
263 if (g_failed == 0)
264 std::printf("All tests passed.\n");
265 else
266 std::printf("%d test(s) FAILED.\n", g_failed);
267
268 return g_failed ? 1 : 0;
269}

Callers

nothing calls this directly

Calls 9

testStateTransitionsFunction · 0.85
testSingleFrameFunction · 0.85
testFrameContentsFunction · 0.85
testFcsMatchesLibmodemFunction · 0.85
testBadFcsFunction · 0.85
testTwoConsecutiveFramesFunction · 0.85
testPreambleCountFunction · 0.85
testLongPayloadFunction · 0.85
testResetFunction · 0.70

Tested by

no test coverage detected