CAN (SocketCAN) reference connector¶
Verification artefacts for the CAN reference connector. Layer-1
(pure-logic) cases use MockCanInterface; layer-2 cases gated on
socketcan-integration require a Linux host with the vcan
kernel module loaded (modprobe vcan && ip link add dev vcan0 type
vcan && ip link set up vcan0).
Compile-time API surface check that |
Property test ( |
Layer-1 end-to-end test: |
As Classical CAN round-trip vi... (TEST_0502) but with |
Open three inbound readers on the same mock iface with
distinct |
Gateway owns two mock ifaces ( |
Drive |
Two-iface gateway. Inject an error-passive error frame on
|
Static check that the SocketCAN sockets and any tokio runtime
handle live entirely inside the |
With |
With |
Build the crate twice — once with default features, once with
|
Layer-2 integration test ( |
Regression-guard for the explicit anti-requirement
NO plugin-visible error-fra... (REQ_0643). Inject error frames of every classified
kind (error-warning, error-passive, bus-off) via
|
Add 8 channels to the same mock iface in a known order; assert
the RX dispatch loop and the TX drain loop iterate them in
that insertion order on every cycle. Assert no per-cycle heap
allocation: instrument a |