Documentation ¶
Overview ¶
Package events is used for testing the event functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootModule ¶
type RootModule struct { // Used by the test function to wait for all event handler goroutines to exit, // to avoid dangling goroutines. WG sync.WaitGroup // contains filtered or unexported fields }
RootModule is the global module instance that will create module instances for each VU.
func New ¶
func New(globalEvents, vuEvents []event.Type) *RootModule
New returns a pointer to a new RootModule instance.
func (*RootModule) NewModuleInstance ¶
func (rm *RootModule) NewModuleInstance(vu modules.VU) modules.Instance
NewModuleInstance implements the modules.Module interface to return a new instance for each VU.
Click to show internal directories.
Click to hide internal directories.