test

package
v0.0.0-...-302cdf8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcConn

func GrpcConn(lis net.Listener, t TestingT) *grpc.ClientConn

func JsClient

func JsClient(t TestingT, s *server.Server, opts ...nats.Option) (*nats.Conn, nats.JetStreamContext)

func NatsConn

func NatsConn(t TestingT, s *server.Server, opts ...nats.Option) *nats.Conn

func RunBasicJetStreamServer

func RunBasicJetStreamServer(t TestingT) *server.Server

func RunBasicServer

func RunBasicServer(t TestingT) *server.Server

func ShutdownJSServerAndRemoveStorage

func ShutdownJSServerAndRemoveStorage(t TestingT, s *server.Server)

func ShutdownServer

func ShutdownServer(t TestingT, s *server.Server)

Types

type LogAdapter

type LogAdapter struct{}

func (*LogAdapter) Debugf

func (l *LogAdapter) Debugf(format string, v ...interface{})

func (*LogAdapter) Errorf

func (l *LogAdapter) Errorf(format string, v ...interface{})

func (*LogAdapter) Fatalf

func (l *LogAdapter) Fatalf(format string, v ...interface{})

func (*LogAdapter) Noticef

func (l *LogAdapter) Noticef(format string, v ...interface{})

func (*LogAdapter) Tracef

func (l *LogAdapter) Tracef(format string, v ...interface{})

func (*LogAdapter) Warnf

func (l *LogAdapter) Warnf(format string, v ...interface{})

type TestingT

type TestingT interface {
	Helper()
	Fatal(args ...any)
	Fatalf(msg string, args ...any)
	Errorf(msg string, args ...any)
	TempDir() string
}

Jump to

Keyboard shortcuts

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