(event: StoredReportEvent)
| 535 | } |
| 536 | |
| 537 | function rightLaneSummary(event: StoredReportEvent): { title: string } | undefined { |
| 538 | if (event.kind === 'http') { |
| 539 | return { |
| 540 | title: event.status === undefined ? 'HTTP response' : `HTTP ${event.status}`, |
| 541 | }; |
| 542 | } |
| 543 | if (event.kind === 'ws' && event.direction === 'in') { |
| 544 | return { title: eventSummary(event) }; |
| 545 | } |
| 546 | if (event.kind === 'test-result') { |
| 547 | return { title: eventSummary(event) }; |
| 548 | } |
| 549 | return undefined; |
| 550 | } |
| 551 | |
| 552 | function eventSummary(event: StoredReportEvent): string { |
| 553 | if (event.kind === 'http') { |
no test coverage detected