MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / makeNode

Function makeNode

__tests__/db-perf.test.ts:22–36  ·  view source on GitHub ↗
(id: string, name = id)

Source from the content-addressed store, hash-verified

20import { Node, Edge } from '../src/types';
21
22function makeNode(id: string, name = id): Node {
23 return {
24 id,
25 kind: 'function',
26 name,
27 qualifiedName: name,
28 filePath: 'a.ts',
29 language: 'typescript',
30 startLine: 1,
31 endLine: 1,
32 startColumn: 0,
33 endColumn: 0,
34 updatedAt: Date.now(),
35 };
36}
37
38describe('getNodesByIds (batch lookup)', () => {
39 let dir: string;

Callers 1

db-perf.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected