# base_rust_demo **Repository Path**: cekongsb/base_rust_demo ## Basic Information - **Project Name**: base_rust_demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-12 - **Last Updated**: 2025-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ```shell # 1. 运行单元测试 # 单元测试位于每个模块的 tests 子模块中,使用 #[cfg(test)] 标记。 cargo test # 这将运行所有单元测试和集成测试。 # 2. 运行特定模块的测试 # 如果你想只运行 shapes 模块的测试: cargo test --package shapes # 这将运行 shapes 模块的所有测试。 cargo test --lib test_sort_strings # 这将运行 test_sort_strings 函数的测试。 # 3. 运行集成测试 # 集成测试位于 tests 目录下,可以单独运行: cargo test --test integration_test # 4. 运行示例程序 cargo run ```