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

Function hrefs

__tests__/tanstack-router.test.ts:299–302  ·  view source on GitHub ↗
(from: Node)

Source from the content-addressed store, hash-verified

297 };
298 const navs = (from: Node) => cg.getOutgoingEdges(from.id).filter((e) => e.kind === 'navigates');
299 const hrefs = (from: Node) =>
300 navs(from)
301 .map((e) => (e.metadata as Record<string, unknown>).href as string)
302 .sort();
303
304 it('names one route per address: the pathless layout is stripped, the index wins over the layout', () => {
305 expect(cg.getNodesByKind('route').map((r) => r.name).sort()).toEqual([

Callers 1

Calls 2

mapMethod · 0.80
navsFunction · 0.70

Tested by

no test coverage detected