check-rust-coverage

Determine which Rust lines are not covered by Rust tests.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "check-rust-coverage" with this command: npx skills add redisearch/redisearch/redisearch-redisearch-check-rust-coverage

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

write-rust-tests

No summary provided by upstream source.

Repository SourceNeeds Review
General

analyze-rust-ffi-crate-surface

No summary provided by upstream source.

Repository SourceNeeds Review
General

rust-tests-guidelines

No summary provided by upstream source.

Repository SourceNeeds Review