1pub use ic_platform::pocket_ic::{
19 CanisterStatusResult, ErrorCode, LATEST_SERVER_VERSION, PocketIc, PocketIcBuilder, RejectCode,
20 RejectResponse,
21};
22
23#[cfg(feature = "reply-fixtures")]
24pub mod fixtures;
25
26mod server;
27pub use server::{POCKET_IC_SERVER_VERSION, supports_pocket_ic_server};
28#[cfg(unix)]
29pub mod server_assets;
30
31mod baseline;
32mod baseline_pool;
33mod bounded_pool;
34mod diagnostics;
35mod errors;
36mod lifecycle;
37mod snapshot;
38mod standalone;
39mod standalone_recipe;
40mod startup;
41mod time;
42mod transport;
43#[cfg(feature = "wire")]
44mod wire;
45
46pub use baseline::CachedPocketIcBaseline;
47pub use baseline_pool::{
48 BaselinePoolContractError, BaselinePoolDisposition, BaselinePoolError, BaselinePoolOutcome,
49 BaselinePoolPreparationError, BaselinePoolTimings, BaselinePreparationStage,
50 CachedPocketIcBaselinePool, CachedPocketIcBaselinePoolGuard, ExtraCanisterPolicy,
51 FailureDisposition, PocketIcBaselineRecipe, PreparedBaseline, RebuildReason, ResetDomainKind,
52 ResetPolicies, ResetReceipt, ResetRequirements, StateResetPolicy, TimeResetPolicy,
53};
54pub use diagnostics::{
55 CanisterDiagnosticLogRecord, CanisterDiagnosticLogs, CanisterDiagnosticsBatchContractError,
56 CanisterDiagnosticsBatchEntry, CanisterDiagnosticsBatchReport, CanisterDiagnosticsReport,
57 CanisterDiagnosticsRequest, CanisterLogRenderLimits, DEFAULT_CANISTER_LOG_BYTE_LIMIT,
58 DEFAULT_CANISTER_LOG_RECORD_LIMIT, LabeledCanisterDiagnosticsRequest, PocketIcDiagnosticsExt,
59};
60pub use errors::{CanisterInstallError, StandaloneCanisterInstallError};
61pub use lifecycle::{CanisterInstallExt, InstallSpec, RetryPolicy};
62pub use snapshot::{
63 CanisterSnapshotTarget, ControllerSnapshotError, ControllerSnapshots, PocketIcSnapshotExt,
64 SnapshotCleanupFailure, SnapshotRestoreFunding,
65};
66pub use standalone::StandaloneCanisterFixture;
67pub use standalone_recipe::StandaloneCanisterRecipe;
68pub use startup::{
69 PocketIcInstance, PocketIcManagedServer, PocketIcManagedServerOutput, PocketIcStartupConfig,
70 PocketIcStartupError, PocketIcStartupFailure,
71};
72pub use time::{TickUntilError, advance_and_tick, tick_until};
73pub use transport::{
74 PocketIcCallFailure, PocketIcOperationError, is_dead_pocket_ic_transport_error,
75 try_pocket_ic_operation,
76};
77#[cfg(feature = "wire")]
78pub use wire::{WireCallContext, WireCallError, query_wire, update_wire};
79
80pub mod prelude {
85 pub use super::{CanisterInstallExt, PocketIcDiagnosticsExt, PocketIcSnapshotExt};
86}