()
| 337 | // --- main --- |
| 338 | |
| 339 | async function main() { |
| 340 | await waitForDuckgres(); |
| 341 | |
| 342 | await testConnectionProperties(); |
| 343 | await testSharedQueries(); |
| 344 | await testDdlDml(); |
| 345 | await testPreparedStatements(); |
| 346 | await testResultMetadata(); |
| 347 | |
| 348 | console.log(`\n${"=".repeat(50)}`); |
| 349 | console.log(`Results: ${passed} passed, ${failed} failed`); |
| 350 | if (errors.length > 0) { |
| 351 | console.log("\nFailures:"); |
| 352 | for (const [name, reason] of errors) { |
| 353 | console.log(` - ${name}: ${reason}`); |
| 354 | } |
| 355 | } |
| 356 | console.log("=".repeat(50)); |
| 357 | |
| 358 | process.exit(failed > 0 ? 1 : 0); |
| 359 | } |
| 360 | |
| 361 | main().catch((e) => { |
| 362 | console.error("Fatal error:", e); |
no test coverage detected