MCPcopy
hub / github.com/jackc/pgx / TestConnSendBatch

Function TestConnSendBatch

pgxpool/conn_test.go:64–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestConnSendBatch(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 c, err := pool.Acquire(ctx)
75 require.NoError(t, err)
76 defer c.Release()
77
78 testSendBatch(t, ctx, c)
79}
80
81func TestConnCopyFrom(t *testing.T) {
82 t.Parallel()

Callers

nothing calls this directly

Calls 5

NewFunction · 0.92
testSendBatchFunction · 0.85
AcquireMethod · 0.80
ReleaseMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected