@@ -9,3 +9,20 @@ cargo test
cargo test -- --nocapture
```
# 覆盖率(cargo-llvm-cov)
安装工具:
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov --locked
统计行覆盖率并要求 >=90%:
./scripts/coverage.sh
# 或
cargo llvm-cov --fail-under-lines 90
The note is not visible to the blocked user.