19 lines
600 B
Rust
19 lines
600 B
Rust
/// 公共测试工具模块
|
|
///
|
|
/// 提供测试环境搭建、测试数据固件、辅助函数和自定义断言
|
|
|
|
pub mod setup;
|
|
pub mod fixtures;
|
|
pub mod helpers;
|
|
pub mod assertions;
|
|
|
|
// 重新导出常用类型和函数
|
|
pub use setup::{init_test_env, TestConfig, TestCleanup};
|
|
pub use fixtures::{
|
|
Address, Hash, TestAccount, TestTransaction, TestBlock, TestNodeConfig,
|
|
create_test_accounts, create_test_transaction, create_test_blockchain,
|
|
create_test_node_configs,
|
|
};
|
|
pub use helpers::{wait_for_condition, retry_until_success, run_concurrent, random, perf};
|
|
pub use assertions::*;
|