在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用split-tests
星标5
分支0
更新时间2026年6月15日 13:53
Split inline
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Split inline
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | split-tests |
| description | Split inline |
Always split inline #[cfg(test)] mod tests { ... } blocks into co-located _test.rs files.
For each Rust source file src/foo.rs that contains an inline test block:
src/foo_test.rs with use super::*; at the top, followed by the bare test functions (no mod tests { } wrapper)src/foo.rs, replace the inline block with:
#[cfg(test)]
#[path = "foo_test.rs"]
mod tests;
For directory modules like src/app/mod.rs, the test file is src/app/mod_test.rs.
Use this skill when:
#[cfg(test)] mod tests { ... } inline — immediately split it_test.rs companion_test.rs, never inline