Expand description
Focused PocketIC test-harness utilities for Internet Computer canisters.
ic-testkit keeps PocketIC itself visible: pic re-exports the upstream
PocketIc and PocketIcBuilder types and adds extension traits for typed
Candid calls, generic installation, diagnostics, snapshots, startup errors,
and a small time conversion. It does not provide a simulator wrapper or a
host-wide runtime lock.
The crate also provides:
- host-only Wasm build and freshness helpers in
artifacts; - marker parsing, aggregation, comparison, and reports in
benchmark; - canister-side marker emission in
performance; - deterministic test principals through
Fake.
The pic and artifacts modules are unavailable when compiling for
wasm32; benchmark data types and marker emission remain available to
canister code.
Modules§
- artifacts
- Host-side artifact discovery, freshness, and Wasm build helpers.
- benchmark
- Parse, pair, aggregate, compare, and report compact benchmark markers.
- performance
- Canister-side benchmark marker emission using IC execution counters.
- pic
- Direct PocketIC types plus value-adding host-test harness extensions.
Structs§
- Fake
- Deterministic principal generator for tests.