Documentation ¶
Index ¶
- func BenchSwarm[A p2p.Addr](b *testing.B, sf func(testing.TB, []p2p.Swarm[A]))
- func CloseAskSwarms[A p2p.Addr](t testing.TB, xs []p2p.AskSwarm[A])
- func CloseSecureSwarms[A p2p.Addr, Pub any](t testing.TB, xs []p2p.SecureSwarm[A, Pub])
- func CloseSwarms[A p2p.Addr](t testing.TB, xs []p2p.Swarm[A])
- func TestAsk[A p2p.Addr](t *testing.T, src, dst p2p.AskSwarm[A])
- func TestAskAll[A p2p.Addr](t *testing.T, xs []p2p.AskSwarm[A])
- func TestAskSwarm[A p2p.Addr](t *testing.T, newSwarms func(testing.TB, []p2p.AskSwarm[A]))
- func TestErrorResponse[A p2p.Addr](t *testing.T, src, dst p2p.AskSwarm[A])
- func TestHasUDP(t *testing.T, newAddr func() p2p.Addr)
- func TestLocalAddrs[A p2p.Addr](t *testing.T, s p2p.Swarm[A])
- func TestMarshalParse[A p2p.Addr](t *testing.T, s p2p.Swarm[A])
- func TestMultipleAsks[A p2p.Addr](t *testing.T, xs []p2p.AskSwarm[A])
- func TestSecureSwarm[A p2p.Addr, Pub any](t *testing.T, newSwarms func(testing.TB, []p2p.SecureSwarm[A, Pub]))
- func TestSwarm[A p2p.Addr](t *testing.T, newSwarms func(testing.TB, []p2p.Swarm[A]))
- func TestTell[A p2p.Addr](t *testing.T, src, dst p2p.Swarm[A])
- func TestTellAllPairs[A p2p.Addr](t *testing.T, xs []p2p.Swarm[A])
- func TestTellBidirectional[A p2p.Addr](t *testing.T, a, b p2p.Swarm[A])
- func TestTellMTU[A p2p.Addr](t *testing.T, a, b p2p.Swarm[A])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseAskSwarms ¶
func CloseSecureSwarms ¶
func CloseSwarms ¶
func TestAskAll ¶
func TestAskSwarm ¶
TestAskSwarm runs a test suite on AskSwarms to ensure they implement p2p.AskSwarm correctly
func TestErrorResponse ¶
func TestHasUDP ¶
func TestLocalAddrs ¶
func TestMarshalParse ¶
func TestMultipleAsks ¶
func TestSecureSwarm ¶
func TestSwarm ¶
TestSwarm runs a suite of tests to ensure a Swarm exhibits the correct behaviors newSwarms should fill the passed slice with swarms which can communicate with one another, and register any cleanup on the provided testing.TB
func TestTellAllPairs ¶
func TestTellBidirectional ¶
func TestTellMTU ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.