testhelper

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeoutAfter

func TimeoutAfter(after time.Duration, f func()) error

func WithTCPServer added in v2.3.0

func WithTCPServer(t *testing.T, block func(string, chan []byte))

Types

type TCPServer added in v2.3.0

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

func NewTCPServer added in v2.3.0

func NewTCPServer() (*TCPServer, error)

func (*TCPServer) Close added in v2.3.0

func (server *TCPServer) Close() (err error)

func (*TCPServer) Run added in v2.3.0

func (server *TCPServer) Run() (err error)

type Upstream

type Upstream struct {
	Connections chan net.Conn
	// contains filtered or unexported fields
}

func NewUpstream

func NewUpstream(t testing.TB, ignoreData bool) *Upstream

func (*Upstream) Addr

func (u *Upstream) Addr() string

func (*Upstream) Close

func (u *Upstream) Close()

Jump to

Keyboard shortcuts

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