testing

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListenResult

type ListenResult struct {
	Address string
	Port    string
	Host    string
	Err     error
}

type TCPClient

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

func NewTCPClient

func NewTCPClient(address string) (*TCPClient, error)

func (*TCPClient) Close

func (c *TCPClient) Close()

func (*TCPClient) ReceiveMsg

func (c *TCPClient) ReceiveMsg(bufferSize int) ([]byte, error)

func (*TCPClient) SendMsg

func (c *TCPClient) SendMsg(msg []byte) (int, error)

type TCPServer

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

func NewTCPServer

func NewTCPServer(t TestingT, bufferSize int, address string) *TCPServer

func (*TCPServer) Serve

func (ts *TCPServer) Serve(started chan<- *ListenResult)

type TestingT

type TestingT interface {
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fail()
	FailNow()
	Failed() bool
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Name() string
	Skip(args ...interface{})
	SkipNow()
	Skipf(format string, args ...interface{})
	Skipped() bool
	Helper()
}

type UnixServer

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

func NewUnixServer

func NewUnixServer(t TestingT, bufferSize int) *UnixServer

func (*UnixServer) Serve

func (us *UnixServer) Serve(started chan<- *ListenResult)

type UnixSocketClient

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

func NewUnixClient

func NewUnixClient(address string) (*UnixSocketClient, error)

func (*UnixSocketClient) Close

func (c *UnixSocketClient) Close()

func (*UnixSocketClient) ReceiveMsg

func (c *UnixSocketClient) ReceiveMsg(bufferSize int) ([]byte, error)

func (*UnixSocketClient) SendMsg

func (c *UnixSocketClient) SendMsg(msg []byte) (int, error)

Jump to

Keyboard shortcuts

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