Versions in this module Expand all Collapse all v0 v0.29.0 Jul 29, 2023 Changes in this version + func AddressProducer(ctx context.Context, b *testing.B, addrs chan *peerpair, addrsPerPeer int) + func AssertAddressesEqual(t *testing.T, exp, act []ma.Multiaddr) + func BenchmarkKeyBook(b *testing.B, factory KeyBookFactory) + func BenchmarkPeerstore(b *testing.B, factory PeerstoreFactory, variant string) + func GenerateAddrs(count int) []ma.Multiaddr + func GeneratePeerIDs(count int) []peer.ID + func Multiaddr(m string) ma.Multiaddr + func RandomPeer(b *testing.B, addrCount int) *peerpair + func TestAddrBook(t *testing.T, factory AddrBookFactory, clk *mockClock.Mock) + func TestKeyBook(t *testing.T, factory KeyBookFactory) + func TestPeerstore(t *testing.T, factory PeerstoreFactory) + func TestPeerstoreProtoStoreLimits(t *testing.T, ps pstore.Peerstore, limit int) + type AddrBookFactory func() (pstore.AddrBook, func()) + type KeyBookFactory func() (pstore.KeyBook, func()) + type PeerstoreFactory func() (pstore.Peerstore, func())