| 249 | } // namespace |
| 250 | |
| 251 | int 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 | } |
nothing calls this directly
no test coverage detected