embedded-hal-mock icon indicating copy to clipboard operation
embedded-hal-mock copied to clipboard

Mocks for testing embedded-hal based drivers without hardware access.

Results 19 embedded-hal-mock issues
Sort by recently updated
recently updated
newest added

Currently, in `no_std` projects it is required to include the std library to test with mocks that return errors, this is because the only supported `MockError` is one that takes...

This is an initial draft for adding a PWM mock in eh0. I'm not sure if differentiation between multiple channels needs to be supported directly. Any feedback would be greatly...

This is a initial draft for adding a CAN mock. Any feedback would be greatly appreciated.

hi, are there any plans to add a mock for CAN? if so and if I can be of any help, please let me know.

enhancement
good first issue

I'm just getting started with Embedded Rust (40 years of embedded C though) and find the best way is to dig in to a relevant project and see what happens....

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...

First of all, thanks for your work here. This project has been a real time-saver. When you have a large set of mocks, it can become quite difficult to debug...

so i'm working on drivers with FFI from rust -> c -> rust to allow iterative upgrading of existing c to rust, and as unwinding doesn't work over FFI boundaries,...

enhancement

For driver testing it is sometimes useful to expect a series of operations across a variety of peripherals (for example, pins, SPI, delays). I haven't yet worked out exactly how,...