# Functions
AddRaftNode adds an additional raft test node to an existing cluster.
AdvanceTicks advances the raft state machine fake clock.
CheckNoValue checks that there is no value replicated on nodes, generally used to test the absence of a leader.
CheckValue checks that the value has been propagated between raft members.
CheckValuesOnNodes checks that all the nodes in the cluster have the same replicated data, generally used to check if a node can catch up with the logs correctly.
GetAllValuesOnNode returns all values on this node.
Leader determines who is the leader amongst a set of raft nodes belonging to the same cluster.
NewInitNode creates a new raft node initiating the cluster for other members to join.
NewJoinNode creates a new raft node joining an existing cluster.
NewNode creates a new raft node to use for tests.
NewRaftCluster creates a new raft cluster with 3 nodes for testing.
NewWrappedListener creates a new wrapped listener to register the raft server.
PollFunc is like PollFuncWithTimeout with timeout=10s.
PollFuncWithTimeout is used to periodically execute a check function, it returns error after timeout.
ProposeValue proposes a value to a raft test cluster.
RecycleWrappedListener creates a new wrappedListener that uses the same listening socket as the supplied wrappedListener.
RestartNode restarts a raft test node.
ShutdownNode shuts down a raft test node and deletes the content of the state directory.
TeardownCluster destroys a raft cluster used for tests.
WaitForCluster waits until leader will be one of specified nodes.
WaitForPeerNumber waits until peers in cluster converge to specified number.
# Structs
TestNode represents a raft test node.
WrappedListener disables the Close method to make it possible to reuse a socket.