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

Function sourceFiles

__tests__/frameworks-integration.test.ts:961–962  ·  view source on GitHub ↗
(edges: typeof alphaIncoming)

Source from the content-addressed store, hash-verified

959 // Sanity: the edges don't cross — alpha's incoming sources don't include
960 // beta's filePath and vice versa.
961 const sourceFiles = (edges: typeof alphaIncoming) =>
962 edges.map((e) => cg.getNode(e.source)?.filePath).filter(Boolean);
963 expect(sourceFiles(alphaIncoming).some((p) => p?.includes('CallerA.kt'))).toBe(true);
964 expect(sourceFiles(betaIncoming).some((p) => p?.includes('CallerB.kt'))).toBe(true);
965 });

Callers 1

Calls 2

mapMethod · 0.80
getNodeMethod · 0.80

Tested by

no test coverage detected