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

Function fromTestCode

src/resolution/callback-synthesizer.ts:5699–5702  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

5697 // pass paired them, production code never links into a `__mocks__/` file.
5698 const mockNodes = manualMockNodeIds(ctx);
5699 const fromTestCode = (id: string): boolean => {
5700 const source = ctx.getNodeById?.(id);
5701 return !source || isTestPath(source.filePath);
5702 };
5703 const merged: Edge[] = [];
5704 const seen = new Set<string>();
5705 for (const e of passEdges.flat()) {

Callers 1

synthesizeCallbackEdgesFunction · 0.85

Calls 2

isTestPathFunction · 0.90
getNodeByIdMethod · 0.65

Tested by

no test coverage detected