(run: () => unknown)
| 45 | } |
| 46 | |
| 47 | const thrownCodecError = (run: () => unknown): PgTypesResult.CodecError => { |
| 48 | try { |
| 49 | run() |
| 50 | } catch (error) { |
| 51 | assert.instanceOf(error, PgTypesResult.CodecError) |
| 52 | return error as PgTypesResult.CodecError |
| 53 | } |
| 54 | return assert.fail("Expected PgTypesCodecError to be thrown") |
| 55 | } |
| 56 | |
| 57 | /** Every value below was produced by PostgreSQL for the encoded parameter. */ |
| 58 | const roundTrips: Array<{ |
no test coverage detected