testinfra

package
v0.0.0-...-e158608 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BufSize = 1024 * 1024

Variables

This section is empty.

Functions

func NewOutgoingContext

func NewOutgoingContext(t *testing.T, duration time.Duration) context.Context

func NewTestGrpcClient

func NewTestGrpcClient(t *testing.T, lis *bufconn.Listener) *grpc.ClientConn

Types

type TestGrpcClient

type TestGrpcClient struct {
	Conn *grpc.ClientConn
}

type TestServer

type TestServer struct {
	Ctx context.Context

	Server *server.Server
	Lis    *bufconn.Listener

	Session *auth_manager.Session
}

func NewTestServer

func NewTestServer(t *testing.T, log *wlog.Logger) *TestServer

func (*TestServer) Serve

func (s *TestServer) Serve() error

type TestStorageCluster

type TestStorageCluster struct {
	// contains filtered or unexported fields
}

func NewTestStorageCluster

func NewTestStorageCluster(t *testing.T, log *wlog.Logger) (*TestStorageCluster, error)

func (*TestStorageCluster) Mock

func (t *TestStorageCluster) Mock() pgxmock.PgxPoolIface

func (*TestStorageCluster) Store

func (t *TestStorageCluster) Store() cluster.Store

Jump to

Keyboard shortcuts

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