(event: StoredReportEvent)
| 520 | } |
| 521 | |
| 522 | function leftLaneSummary(event: StoredReportEvent): { title: string } | undefined { |
| 523 | if (event.kind === 'http') { |
| 524 | return { |
| 525 | title: `${event.method ?? 'HTTP'} ${event.path ?? event.url ?? ''}`.trim(), |
| 526 | }; |
| 527 | } |
| 528 | if (event.kind === 'ws' && event.direction === 'out') { |
| 529 | return { title: eventSummary(event) }; |
| 530 | } |
| 531 | if (event.kind === 'log') { |
| 532 | return { title: event.label ?? 'log' }; |
| 533 | } |
| 534 | return undefined; |
| 535 | } |
| 536 | |
| 537 | function rightLaneSummary(event: StoredReportEvent): { title: string } | undefined { |
| 538 | if (event.kind === 'http') { |
no test coverage detected