Skip to main content

Module pic

Module pic 

Source
Expand description

PocketIC wrapper and fixture helpers for host-side canister tests.

Structs§

CachedPicBaseline
CachedPicBaseline
CachedPicBaselineGuard
CachedPicBaselineGuard
ControllerSnapshots
ControllerSnapshots
InstallSpec
InstallSpec
Pic
Pic Thin wrapper around a PocketIC instance.
PicBuilder
PicBuilder Thin wrapper around the PocketIC builder.
PicCallContext
PicCallError
PicCallError
PicInstallError
PicInstallError
PicRuntimeConfig
Runtime policy for resolving the PocketIC server binary used by PicBuilder.
PicSerialGuard
PicSerialGuard
StandaloneCanisterFixture
StandaloneCanisterFixture

Enums§

PicCallErrorKind
PicSerialGuardError
PicSerialGuardError
PicStartError
PicStartError
StandaloneCanisterFixtureError
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.