Basic information
About check-rust-coverage
Check which Rust lines are not covered by Rust tests.
check-rust-coverage is an agent skill listed in the AddMCP.net directory, published by RediSearch. Runtime: Rust. The repository has 6,247 GitHub stars. Source code is hosted on github.com. Related topics: fulltext, geospatial, gis, inverted-index, redis.
Overview
What is check-rust-coverage?
name: check-rust-coverage description: Check which Rust lines are not covered by Rust tests. Use this when you developed new Rust code and want to ensure it is tested.
Check Rust Coverage
Determine which Rust lines are not covered by Rust tests.
Arguments
<path>: Path to a Rust crate.<path 1> <path 2>: Multiple crate paths.
If a path doesn't include src/, assume it to be in the src/redisearch_rs directory. E.g. numeric_range_tree becomes src/redisearch_rs/numeric_range_tree. If a path points to a directory, consider all Rust crates in that directory.
Instructions
Run
cargo llvm-cov test --manifest-path <crate_directory>/Cargo.toml --quiet --json 2>/dev/null | jq -r '"Uncovered Lines:",
(.data[0].files[] |
select(.summary.lines.percent < 100) |
.filename as $f |
[.segments[] | select(.[2] == 0 and .[4] == true) | .[0]] |
unique |
if length > 0 then "\($f): \(join(", "))" else empty end
)'
to get the list of uncovered lines for each file in the target crate.
Videos
Tutorials, guides, and showcases related to check-rust-coverage. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In