gograph_untested
Scan the full Go call graph to identify production functions and methods lacking static test attribution. Use for test census or pre-release hardening without measuring runtime coverage.
Instructions
Sweep the full graph in one pass and return called production functions and methods without an exact/static attributed test edge. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise graphs separately type-resolve compiling test packages. Exact direct selectors and local method values suppress only their resolved symbol, avoiding same-name receiver conflation. CHA interface targets remain visible with test_resolution=possible and possible_test_count instead of silently satisfying exact coverage; test_resolution=none means no attributed or bounded-possible test target was found. Repeatable CLI --exclude globs map to the MCP exclude string array and match repository-relative source paths lexically without filesystem access. This is static attribution, not runtime coverage proof. Read-only; no side effects. WHEN TO USE: During test census or pre-release hardening. Distinct from gograph_orphans (zero production callers) and replaces N sequential gograph_tests calls. NOT TO USE: For running tests or proving branch execution. RETURNS: JSON array sorted by caller_count descending with name, kind, file, line, caller_count, package, test_resolution, and optional possible_test_count; empty when every called symbol has an exact/static or historical parser-attributed test edge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pkg | No | Optional package name substring to filter results (e.g. 'cli', 'search') | |
| top | No | Limit results to top N by caller count (0 = all, default) | |
| exclude | No | Repository-relative path globs to exclude; use prefix/** for all descendants |