-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Currently the "expectations" list for I2C/SPI bus mocks assert an absolute ordering. This is overly restrictive in some cases and locks the test to the process implementation rather than allowing the actual driver requirements to be encoded
Example
An I2C device initialisation that I have goes something like this
- a wakeup/unlock sequence (fixed order)
- transfer of configuration (a number of registers in any order)
- a sleep/lock sequence (fixed order)
With the current crate version, I'm pretty sure my test would have to encode a fixed ordering of operations for that second step. Allowing an unordered set of transactions to occur instead would be beneficial to encode what I actually want to test
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels