(record: Record<string, unknown>, keys: string[])
| 561 | } |
| 562 | |
| 563 | function summarizeFirstValue(record: Record<string, unknown>, keys: string[]) { |
| 564 | for (const key of keys) { |
| 565 | const value = record[key] |
| 566 | const formatted = formatArgValue(value) |
| 567 | |
| 568 | if (formatted) { |
| 569 | return `${key}=${formatted}` |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | return undefined |
| 574 | } |
| 575 | |
| 576 | function formatArgValue(value: unknown): string | undefined { |
| 577 | if (typeof value === "string") { |
no test coverage detected