Help us shape the future of Go! Take the 2026 Go Developer Survey

v5test

package
v1.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: GPL-3.0, LGPL-3.0, BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	Dest             *enode.Node
	Listen1, Listen2 string // listening addresses
}

Suite is the discv5 test suite.

func (*Suite) AllTests

func (s *Suite) AllTests() []utesting.Test

func (*Suite) TestFindnodeResults

func (s *Suite) TestFindnodeResults(t *utesting.T)

func (*Suite) TestFindnodeZeroDistance

func (s *Suite) TestFindnodeZeroDistance(t *utesting.T)

func (*Suite) TestPing

func (s *Suite) TestPing(t *utesting.T)

func (*Suite) TestPingHandshakeInterrupted

func (s *Suite) TestPingHandshakeInterrupted(t *utesting.T)

TestPingHandshakeInterrupted starts a handshake, but doesn't finish it and sends a second ordinary message packet instead of a handshake message packet. The remote node should respond with another WHOAREYOU challenge for the second packet.

func (*Suite) TestPingLargeRequestID

func (s *Suite) TestPingLargeRequestID(t *utesting.T)

func (*Suite) TestPingMultiIP

func (s *Suite) TestPingMultiIP(t *utesting.T)

func (*Suite) TestTalkRequest

func (s *Suite) TestTalkRequest(t *utesting.T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL