Documentation ¶
Index ¶
- 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
- type KeyBookFactory
- type PeerstoreFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressProducer ¶
func BenchmarkKeyBook ¶
func BenchmarkKeyBook(b *testing.B, factory KeyBookFactory)
func BenchmarkPeerstore ¶
func BenchmarkPeerstore(b *testing.B, factory PeerstoreFactory, variant string)
func GenerateAddrs ¶
func GeneratePeerIDs ¶
func RandomPeer ¶
func TestAddrBook ¶
func TestAddrBook(t *testing.T, factory AddrBookFactory, clk *mockClock.Mock)
func TestKeyBook ¶
func TestKeyBook(t *testing.T, factory KeyBookFactory)
func TestPeerstore ¶
func TestPeerstore(t *testing.T, factory PeerstoreFactory)
Types ¶
type AddrBookFactory ¶
type KeyBookFactory ¶
type PeerstoreFactory ¶
Click to show internal directories.
Click to hide internal directories.