gograph_tests
Find test functions that cover a named symbol in Go code, or list all test edges when no symbol is given. Use before editing to check test coverage.
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. Requires .gograph/graph.json — run gograph build . first. 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) |