test

package
v1.0.69 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitOrTimeout

func WaitOrTimeout(t *testing.T, ch chan interface{}, msg string)

func WaitOrTimeoutFor

func WaitOrTimeoutFor(t *testing.T, ch chan interface{}, timeout int, msg string)

Types

type TestServer

type TestServer struct {
	Server titan.IServer
	// contains filtered or unexported fields
}

func NewTestServer

func NewTestServer(t *testing.T, server titan.IServer) *TestServer

func (*TestServer) Start

func (s *TestServer) Start()

func (*TestServer) Stop

func (s *TestServer) Stop()

type TestServers

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

func (*TestServers) Start

func (s *TestServers) Start()

func (*TestServers) Stop

func (s *TestServers) Stop()

type TestServersInterface

type TestServersInterface interface {
	Start()
	Stop()
}

func NewTestServers

func NewTestServers(servers ...titan.IServer) TestServersInterface

type TestWaitGroup

type TestWaitGroup struct {
	*sync.WaitGroup
	// contains filtered or unexported fields
}

func NewTestWaitGroup

func NewTestWaitGroup(t *testing.T) *TestWaitGroup

func (*TestWaitGroup) WaitOrTimeout

func (wg *TestWaitGroup) WaitOrTimeout()

func (*TestWaitGroup) WaitOrTimeoutFor

func (wg *TestWaitGroup) WaitOrTimeoutFor(timeout int)

func (*TestWaitGroup) WaitOrTimeoutForWithMessage

func (wg *TestWaitGroup) WaitOrTimeoutForWithMessage(timeout int, timeoutMessage string)

Jump to

Keyboard shortcuts

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