(metrics)
| 31 | } |
| 32 | |
| 33 | function renderMetrics(metrics) { |
| 34 | if (metrics.length === 0) { |
| 35 | return "<p>No metrics recorded.</p>"; |
| 36 | } |
| 37 | |
| 38 | return `<ul>${metrics |
| 39 | .map( |
| 40 | (metric) => |
| 41 | `<li><strong>${escapeHtml(metric.id)}</strong>: ${escapeHtml(metric.value)} ${escapeHtml(metric.unit)} (${escapeHtml(metric.band)})</li>`, |
| 42 | ) |
| 43 | .join("")}</ul>`; |
| 44 | } |
| 45 | |
| 46 | function renderDeductions(summary) { |
| 47 | if (!summary.deductions || summary.deductions.length === 0) { |
no test coverage detected