知识卡片
展开与覆盖工具提供不同视角
cargo-expand帮助查看宏生成代码,cargo-tarpaulin帮助生成覆盖信息,分别解决源码不透明与测试执行范围难观察的问题。它们的输出是定位线索:展开正确不等于行为正确,执行覆盖高也不代表断言充分。工具应按平台支持与维护需要选用。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Tooling Item 31: Take advantage of the tooling ecosystem · 查看原书依据
cargo-tarpaulin Supports the generation and tracking of code coverage information. Any list of specific tools will always be subjective, out of date, and incomplete; the more general point is to explore the available tools. For example, a search for cargo-<something> tools gives dozens of results; some will be inappropriate and some will be abandoned, but so
参考来源
- 位置:《Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)》第5章《Item 31: Take advantage of the tooling ecosystem》(spine9;extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch05.html;u160-ch05-032)。
- 结论依据:原文在“cargo-tarpaulin”附近的定义、例子或代码支撑本卡核心说明:cargo-expand帮助查看宏生成代码,cargo-tarpaulin帮助生成覆盖信息,分别解决源码不透明与测试执行范围难观察的问题。边界按已读前提解释;示例未执行。
- 原始内容:cargo-tarpaulin Supports the generation and tracking of code coverage information. Any list of specific tools will always be subjective, out of date, and incomplete; the more general point is to explore the available tools. For example, a search for cargo-<something> tools gives dozens of results; some will be inappropriate and some will be abandoned, but so