Function
link
(
source: string,
target: string,
count: number,
declared = count
)
Source from the content-addressed store, hash-verified
| 51 | } |
| 52 | |
| 53 | function link( |
| 54 | source: string, |
| 55 | target: string, |
| 56 | count: number, |
| 57 | declared = count |
| 58 | ): WireMapLink { |
| 59 | return { |
| 60 | source, |
| 61 | target, |
| 62 | count, |
| 63 | declared, |
| 64 | byKind: [{ kind: 'calls', count }], |
| 65 | topPairs: [], |
| 66 | }; |
| 67 | } |
| 68 | |
| 69 | function layerOf(layout: MapLayout, id: string): number { |
| 70 | const node = layout.nodes.find((n) => n.id === id); |
Tested by
no test coverage detected