tester

package
v0.0.0-...-43f74f9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RealServer bool
)

Functions

func NewServer

func NewServer(t *testing.T) (*Server, *Client)

Types

type Client

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

func (*Client) Drain

func (c *Client) Drain() *Client

func (*Client) Err

func (c *Client) Err() error

func (*Client) Join

func (c *Client) Join(chname string) *Client

func (*Client) Login

func (c *Client) Login(nick string, user string) *Client

func (*Client) LoginDefault

func (c *Client) LoginDefault() *Client

func (*Client) Recv

func (c *Client) Recv() string

func (*Client) RecvMessage

func (c *Client) RecvMessage() irc.Message

func (*Client) Send

func (c *Client) Send(line string)

func (*Client) SendMessage

func (c *Client) SendMessage(cmd string, params ...string)

func (*Client) WaitFor

func (c *Client) WaitFor(reply string) irc.Message

func (*Client) WaitForAny

func (c *Client) WaitForAny(expecting []string) irc.Message

type Server

type Server struct {
	Actual *irc.Server
	// contains filtered or unexported fields
}

func (*Server) NewClient

func (s *Server) NewClient() *Client

func (*Server) Quit

func (s *Server) Quit()

Jump to

Keyboard shortcuts

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