{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "stack": "rust",
  "description": "Rust test gap rules. Sources in *.rs; integration tests live under tests/ and unit tests sit in the same file under #[cfg(test)], which is why the suffix list is short.",
  "sourceExtensions": [".rs"],
  "testPathSuffixes": ["_test.rs", "_tests.rs"],
  "testPathContains": ["/tests/", "/benches/"],
  "excludePathGlobs": ["target/", "vendor/", "third_party/"],
  "publicApiPatterns": [
    { "id": "pub_fn", "regex": "^\\s*pub\\s+(?:async\\s+)?fn\\s+([a-z_][A-Za-z0-9_]*)" },
    { "id": "pub_type", "regex": "^\\s*pub\\s+(?:struct|enum|trait)\\s+([A-Z][A-Za-z0-9_]*)" }
  ],
  "hint": "Cover public items with a #[test] in the same module or an integration test under tests/. A private function is covered through the public one that calls it."
}
