package test
import "github.com/libp2p/go-libp2p/p2p/host/peerstore/test"
Index ¶
- 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
Functions ¶
func AssertAddressesEqual ¶
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 Multiaddr ¶
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)
func TestPeerstoreProtoStoreLimits ¶
Types ¶
type AddrBookFactory ¶
type KeyBookFactory ¶
type PeerstoreFactory ¶
Source Files ¶
addr_book_suite.go benchmarks_suite.go keybook_suite.go peerstore_suite.go utils.go
- Version
- v0.41.1 (latest)
- Published
- Mar 24, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 3 weeks ago –
Tools for package owners.