(id: string, names: string[], over: Partial<WireFlow> = {})
| 94 | } |
| 95 | |
| 96 | function 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 | |
| 109 | function boundary(over: Partial<WireFlowBoundary> = {}): WireFlowBoundary { |
| 110 | return { |
no test coverage detected