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

Function node

__tests__/require-default.test.ts:169–173  ·  view source on GitHub ↗
(file: string, name: string)

Source from the content-addressed store, hash-verified

167});
168
169const node = (file: string, name: string) => {
170 const found = cg.getNodesInFile(file).find((n) => n.name === name && n.kind !== 'import');
171 expect(found, `${file}: ${name}`).toBeDefined();
172 return found!;
173};
174
175/** The edges into `target`, as `kind source-file resolvedBy`. */
176const into = (target: { id: string }, kinds: Edge['kind'][]) =>

Callers 1

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected