()
| 33 | } |
| 34 | |
| 35 | async function poolWrapper() { |
| 36 | const pool = new Pool(getMainConfiguration(config), 1); |
| 37 | let client; |
| 38 | try { |
| 39 | client = await pool.connect(); |
| 40 | await t(client); |
| 41 | } finally { |
| 42 | client?.release(); |
| 43 | await pool.end(); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | return async (test: Deno.TestContext) => { |
| 48 | await test.step({ fn: clientWrapper, name: "Client" }); |
nothing calls this directly
no test coverage detected