Mastering Rust
上QQ阅读APP看书,第一时间看更新

Testing primitives

Rust's built-in testing framework is based on a bunch of primitives that are mainly composed of attributes and macros. Before we write any actual tests, it's important that we get familiar with how to use them effectively.