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

Function scoped

graph-ui/src/galaxy/graph-scope.test.ts:247–249  ·  view source on GitHub ↗
(nodes: GraphNode[], edges: { id?: number; source: number; target: number; type: string; line?: number }[], levels: [number, number][])

Source from the content-addressed store, hash-verified

245describe('hand test K5: the scoped hierarchy reads incoming left, root in the middle, outgoing right', () => {
246 const at = (result: ReturnType<typeof scopedHierarchy>, name: string) => result.placements.find(placement => placement.name === name)!;
247 const scoped = (nodes: GraphNode[], edges: { id?: number; source: number; target: number; type: string; line?: number }[], levels: [number, number][]) =>
248 scopedHierarchy({ data: { nodes, edges, total_nodes: nodes.length }, roots: new Set([1]), depth: Math.max(...levels.map(([, hop]) => hop)), exhausted: false,
249 levels: new Map(levels) }, 'root');
250
251 it('puts callers and tests left of the root, its bases right, and keeps the root at the centre', () => {
252 // JSONBAgg: tests call and test it, its module defines it, it inherits two bases.

Callers 1

Calls 1

scopedHierarchyFunction · 0.90

Tested by

no test coverage detected