Documentation ¶
Overview ¶
Package test contains implementations of the peer interfaces that are useful for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericBusTest ¶
GenericBusTest tests the general functionality of a bus in the happy case: it tests that messages sent over the bus arrive at the correct destination. The parameter numClients controls how many clients communicate over the bus, and numMsgs controls how many messages each client sends to all other clients. The parameter busAssigner is used to assign a bus to each client, and must perform any necessary work to make clients able to communicate with each other (such as setting up dialers and listeners, in case of networking).
func NewRandomAddress ¶
NewRandomAddress returns a new random peer address. Currently still a stub until the crypto for peer addresses is decided.
func NewRandomAddresses ¶
NewRandomAddresses returns a slice of random peer addresses.
Types ¶
This section is empty.