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

Method isTestPath

src/mcp/tools.ts:4747–4747  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

4745 // same-named local. Callables keep priority via the body-size sort.
4746 const SEEDABLE = new Set([...CALLABLE, 'variable', 'constant']);
4747 const isTestPath = (p: string) => /(^|\/)(tests?|specs?|__tests__|testdata|mocks?|fixtures?)\//i.test(p) || /\.(test|spec)\.[a-z]+$/i.test(p);
4748 const bodyLines = (n: Node) => Math.max(0, (n.endLine ?? n.startLine) - n.startLine);
4749 const callerCount = (n: Node) => { try { return cg.getCallers(n.id).length; } catch { return 0; } };
4750 const tokens = exploreQueryTokens(matchQuery);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected