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

Function def

__tests__/explore-named-sizing.test.ts:565–565  ·  view source on GitHub ↗
(name: string, filePath: string, startLine: number)

Source from the content-addressed store, hash-verified

563
564 it('checks the finished answer for the first line of each name', () => {
565 const def = (name: string, filePath: string, startLine: number): Node => ({ name, filePath, startLine, endLine: startLine + 2 } as Node);
566 const emitted = [{ path: 'a.ts', ranges: [{ start: 10, end: 30 }] }];
567 expect(showsEveryNamedSymbol([def('one', 'a.ts', 10), def('two', 'a.ts', 30)], emitted)).toBe(true);
568 expect(showsEveryNamedSymbol([def('one', 'a.ts', 10), def('two', 'a.ts', 31)], emitted)).toBe(false);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected