(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func TestTxSendBatch(t *testing.T) { |
| 65 | t.Parallel() |
| 66 | |
| 67 | ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) |
| 68 | defer cancel() |
| 69 | |
| 70 | pool, err := pgxpool.New(ctx, os.Getenv("PGX_TEST_DATABASE")) |
| 71 | require.NoError(t, err) |
| 72 | defer pool.Close() |
| 73 | |
| 74 | tx, err := pool.Begin(ctx) |
| 75 | require.NoError(t, err) |
| 76 | defer tx.Rollback(ctx) |
| 77 | |
| 78 | testSendBatch(t, ctx, tx) |
| 79 | } |
| 80 | |
| 81 | func TestTxCopyFrom(t *testing.T) { |
| 82 | t.Parallel() |
nothing calls this directly
no test coverage detected