gograph_tests
Find test functions covering a specific symbol in Go code, or list all test edges to audit coverage gaps. Returns test names, packages, and file locations.
Instructions
Find test functions in *_test.go files that exercise a named symbol, or list all test edges in the graph when no symbol is given. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise and precise_fallback graphs retry CHA/SSA after source changes. Read-only; no side effects. WHEN TO USE: Before editing a function — check what tests cover it so you know what to run; or to audit test coverage gaps across the codebase. NOT TO USE: For test helper infrastructure (use gograph_fixtures); for running the tests (use go test directly). RETURNS: Test function names, target packages, and file locations; returns all test edges when symbol is omitted; empty when no tests reference the symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | The symbol name to find tests for (optional) |