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

Function fromTestCode

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

Source from the content-addressed store, hash-verified

5700 // pass paired them, production code never links into a `__mocks__/` file.
5701 const mockNodes = manualMockNodeIds(ctx);
5702 const fromTestCode = (id: string): boolean => {
5703 const source = ctx.getNodeById?.(id);
5704 return !source || isTestPath(source.filePath);
5705 };
5706 const merged: Edge[] = [];
5707 const seen = new Set<string>();
5708 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