Expand description
§ic-test
ic-test is a utility for building high-level integration tests for cross-chain projects
on the Internet Computer (IC). It bridges IC and EVM environments by generating appropriate
interfaces and managing runtime test orchestration.
This crate supports:
- Automatic handling of IC canisters and EVM contracts.
- Simplified test writing using high-level APIs.
- Optional EVM support via feature flag
"evm".
Structs§
- Call
Builder - A builder for creating and executing canister method calls in tests.
- Deploy
Builder - Builder struct for configuring and performing a canister deployment.
- Icp
- A local Internet Computer environment based on
PocketIc. - IcpTest
- Helper structure combining test environments
- IcpUser
- A simulated Internet Computer user for use in tests.
Enums§
- Call
Error - Errors that can occur during a canister method call.
- Call
Mode - Call mode.
- Deploy
Error - Describes potential errors that can occur during the deployment process.
- Deploy
Mode - Represents the deployment strategy for a canister.
Traits§
- Caller
- Trait for objects that can initiate canister calls.
- Deployer
- A type capable of deploying canisters with arguments and lifecycle control.
Functions§
- convert
- Utility function to convert between types via Candid encoding/decoding.