Skip to main content

Module pic

Module pic 

Source
Expand description

PocketIC re-exports and value-adding host-test harness helpers.

Structs§

CachedPocketIcBaseline
CachedPocketIcBaseline
CachedPocketIcBaselineGuard
CachedPocketIcBaselineGuard
CandidCallContext
CandidCallError
CandidCallError
CanisterInstallError
CanisterInstallError
ControllerSnapshots
Deterministically ordered snapshots captured with one controller policy.
InstallSpec
InstallSpec
PocketIc
Main entry point for interacting with PocketIC.
PocketIcBuilder
RejectResponse
User-facing type describing an unsuccessful (also called reject) call response.
RetryPolicy
Retry limits and simulated cooldown for install-code operations.
SnapshotAttemptFailure
One rejected sender attempt for a snapshot operation.
SnapshotCleanupFailure
Failure to remove a snapshot while rolling back a partial capture.
StandaloneCanisterFixture
StandaloneCanisterFixture
StandaloneCanisterInstallError
A failed standalone install that returns ownership of the caller’s instance.

Enums§

CandidCallErrorKind
ControllerSnapshotError
Structured controller-snapshot failure.
ErrorCode
User-facing error codes.
RejectCode
User-facing reject codes.

Constants§

LATEST_SERVER_VERSION
Public to facilitate downloading the PocketIC server.

Traits§

CandidCallExt
Typed Candid calls with contextual encoding, rejection, and decoding errors.
CanisterInstallExt
Generic canister installation and install-code retry policies.
PocketIcDiagnosticsExt
Reusable PocketIC failure diagnostics.
PocketIcSnapshotExt
Controller-aware capture and restore of related canister snapshots.

Functions§

restore_or_rebuild_cached_pocket_ic_baseline
Restore one cached PocketIC baseline, rebuilding it if the owned PocketIC instance has died between tests.