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

Function fromTestCode

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

Source from the content-addressed store, hash-verified

5677 // pass paired them, production code never links into a `__mocks__/` file.
5678 const mockNodes = manualMockNodeIds(ctx);
5679 const fromTestCode = (id: string): boolean => {
5680 const source = ctx.getNodeById?.(id);
5681 return !source || isTestPath(source.filePath);
5682 };
5683 const merged: Edge[] = [];
5684 const seen = new Set<string>();
5685 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