(messageHours: number[])
| 1937 | } |
| 1938 | |
| 1939 | function getHourCountsJson(messageHours: number[]): string { |
| 1940 | const hourCounts: Record<number, number> = {} |
| 1941 | for (const h of messageHours) { |
| 1942 | hourCounts[h] = (hourCounts[h] || 0) + 1 |
| 1943 | } |
| 1944 | return jsonStringify(hourCounts) |
| 1945 | } |
| 1946 | |
| 1947 | function generateHtmlReport( |
| 1948 | data: AggregatedData, |
no test coverage detected