portfolio_rs/.cargo/config.toml
Markus Zoppelt df7919bfe6 build: add cargo coverage alias and llvm-cov to the dev shell
`cargo coverage` runs cargo-llvm-cov with the project's gate: every line
under src/ must run under `cargo test`, except `*_io.rs` files, which hold
the thin shell that cannot run offline (live network, real terminal).

The dev shell provides cargo-llvm-cov and points LLVM_COV/LLVM_PROFDATA at
the LLVM rustc was built with.
2026-11-03 09:39:48 +01:00

13 lines
499 B
TOML

[alias]
# The coverage gate. CI runs exactly this; agents run it before finishing.
#
# Every line under src/ must be executed by `cargo test`, except files named
# `*_io.rs`. Those hold the thin imperative shell that cannot run offline
# (live network calls, the real terminal). Keep them small and free of logic:
# anything that can be tested belongs in a covered file.
coverage = [
"llvm-cov",
"--ignore-filename-regex", "_io\\.rs$",
"--fail-under-lines", "100",
"--show-missing-lines",
]