MCPcopy Index your code
hub / github.com/bytebase/bytebase / GetTestPg17Container

Function GetTestPg17Container

backend/common/testcontainer/testcontainer.go:200–207  ·  view source on GitHub ↗

GetTestPg17Container creates a PostgreSQL 17 container for testing, failing the test on error.

(ctx context.Context, t testing.TB)

Source from the content-addressed store, hash-verified

198// GetTestPg17Container creates a PostgreSQL 17 container for testing, failing the
199// test on error.
200func GetTestPg17Container(ctx context.Context, t testing.TB) *Container {
201 t.Helper()
202 container, err := GetPg17Container(ctx)
203 if err != nil {
204 t.Fatalf("failed to create PostgreSQL 17 container: %v", err)
205 }
206 return container
207}
208
209// GetOracleContainer creates an Oracle container for testing
210func GetOracleContainer(ctx context.Context) (retC *Container, retErr error) {

Callers 1

Calls 2

GetPg17ContainerFunction · 0.85
FatalfMethod · 0.80

Tested by 1