Versions in this module Expand all Collapse all v0 v0.23.5 Nov 8, 2022 Changes in this version + func DivulgeAddresses(a, b network.Network) + func GenSwarm(t *testing.T, opts ...Option) *swarm.Swarm + func GenUpgrader(t *testing.T, n *swarm.Swarm, opts ...tptu.Option) transport.Upgrader + type MockConnectionGater struct + Accept func(c network.ConnMultiaddrs) bool + Dial func(p peer.ID, addr ma.Multiaddr) bool + PeerDial func(p peer.ID) bool + Secured func(network.Direction, peer.ID, network.ConnMultiaddrs) bool + Upgraded func(c network.Conn) (bool, control.DisconnectReason) + func DefaultMockConnectionGater() *MockConnectionGater + func (m *MockConnectionGater) InterceptAccept(c network.ConnMultiaddrs) (allow bool) + func (m *MockConnectionGater) InterceptAddrDial(p peer.ID, addr ma.Multiaddr) (allow bool) + func (m *MockConnectionGater) InterceptPeerDial(p peer.ID) (allow bool) + func (m *MockConnectionGater) InterceptSecured(d network.Direction, p peer.ID, c network.ConnMultiaddrs) (allow bool) + func (m *MockConnectionGater) InterceptUpgraded(tc network.Conn) (allow bool, reason control.DisconnectReason) + type Option func(*testing.T, *config) + var OptDialOnly Option = func(_ *testing.T, c *config) { ... } + var OptDisableQUIC Option = func(_ *testing.T, c *config) { ... } + var OptDisableReuseport Option = func(_ *testing.T, c *config) { ... } + var OptDisableTCP Option = func(_ *testing.T, c *config) { ... } + func OptConnGater(cg connmgr.ConnectionGater) Option + func OptPeerPrivateKey(sk crypto.PrivKey) Option + func WithClock(clock clock) Option + func WithSwarmOpts(swarmOpts ...swarm.Option) Option