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

Function fn

__tests__/same-module-copy-resolution.test.ts:57–61  ·  view source on GitHub ↗
(name: string, filePath: string)

Source from the content-addressed store, hash-verified

55 }
56
57 function fn(name: string, filePath: string) {
58 const node = cg!.getNodesByKind('function').find((n) => n.name === name && n.filePath === filePath);
59 expect(node).toBeDefined();
60 return node!;
61 }
62
63 it('resolves each module\'s call to its own copy', async () => {
64 cg = await CodeGraph.init(tempDir, { index: true });

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected