MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / callerCount

Method callerCount

src/mcp/tools.ts:2709–2709  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

2707 const isTestPath = (p: string) => /(^|\/)(tests?|specs?|__tests__|testdata|mocks?|fixtures?)\//i.test(p) || /\.(test|spec)\.[a-z]+$/i.test(p);
2708 const bodyLines = (n: Node) => Math.max(0, (n.endLine ?? n.startLine) - n.startLine);
2709 const callerCount = (n: Node) => { try { return cg.getCallers(n.id).length; } catch { return 0; } };
2710 const tokens = [...new Set(
2711 query.split(/[\s,()[\]]+/)
2712 .map((t) => t.replace(FILE_EXT, '').trim())

Callers

nothing calls this directly

Calls 1

getCallersMethod · 0.45

Tested by

no test coverage detected