Skip to content
Unverified Commit ea5ea420 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Implements mocking of runtime apis (#5448)



* Implements mocking of runtime apis

This pr adds support for easily mock runtime api implementations for
tests by using the `mock_impl_runtime_apis!` macro. The syntax is
similar to `impl_runtime_apis!`. The mocked implementation automatically
implements `ApiExt`, `ApiErrorExt` and `Core` as these are required by
the runtime api traits, but not required in tests or only a subset of them.

* Fix warnings

* Update primitives/api/proc-macro/src/utils.rs

Co-Authored-By: default avatarNikolay Volf <[email protected]>

* Review feedback

Co-authored-by: default avatarNikolay Volf <[email protected]>
parent a691281f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment