Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GetTestLogger is a proxy to go-xbus/testutils.GetTestLogger GetTestLogger = testutils.GetTestLogger // ExpectsEqual is a proxy to go-xbus/testutils.ExpectsEqual ExpectsEqual = testutils.ExpectsEqual // ExpectsContains is a proxy to go-xbus/testutils.ExpectsContains ExpectsContains = testutils.ExpectsContains )
View Source
var LastUUID api.UUID
LastUUID contains the last UUID returned by NewUUID()
Functions ¶
func DeferedAssertNoError ¶
DeferedAssertNoError helps checking a function error in a defer statement
func ExpectsJSONContains ¶
func ExpectsJSONContains(expected interface{}) testutils.ExpectedError
ExpectsJSONContains match
Types ¶
type NatsTestServer ¶
NatsTestServer wraps a gnatsd server.Server
func InitNatsTestServer ¶
func InitNatsTestServer( t *testing.T, logger xbus.ZeroLogger, accountStorage storage.AccountStorage, passwordStorage storage.PasswordStorage, actorStorage storage.ActorStorage, sessionStorage storage.SessionStorage, serverCert *tls.Certificate, ) NatsTestServer
InitNatsTestServer returns a gnatsd test server
func (NatsTestServer) AuthToken ¶
func (s NatsTestServer) AuthToken() string
AuthToken returns the auth token
func (NatsTestServer) Connect ¶
func (s NatsTestServer) Connect(t *testing.T) *nats.Conn
Connect returns a new client connection to the server
func (NatsTestServer) IsReady ¶
func (s NatsTestServer) IsReady() bool
IsReady returns true if the server is ready
type PortLock ¶
type PortLock struct {
// contains filtered or unexported fields
}
PortLock is a locker which locks by binding to a port on the loopback IPv4 interface
type TestLogger ¶
type TestLogger = testutils.TestLogger
TestLogger is a proxy to go-xbus/testutils.TestLogger
Click to show internal directories.
Click to hide internal directories.