(t *testing.T)
| 959 | } |
| 960 | |
| 961 | func TestConnSendBatchDescribeStatementCache(t *testing.T) { |
| 962 | ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) |
| 963 | defer cancel() |
| 964 | |
| 965 | config := mustParseConfig(t, os.Getenv("PGX_TEST_DATABASE")) |
| 966 | config.DefaultQueryExecMode = pgx.QueryExecModeCacheDescribe |
| 967 | config.DescriptionCacheCapacity = 32 |
| 968 | |
| 969 | conn := mustConnect(t, config) |
| 970 | defer closeConn(t, conn) |
| 971 | |
| 972 | testConnSendBatch(t, ctx, conn, 3) |
| 973 | } |
| 974 | |
| 975 | func testConnSendBatch(t *testing.T, ctx context.Context, conn *pgx.Conn, queryCount int) { |
| 976 | batch := &pgx.Batch{} |
nothing calls this directly
no test coverage detected