Expand description
PocketIC wrapper and fixture helpers for host-side canister tests.
Structs§
- Cached
PicBaseline - CachedPicBaseline
- Cached
PicBaseline Guard - CachedPicBaselineGuard
- Controller
Snapshots - ControllerSnapshots
- Install
Spec - InstallSpec
- Pic
- Pic Thin wrapper around a PocketIC instance.
- PicBuilder
- PicBuilder Thin wrapper around the PocketIC builder.
- PicCall
Context - PicCall
Error - PicCallError
- PicInstall
Error - PicInstallError
- PicRuntime
Config - Runtime policy for resolving the PocketIC server binary used by
PicBuilder. - PicSerial
Guard - PicSerialGuard
- Standalone
Canister Fixture - StandaloneCanisterFixture
Enums§
- PicCall
Error Kind - PicSerial
Guard Error - PicSerialGuardError
- PicStart
Error - PicStartError
- Standalone
Canister Fixture Error - StandaloneCanisterFixtureError
Functions§
- acquire_
pic_ serial_ guard - Acquire the shared PocketIC serialization guard for the current process.
- ensure_
pocket_ ic_ bin - Resolve the PocketIC server binary from environment/config and panic on failure.
- install_
prebuilt_ canister - install_
prebuilt_ canister_ from_ spec - install_
prebuilt_ canister_ with_ cycles - pic
- Create a fresh PocketIC instance with the default application subnet layout.
- restore_
or_ rebuild_ cached_ pic_ baseline - Restore one cached PocketIC baseline, rebuilding it if the owned PocketIC instance has died between tests.
- try_
acquire_ pic_ serial_ guard - Acquire the shared PocketIC serialization guard for the current process.
- try_
ensure_ pocket_ ic_ bin - Resolve the PocketIC server binary from environment/config without panicking.
- try_
install_ prebuilt_ canister - try_
install_ prebuilt_ canister_ from_ spec - try_
install_ prebuilt_ canister_ with_ cycles - try_pic
- Create a fresh PocketIC instance without panicking on startup failures.