package
2.0.8+incompatible
Repository: https://github.com/etherzero-org/go-etherzero.git
Documentation: pkg.go.dev

# Functions

NewProtocolTester constructs a new ProtocolTester it takes as argument the pivot node id, the number of dummy peers and the protocol run function called on a peer connection by the p2p server.
No description provided by the author
No description provided by the author

# Structs

Disconnect represents a disconnect event, used and checked by TestDisconnected.
Exchange is the basic units of protocol tests the triggers and expects in the arrays are run immediately and asynchronously thus one cannot have multiple expects for the SAME peer with DIFFERENT message types because it's unpredictable which expect will receive which message (with expect #1 and #2, messages might be sent #2 and #1, and both expects will complain about wrong message code) an exchange is defined on a session.
Expect is part of an exchange, outgoing message from the pivot node received by a peer.
ProtocolSession is a quasi simulation of a pivot node running a service and a number of dummy peers that can send (trigger) or receive (expect) messages.
ProtocolTester is the tester environment used for unit testing protocol message exchanges.
TestPeerPool is an example peerPool to demonstrate registration of peer connections.
Trigger is part of the exchange, incoming message for the pivot node sent by a peer.
No description provided by the author

# Interfaces

No description provided by the author