Documentation ¶
Index ¶
- func CollectionNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, ...) mock.CollectionNode
- func CollectionNodes(t *testing.T, hub *stub.Hub, nNodes int, chainID flow.ChainID, ...) []mock.CollectionNode
- func ConsensusNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, ...) mock.ConsensusNode
- func ConsensusNodes(t *testing.T, hub *stub.Hub, nNodes int, chainID flow.ChainID) []mock.ConsensusNode
- func ExecutionNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, ...) mock.ExecutionNode
- func GenericNode(t testing.TB, hub *stub.Hub, identity *flow.Identity, ...) mock.GenericNode
- func VerificationNode(t testing.TB, hub *stub.Hub, identity *flow.Identity, ...) mock.VerificationNode
- type VerificationOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionNode ¶
func CollectionNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, identities []*flow.Identity, chainID flow.ChainID, options ...func(*protocol.State)) mock.CollectionNode
CollectionNode returns a mock collection node.
func CollectionNodes ¶
func CollectionNodes(t *testing.T, hub *stub.Hub, nNodes int, chainID flow.ChainID, options ...func(*protocol.State)) []mock.CollectionNode
CollectionNodes returns n collection nodes connected to the given hub.
func ConsensusNode ¶
func ConsensusNodes ¶
func ExecutionNode ¶
func GenericNode ¶
func VerificationNode ¶
func VerificationNode(t testing.TB, hub *stub.Hub, identity *flow.Identity, identities []*flow.Identity, assigner module.ChunkAssigner, requestInterval time.Duration, processInterval time.Duration, receiptsLimit uint, chunksLimit uint, failureThreshold uint, chainID flow.ChainID, collector module.VerificationMetrics, mempoolCollector module.MempoolMetrics, opts ...VerificationOpt) mock.VerificationNode
Types ¶
type VerificationOpt ¶
type VerificationOpt func(*mock.VerificationNode)
func WithMatchEngine ¶
func WithMatchEngine(eng network.Engine) VerificationOpt
func WithVerifierEngine ¶
func WithVerifierEngine(eng network.Engine) VerificationOpt
Click to show internal directories.
Click to hide internal directories.