Expand description
PocketIC re-exports and value-adding host-test harness helpers.
Structs§
- Cached
Pocket IcBaseline - CachedPocketIcBaseline
- Cached
Pocket IcBaseline Guard - CachedPocketIcBaselineGuard
- Candid
Call Context - Candid
Call Error - CandidCallError
- Canister
Install Error - CanisterInstallError
- Controller
Snapshots - Deterministically ordered snapshots captured with one controller policy.
- Install
Spec - InstallSpec
- Pocket
Ic - Main entry point for interacting with PocketIC.
- Pocket
IcBuilder - Reject
Response - User-facing type describing an unsuccessful (also called reject) call response.
- Retry
Policy - Retry limits and simulated cooldown for install-code operations.
- Snapshot
Attempt Failure - One rejected sender attempt for a snapshot operation.
- Snapshot
Cleanup Failure - Failure to remove a snapshot while rolling back a partial capture.
- Standalone
Canister Fixture - StandaloneCanisterFixture
Enums§
- Candid
Call Error Kind - Controller
Snapshot Error - Structured controller-snapshot failure.
- Error
Code - User-facing error codes.
- Pocket
IcStart Error - PocketIcStartError
- Reject
Code - User-facing reject codes.
- Standalone
Canister Fixture Error - StandaloneCanisterFixtureError
Traits§
- Candid
Call Ext - Typed Candid calls with contextual encoding, rejection, and decoding errors.
- Canister
Install Ext - Generic canister installation and install-code retry policies.
- Pocket
IcDiagnostics Ext - Reusable PocketIC failure diagnostics.
- Pocket
IcSnapshot Ext - Controller-aware capture and restore of related canister snapshots.
- Pocket
IcTime Ext - Multi-step time helpers that add test policy beyond PocketIC’s primitives.
Functions§
- build_
pocket_ ic - Build a custom PocketIC topology with typed startup diagnostics.
- install_
prebuilt_ canister - Install one already-built wasm module into a fresh PocketIC instance with caller-provided init args and no application-specific bootstrap assumptions.
- install_
prebuilt_ canister_ from_ spec - Install one already-built wasm module from a generic install specification into a fresh PocketIC instance.
- install_
prebuilt_ canister_ with_ cycles - Install one already-built wasm module into a fresh PocketIC instance with caller-provided init args and explicit install cycles.
- pic
- Create a fresh PocketIC instance with the default application subnet layout.
- restore_
or_ rebuild_ cached_ pocket_ ic_ baseline - Restore one cached PocketIC baseline, rebuilding it if the owned PocketIC instance has died between tests.
- try_
build_ pocket_ ic - Build a custom PocketIC topology without panicking on startup failures.
- try_
install_ prebuilt_ canister - Install one already-built wasm module into a fresh PocketIC instance with caller-provided init args and no application-specific bootstrap assumptions.
- try_
install_ prebuilt_ canister_ from_ spec - Install one already-built wasm module from a generic install specification into a fresh PocketIC instance.
- try_
install_ prebuilt_ canister_ with_ cycles - Install one already-built wasm module into a fresh PocketIC instance with caller-provided init args and explicit install cycles.
- try_pic
- Create a fresh PocketIC instance without panicking on startup failures.