testutil

package
v0.0.0-...-fc15ddb Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(t *testing.T) net.Conn

func GenID

func GenID() uuid.UUID

func GenIDString

func GenIDString() string

func GenName

func GenName() string

func StartServer

func StartServer() *exec.Cmd

Types

type Client

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

func NewClient

func NewClient(t *testing.T) *Client

func (*Client) Conn

func (c *Client) Conn() *net.TCPConn

func (*Client) Exec

func (c *Client) Exec(cmd []byte, expResp []byte)

func (*Client) Reader

func (c *Client) Reader() *bufio.Reader

Jump to

Keyboard shortcuts

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