Documentation ¶
Overview ¶
Contains resources or utils for test units
Index ¶
- func CreateWakuMessage(contentTopic string, timestamp int64) *pb.WakuMessage
- func FindFreePort(t *testing.T, host string, maxAttempts int) (int, error)
- func GetHostAddress(ha host.Host) ma.Multiaddr
- func MakeHost(ctx context.Context, port int, randomness io.Reader) (host.Host, error)
- func RandomHex(n int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWakuMessage ¶
func CreateWakuMessage(contentTopic string, timestamp int64) *pb.WakuMessage
CreateWakuMessage creates a WakuMessage protobuffer with default values and a custom contenttopic and timestamp
func FindFreePort ¶
FindFreePort returns an available port number
func GetHostAddress ¶
GetHostAddress returns the first listen address used by a host
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.