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

Function hopsQuery

__tests__/ui-flow-api.test.ts:605–605  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

603
604 it('caps the number of trail hops it will read at what the trail store saves (#1976)', async () => {
605 const hopsQuery = (n: number) => Array.from({ length: n }, (_, i) => `hop=s${i}xx`).join('&');
606 // A 64-hop trail is one the store saves, so it must be readable as a flow.
607 const saved = await request(`/api/flow?${hopsQuery(MAX_TRAIL_HOPS)}`);
608 expect(saved.status).toBe(200);

Callers 1

Calls 2

fromMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected