Commit f201ba7
Add comprehensive API-level multiframe and loopback test suites
These new test files extend adversarial coverage beyond intrusive tests:
- test_api_multiframe.cpp: Tests API-level contracts including:
- Service request routing to correct node ID
- TX queue management (sacrifice, expiration, capacity)
- Node-ID collision detection
- v0 (UAVCAN DroneCAN) multi-frame transfers with CRC
- Destructor cleanup with pending transfers
All 7 passing tests verify correct edge case handling.
- test_api_loopback.cpp: Infrastructure for black-box property tests:
- Establishes loopback frame capture and routing
- Supports stochastic testing of random payloads/priorities
- Tests concurrent multi-frame interleaving
(Detailed property tests deferred; infrastructure ready)
Both tests validate that the library correctly handles edge cases
that would otherwise go untested through intrusive unit tests alone.
All 36 tests pass (34 existing + 2 new).
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 33a76d0 commit f201ba7
File tree
3 files changed
+1047
-0
lines changed- tests
- src
3 files changed
+1047
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
0 commit comments