( client_options: ClientOptions, )
| 3 | import type { ClientOptions } from "../connection/connection_params.ts"; |
| 4 | |
| 5 | export function generateSimpleClientTest( |
| 6 | client_options: ClientOptions, |
| 7 | ) { |
| 8 | return function testSimpleClient( |
| 9 | test_function: (client: Client) => Promise<void>, |
| 10 | ): () => Promise<void> { |
| 11 | return async () => { |
| 12 | const client = new Client(client_options); |
| 13 | try { |
| 14 | await client.connect(); |
| 15 | await test_function(client); |
| 16 | } finally { |
| 17 | await client.end(); |
| 18 | } |
| 19 | }; |
| 20 | }; |
| 21 | } |
| 22 | |
| 23 | export function generatePoolClientTest(client_options: ClientOptions) { |
| 24 | return function generatePoolClientTest1( |
no test coverage detected