(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestTxCopyFrom(t *testing.T) { |
| 82 | t.Parallel() |
| 83 | |
| 84 | ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) |
| 85 | defer cancel() |
| 86 | |
| 87 | pool, err := pgxpool.New(ctx, os.Getenv("PGX_TEST_DATABASE")) |
| 88 | require.NoError(t, err) |
| 89 | defer pool.Close() |
| 90 | |
| 91 | tx, err := pool.Begin(ctx) |
| 92 | require.NoError(t, err) |
| 93 | defer tx.Rollback(ctx) |
| 94 | |
| 95 | testCopyFrom(t, ctx, tx) |
| 96 | } |
nothing calls this directly
no test coverage detected