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

Function flow

__tests__/ui-export-svg.test.ts:96–107  ·  view source on GitHub ↗
(id: string, names: string[], over: Partial<WireFlow> = {})

Source from the content-addressed store, hash-verified

94}
95
96function flow(id: string, names: string[], over: Partial<WireFlow> = {}): WireFlow {
97 return {
98 id,
99 label: `${names[0]} → ${names[names.length - 1]}`,
100 hops: names.map((name, i) =>
101 hop(name, { edge: i === 0 ? null : edge(), callLine: i === 0 ? 8 : undefined })
102 ),
103 boundary: null,
104 partial: false,
105 ...over,
106 };
107}
108
109function boundary(over: Partial<WireFlowBoundary> = {}): WireFlowBoundary {
110 return {

Callers 1

Calls 3

mapMethod · 0.80
hopFunction · 0.70
edgeFunction · 0.70

Tested by

no test coverage detected