{"modulePath":"github.com/MaxflowO2/go-mfc","version":"v0.0.0-20210523022220-88b26fd8599d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package v5test\n\n## Types\n\n```go\ntype Suite struct {\n\tDest             *enode.Node\n\tListen1, Listen2 string // listening addresses\n}\n```\nSuite is the discv5 test suite.\n\n```go\nfunc (s *Suite) AllTests() []utesting.Test\n```\n\n```go\nfunc (s *Suite) TestFindnodeResults(t *utesting.T)\n```\nIn this test, multiple nodes ping the node under test. After waiting for them to be accepted into the remote table, the test checks that they are returned by FINDNODE.\n\n```go\nfunc (s *Suite) TestFindnodeZeroDistance(t *utesting.T)\n```\nThis test checks that the remote node returns itself for FINDNODE with distance zero.\n\n```go\nfunc (s *Suite) TestPing(t *utesting.T)\n```\nThis test sends PING and expects a PONG response.\n\n```go\nfunc (s *Suite) TestPingHandshakeInterrupted(t *utesting.T)\n```\nThis test 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.\n\n```go\nfunc (s *Suite) TestPingLargeRequestID(t *utesting.T)\n```\nThis test sends PING with a 9-byte request ID, which isn't allowed by the spec. The remote node should not respond.\n\n```go\nfunc (s *Suite) TestPingMultiIP(t *utesting.T)\n```\nIn this test, a session is established from one IP as usual. The session is then reused on another IP, which shouldn't work. The remote node should respond with WHOAREYOU for the attempt from a different IP.\n\n```go\nfunc (s *Suite) TestTalkRequest(t *utesting.T)\n```\nThis test sends TALKREQ and expects an empty TALKRESP response.\n\n","path":"github.com/MaxflowO2/go-mfc/cmd/devp2p/internal/v5test","name":"v5test","synopsis":"","isRedistributable":true}
