agentsclimarketplace

Check rust coverage

Skill ComeOnOliver/skillshub/skills/RediSearch/RediSearch/check-rust-coverage

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill check-rust-coverage

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.8 KB, 243 tokens by cl100k_base, as published. Nobody here has run it

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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.