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

Function depth

__tests__/ui-filecode-model.test.ts:345–346  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

343 ]);
344 const arcs = buildFileArcs(payload, buildFileCallRows(payload));
345 const depth = (key: string): number =>
346 Number(/A([\d.]+),/.exec(arcs.find((a) => a.targetId === key)!.d)![1]);
347 expect(depth('near')).toBeLessThan(depth('far'));
348 expect(depth('near')).toBeGreaterThan(0);
349 expect(depth('far')).toBeLessThanOrEqual(ARC_COLUMN);

Callers 1

Calls 1

execMethod · 0.65

Tested by

no test coverage detected