Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGrpcClient ¶
func GetGrpcClient[T any](t *testing.T, setupFunc func(cc grpc.ClientConnInterface) T) T
GetGrpcClient creates gRPC client of type T that will be connected to the gRPC server running in the background.
func Setup ¶
func Setup(ctx context.Context, migrationsPath string, emulatorConfig EmulatorConfig, CI bool, opts []grpc.ServerOption, runFunc RunFunction) (testcontainers.Container, error)
Setup creates spanner emulator locally with provided configuration and runs RunFunction in the background.
Types ¶
type EmulatorConfig ¶
EmulatorConfig represents configuration used for creating spanner emulator.
func (EmulatorConfig) URI ¶
func (c EmulatorConfig) URI() string
URI returns prepared URI used for connecting to spanner.
Click to show internal directories.
Click to hide internal directories.