testutils

package
v3.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunningInDocker added in v3.10.0

func IsRunningInDocker() bool

IsRunningInDocker returns true if the test is running in a Docker environment. Check out the Makefile's "test-docker/run" target where "RUNME_TEST_ENV" is set to "docker".

func NewGRPCClient

func NewGRPCClient[T any](
	lis interface{ Dial() (net.Conn, error) },
	fn func(grpc.ClientConnInterface) T,
) (*grpc.ClientConn, T)

func NewGRPCClientWithT added in v3.9.4

func NewGRPCClientWithT[T any](
	t *testing.T,
	lis interface{ Dial() (net.Conn, error) },
	fn func(grpc.ClientConnInterface) T,
) (*grpc.ClientConn, T)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL