1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! MPC Wallet Core Test Suite
//!
//! Comprehensive test coverage for the MPC agent wallet SDK:
//!
//! ## Test Organization
//!
//! - **Unit Tests** (`unit/`): Individual component tests
//! - `mpc_core_test.rs` - DKG, signing primitives
//! - `policy_test.rs` - Policy engine enforcement
//! - `chain_adapter_test.rs` - Chain operations
//!
//! - **Integration Tests** (`integration/`): End-to-end flows
//! - `full_flow_test.rs` - Complete signing flow
//! - `multichain_test.rs` - Cross-chain operations
//!
//! - **Fuzz Tests** (`fuzz/`): Property-based testing
//! - `policy_fuzz.rs` - Policy engine edge cases
//! - `signing_fuzz.rs` - Signing flow invariants
//!
//! - **Invariant Tests** (`invariant/`): Critical guarantees
//! - `wallet_invariant.rs` - Key share consistency
//!
//! ## Running Tests
//!
//! ```bash
//! # Run all tests
//! cargo test --package mpc-wallet-core
//!
//! # Run specific test module
//! cargo test --package mpc-wallet-core unit::
//! cargo test --package mpc-wallet-core integration::
//! cargo test --package mpc-wallet-core fuzz::
//! cargo test --package mpc-wallet-core invariant::
//!
//! # Run with all features
//! cargo test --package mpc-wallet-core --all-features
//!
//! # Run with verbose output
//! cargo test --package mpc-wallet-core -- --nocapture
//! ```