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

Function one

__tests__/go-interface-embedding.test.ts:370–374  ·  view source on GitHub ↗
(name: string, file: string)

Source from the content-addressed store, hash-verified

368 const graph = cg;
369
370 const one = (name: string, file: string): Node => {
371 const found = graph.getNodesByName(name).filter((n) => n.filePath === file && n.kind !== 'import');
372 expect(found, `${name} in ${file}`).toHaveLength(1);
373 return found[0]!;
374 };
375 const where = (n: Node | null) => `${n?.name}@${n?.filePath}`;
376
377 const sources = [

Callers 1

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected