(category, sample)
| 183 | // --- run ---------------------------------------------------------------------- |
| 184 | const buckets = new Map(); // category -> {count, samples[]} |
| 185 | function report(category, sample) { |
| 186 | let b = buckets.get(category); |
| 187 | if (!b) buckets.set(category, (b = { count: 0, samples: [] })); |
| 188 | b.count++; |
| 189 | if (b.samples.length < maxSamples) b.samples.push(sample); |
| 190 | } |
| 191 | |
| 192 | let filesWithDiffs = 0; |
| 193 | let filesOk = 0; |
no test coverage detected