Versions in this module Expand all Collapse all v0 v0.29.0 Jul 29, 2023 Changes in this version + func AssertAddressesEqual(t *testing.T, exp, act []ma.Multiaddr) + func AssertNilError(t *testing.T, err error) + func ExpectError(t *testing.T, err error, msg string) + func GenerateTestAddrs(n int) []ma.Multiaddr + func RandPeerID() (peer.ID, error) + func RandPeerIDFatal(t testing.TB) peer.ID + func RandTestKeyPair(typ, bits int) (ci.PrivKey, ci.PubKey, error) + func SeededTestKeyPair(typ, bits int, seed int64) (ci.PrivKey, ci.PubKey, error) + type MockClock struct + func NewMockClock() *MockClock + func (c *MockClock) AdvanceBy(dur time.Duration) + func (c *MockClock) InstantTimer(when time.Time) *mockInstantTimer + func (c *MockClock) Now() time.Time + func (c *MockClock) Since(t time.Time) time.Duration