testhelpers

package
v0.0.0-...-3ef004b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectOrRecord

func ConnectOrRecord(t *testing.T, name string, port int) (*grpc.ClientConn, func())

ConnectOrRecord connects to GRPC if a local port is open and records, otherwise replays a previous connection

func MakeRecorder

func MakeRecorder(fileToRecord string, t *testing.T) (http.RoundTripper, func(), error)

MakeRecorder makes an http interaction recorder

func TestFileExists

func TestFileExists(fileToRecord string) bool

TestFileExists ...

Types

type RedisContainer

type RedisContainer struct {
	testcontainers.Container
	URI string
}

RedisContainer ...

func SetupRedis

func SetupRedis(ctx context.Context) (*RedisContainer, error)

SetupRedis ...

Jump to

Keyboard shortcuts

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