MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / node

Function node

graph-ui/src/why/SelectionContext.test.tsx:21–22  ·  view source on GitHub ↗
(id: number, extra: Partial<GraphNode> = {})

Source from the content-addressed store, hash-verified

19afterEach(async () => { await act(async () => root.unmount()); host.remove(); });
20
21const node = (id: number, extra: Partial<GraphNode> = {}): GraphNode => ({ id, name: `s${id}`, qualified_name: `p.s${id}`, file_path: `src/${id}.py`,
22 label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '#fff', ...extra });
23const selected = node(1, { name: 'JSONBAgg', qualified_name: 'p.JSONBAgg', file_path: 'general.py', label: 'Class' });
24const tests = Array.from({ length: 11 }, (_, at) => node(10 + at));
25const scopeGraph: GraphData = { total_nodes: 15, nodes: [selected, ...tests, node(30, { label: 'Module', file_path: 'general.py' }), node(40), node(41)], edges: [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected