(
id: string,
names: string[],
extra: { boundary?: WireFlowBoundary | null; partial?: boolean } = {}
)
| 86 | } |
| 87 | |
| 88 | function flow( |
| 89 | id: string, |
| 90 | names: string[], |
| 91 | extra: { boundary?: WireFlowBoundary | null; partial?: boolean } = {} |
| 92 | ): WireFlow { |
| 93 | return { |
| 94 | id, |
| 95 | label: `${names[0]} → ${names[names.length - 1]}`, |
| 96 | hops: names.map((name, i) => hop(name, { edge: i === 0 ? null : edge() })), |
| 97 | boundary: extra.boundary ?? null, |
| 98 | partial: extra.partial === true, |
| 99 | }; |
| 100 | } |
| 101 | |
| 102 | function ref(name: string): WireNodeRef { |
| 103 | return { |
no test coverage detected