smithery/redisearch

check-rust-coverage

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.

Installation

$ npx skills add smithery/redisearch --skill check-rust-coverage

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/redisearch · top by installs.

npx skills add smithery/redisearch

Browse all from smithery/redisearch

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,034 B
  • docs SUMMARY.md 80 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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/redisearchrs directory. E.g. numericrangetree becomes src/redisearchrs/numericrangetree. 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.