(over: Partial<WireRelation> & { node?: any } = {})
| 47 | } |
| 48 | |
| 49 | function relation(over: Partial<WireRelation> & { node?: any } = {}): WireRelation { |
| 50 | const { node, ...rest } = over; |
| 51 | const lines = rest.lines ?? [12]; |
| 52 | return { |
| 53 | edgeKinds: ['calls'], |
| 54 | edges: lines.map((line) => ({ kind: 'calls' as const, line, col: 4 })), |
| 55 | edgeCount: lines.length, |
| 56 | lines, |
| 57 | confidence: 0.9, |
| 58 | uncertain: false, |
| 59 | synthesized: false, |
| 60 | ...rest, |
| 61 | node: nodeRef(node), |
| 62 | } as WireRelation; |
| 63 | } |
| 64 | |
| 65 | function payload(over: Partial<WireSymbolPayload> = {}): WireSymbolPayload { |
| 66 | return { |
no test coverage detected