Print a summary of compilation results and per-file diagnostics.
(failures, totalCompiled, fileCount, hadErrors)
| 262 | |
| 263 | /** Print a summary of compilation results and per-file diagnostics. */ |
| 264 | function printReport(failures, totalCompiled, fileCount, hadErrors) { |
| 265 | console.log(`\nTotal: ${totalCompiled} functions compiled across ${fileCount} files`); |
| 266 | console.log(`Files with diagnostics: ${failures.length}\n`); |
| 267 | |
| 268 | for (const f of failures) { |
| 269 | console.log(`✗ ${shortPath(f.file)} (${f.compiled} compiled)`); |
| 270 | for (const d of f.diagnostics) { |
| 271 | console.log(` line ${d.line}: ${d.short}`); |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | if (failures.length === 0 && !hadErrors) { |
| 276 | console.log("✓ All files compile cleanly."); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | // --------------------------------------------------------------------------- |
| 281 | // Main |
no test coverage detected