(run, points)
| 1055 | } |
| 1056 | |
| 1057 | function buildRunMeta(run, points) { |
| 1058 | const parts = []; |
| 1059 | if (run.source) { |
| 1060 | parts.push(run.source); |
| 1061 | } |
| 1062 | if (run.collectedAt) { |
| 1063 | parts.push(formatDate(run.collectedAt)); |
| 1064 | } |
| 1065 | parts.push(points.length ? `${points.length} data points` : "aggregate summary"); |
| 1066 | return parts.join(" · "); |
| 1067 | } |
| 1068 | |
| 1069 | function hasSeries(run, key) { |
| 1070 | return (run.series || []).filter((point) => point[key] !== null && point[key] !== undefined).length >= 2; |
no test coverage detected