Expand description
PocketIC re-exports and value-adding host-test harness helpers.
Modules§
- prelude
- Extension traits for common PocketIC harness operations.
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 - Pocket
IcStartup Error - A panic raised while PocketIC constructs an instance.
- 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
- Standalone
Canister Install Error - A failed standalone install that returns ownership of the caller’s instance.
Enums§
- Candid
Call Error Kind - Controller
Snapshot Error - Structured controller-snapshot failure.
- Error
Code - User-facing error codes.
- Reject
Code - User-facing reject codes.
- Retry
Policy Error - Invalid install-code retry policy configuration.
- Snapshot
Restore Funding - Caller-selected cycle funding applied immediately before snapshot restore.
Constants§
- LATEST_
SERVER_ VERSION - Public to facilitate downloading the PocketIC server.
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
IcBuilder Ext - Fallible construction at PocketIC’s currently panicking builder boundary.
- Pocket
IcDiagnostics Ext - Reusable PocketIC failure diagnostics.
- Pocket
IcSnapshot Ext - Controller-aware capture and restore of related canister snapshots.
- Pocket
IcTime Ext - Focused time conversions missing from PocketIC’s native API.
Functions§
- restore_
or_ rebuild_ cached_ pocket_ ic_ baseline - Restore one cached PocketIC baseline, rebuilding it if the owned PocketIC instance has died between tests.