Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WebsocketResponseDefaultTimeout used in websocket testing // Defines wait time for receiving websocket response before cancelling WebsocketResponseDefaultTimeout = (3 * time.Second) // WebsocketResponseExtendedTimeout used in websocket testing // Defines wait time for receiving websocket response before cancelling WebsocketResponseExtendedTimeout = (15 * time.Second) // WebsocketChannelOverrideCapacity used in websocket testing // Defines channel capacity as defaults size can block tests WebsocketChannelOverrideCapacity = 75 MockTesting = "Mock testing framework in use for %s exchange @ %s on REST endpoints only" LiveTesting = "Mock testing bypassed; live testing of REST endpoints in use for %s exchange @ %s" )
This package is only to be referenced in test files
Variables ¶
This section is empty.
Functions ¶
func GetWebsocketInterfaceChannelOverride ¶
func GetWebsocketInterfaceChannelOverride() chan interface{}
GetWebsocketInterfaceChannelOverride returns a new interface based channel with the capacity set to WebsocketChannelOverrideCapacity
func GetWebsocketStructChannelOverride ¶
func GetWebsocketStructChannelOverride() chan struct{}
GetWebsocketStructChannelOverride returns a new struct based channel with the capacity set to WebsocketChannelOverrideCapacity
func NewTestWebsocket ¶
NewTestWebsocket returns a test websocket object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.