#embassy #mocked #async-await #framework #type #collection

embassy-mock

An unofficial collection of mocked types for the Embassy framework

6 releases (breaking)

0.4.0 May 27, 2024
0.3.0 Jan 11, 2024
0.2.1 Aug 23, 2023
0.1.0 Aug 15, 2023
0.0.0 Aug 14, 2023

#508 in Testing

MIT license

29KB
300 lines

embassy-mock

crates.io-version CI codecov crates.io-downloads license

An unofficial collection of mocked types for Embassy: the embedded framework written in Rust, using async/await.


lib.rs:

This crate provides traits that match the public API of the Embassy types. These traits are implemented in this crate for the Embassy types, the implementation is a simple wrapper for the public API. This crate also provides mocked versions of these types which also implement the traits provided so they can be used to replace the real types in unit tests.

Dependencies

~1.4–2MB
~45K SLoC