Expand description
Library to abstract the canister runtime so that code making requests to canisters can be reused:
- in production using
ic_cdk, - in unit tests by mocking this trait,
- in integration tests by implementing this trait for
PocketIc.
Structs§
- IcRuntime
- Runtime when interacting with a canister running on the Internet Computer.
- Stub
Runtime - An implementation of
Runtimethat returns pre-defined results from a queue. This runtime is primarily intended for testing purposes.
Enums§
- IcError
- Error returned by the Internet Computer when making an inter-canister call.
Traits§
- Runtime
- Abstract the canister runtime so that code making requests to canisters can be reused: