- Notifications
You must be signed in to change notification settings - Fork81
Closed
Milestone
Description
Hello,
In socketcan 1.7.0,CanFrame::new(...)
had parameters as options to indicate that the canframe built was intended as an Error frame. See:https://docs.rs/socketcan/1.7.0/socketcan/struct.CANFrame.html#method.new
In 2.0.0, it appears that we cannot constructCanErrorFrame
s and that this is intentionally not supported. See:https://docs.rs/socketcan/2.0.0/src/socketcan/frame.rs.html#752-754
For my application, I want to mock something that returnsCanFrame
data.
I want to be able to createCanErrorFrame
s to test our error cases.
How would I go about creating a CanErrorFrame for the purposes of mocking in tests? This is currently a requirement for me to move my app from 1.7.0 to 2.0.0.
Metadata
Metadata
Assignees
Labels
No labels