(details: readonly DetailTreePathItem[])
| 126 | } |
| 127 | |
| 128 | function formatPathListLines(details: readonly DetailTreePathItem[]): string[] { |
| 129 | return details.map((detail, index) => { |
| 130 | const branch = index === details.length - 1 ? '└' : '├'; |
| 131 | const displayed = displayPath(detail.path); |
| 132 | return detail.label ? `${branch} ${detail.label}: ${displayed}` : `${branch} ${displayed}`; |
| 133 | }); |
| 134 | } |
| 135 | |
| 136 | function formatDetailTreeLines( |
| 137 | details: readonly DetailTreeItem[], |
no test coverage detected