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

Function GetTestMSSQLContainer

backend/common/testcontainer/testcontainer.go:462–469  ·  view source on GitHub ↗

GetTestMSSQLContainer is a helper function for tests that creates a MSSQL container and handles the error by failing the test if container creation fails

(ctx context.Context, t testing.TB)

Source from the content-addressed store, hash-verified

460// GetTestMSSQLContainer is a helper function for tests that creates a MSSQL container
461// and handles the error by failing the test if container creation fails
462func GetTestMSSQLContainer(ctx context.Context, t testing.TB) *Container {
463 t.Helper()
464 container, err := GetMSSQLContainer(ctx)
465 if err != nil {
466 t.Fatalf("failed to create MSSQL container: %v", err)
467 }
468 return container
469}
470
471// GetTiDBContainer creates a TiDB container for testing
472func GetTiDBContainer(ctx context.Context) (retC *Container, retErr error) {

Calls 2

GetMSSQLContainerFunction · 0.85
FatalfMethod · 0.80