#embassy #mocked #type #framework #collection #unit-testing #version

embassy-mock

An unofficial collection of mocked types for the Embassy framework

5 releases (3 breaking)

0.3.0 Jan 11, 2024
0.2.1 Aug 23, 2023
0.2.0 Aug 23, 2023
0.1.0 Aug 15, 2023
0.0.0 Aug 14, 2023

#494 in Testing

38 downloads per month

MIT license

29KB
301 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.2–1.8MB
~42K SLoC