gograph_untested
Identifies production functions and methods lacking a static call path from tests by sweeping the full call graph in one pass, flagging exact and possible test resolution for hardening.
Instructions
Sweep the full graph in one pass and return called production functions and methods without an exact transitive static path from any test. Precise direct calls and proof-backed concrete interface receivers are exact; open CHA or parser-only paths propagate possible to descendants, which remain visible with test_resolution=possible and possible_test_count. Repeatable CLI --exclude globs map to the MCP exclude string array and match repository-relative source paths lexically. This is static attribution, not runtime coverage proof. WHEN TO USE: During test census or pre-release hardening; it replaces N forward coverage or direct gograph_tests probes. NOT TO USE: For running tests or proving branch execution. RETURNS: JSON rows sorted by caller_count with stable_id, name, kind, file, line, caller_count, package, test_resolution, and optional possible_test_count.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gograph_untested"
}
}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 (default: 20, 0 = all) | |
| root | No | Absolute path of your checkout or worktree (alias cwd). | |
| exclude | No | Repository-relative path globs to exclude; use prefix/** for all descendants | |
| intention | No | Rationale; required with an active session. | |
| session_id | No | Session from session_create; omit for none. | |
| coverprofile | No | Repository-relative go test -coverprofile file (merged profiles allowed): report production functions with no executed statement instead; the response then is {summary, results} | |
| exclude_interface_methods | No | Skip methods implementing an interface method (Error, String, MarshalJSON, or a repository interface); the response then is {summary, results} with the skipped count |