Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockMessageEvent ¶
type MockMessageEvent struct { From peer.ID Topic string Protocol string Msg *spectypes.SSVMessage }
MockMessageEvent is an abstraction used to push stream/pubsub messages
type TestEventHandler ¶
type TestEventHandler func(e MockMessageEvent) spectypes.SSVMessage
TestEventHandler represents a function that handles a message event
type TestNetwork ¶
type TestNetwork interface { protocolp2p.Network // contains filtered or unexported methods }
TestNetwork is a wrapping interface that enables tests to run with local network
func NewMockNetwork ¶
NewMockNetwork creates a new instance of TestNetwork
Click to show internal directories.
Click to hide internal directories.