Skip to content
Back to skills

Check Rust Coverage

ASecurity

Check which Rust lines are not covered by Rust tests.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 29, 2026
testingrustgobash

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add zjunlp/Skills --skill check-rust-coverage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Rust Coverage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check Rust Coverage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zjunlp-check-rust-coverage/badge)](https://www.skillsdirectory.com/skills/zjunlp-check-rust-coverage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check-rust-coverage
description: Check which Rust lines are not covered by Rust tests.
---

# 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

```bash
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…