Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Communicator ¶
Communicator is an autogenerated mock type for the Communicator type
func NewCommunicator ¶
func NewCommunicator(t interface {
mock.TestingT
Cleanup(func())
}) *Communicator
NewCommunicator creates a new instance of Communicator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Communicator) CallAvailableNode ¶
func (_mock *Communicator) CallAvailableNode(nodes flow.IdentitySkeletonList, call func(node *flow.IdentitySkeleton) error, shouldTerminateOnError func(node *flow.IdentitySkeleton, err error) bool) error
CallAvailableNode provides a mock function for the type Communicator
func (*Communicator) EXPECT ¶ added in v0.46.0
func (_m *Communicator) EXPECT() *Communicator_Expecter
type Communicator_CallAvailableNode_Call ¶ added in v0.46.0
Communicator_CallAvailableNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallAvailableNode'
func (*Communicator_CallAvailableNode_Call) Return ¶ added in v0.46.0
func (_c *Communicator_CallAvailableNode_Call) Return(err error) *Communicator_CallAvailableNode_Call
func (*Communicator_CallAvailableNode_Call) Run ¶ added in v0.46.0
func (_c *Communicator_CallAvailableNode_Call) Run(run func(nodes flow.IdentitySkeletonList, call func(node *flow.IdentitySkeleton) error, shouldTerminateOnError func(node *flow.IdentitySkeleton, err error) bool)) *Communicator_CallAvailableNode_Call
func (*Communicator_CallAvailableNode_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Communicator_CallAvailableNode_Call) RunAndReturn(run func(nodes flow.IdentitySkeletonList, call func(node *flow.IdentitySkeleton) error, shouldTerminateOnError func(node *flow.IdentitySkeleton, err error) bool) error) *Communicator_CallAvailableNode_Call
type Communicator_Expecter ¶ added in v0.46.0
type Communicator_Expecter struct {
// contains filtered or unexported fields
}
func (*Communicator_Expecter) CallAvailableNode ¶ added in v0.46.0
func (_e *Communicator_Expecter) CallAvailableNode(nodes interface{}, call interface{}, shouldTerminateOnError interface{}) *Communicator_CallAvailableNode_Call
CallAvailableNode is a helper method to define mock.On call
- nodes flow.IdentitySkeletonList
- call func(node *flow.IdentitySkeleton) error
- shouldTerminateOnError func(node *flow.IdentitySkeleton, err error) bool
type NodeSelector ¶ added in v0.43.2
NodeSelector is an autogenerated mock type for the NodeSelector type
func NewNodeSelector ¶ added in v0.43.2
func NewNodeSelector(t interface {
mock.TestingT
Cleanup(func())
}) *NodeSelector
NewNodeSelector creates a new instance of NodeSelector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NodeSelector) EXPECT ¶ added in v0.46.0
func (_m *NodeSelector) EXPECT() *NodeSelector_Expecter
func (*NodeSelector) HasNext ¶ added in v0.43.2
func (_mock *NodeSelector) HasNext() bool
HasNext provides a mock function for the type NodeSelector
func (*NodeSelector) Next ¶ added in v0.43.2
func (_mock *NodeSelector) Next() *flow.IdentitySkeleton
Next provides a mock function for the type NodeSelector
type NodeSelector_Expecter ¶ added in v0.46.0
type NodeSelector_Expecter struct {
// contains filtered or unexported fields
}
func (*NodeSelector_Expecter) HasNext ¶ added in v0.46.0
func (_e *NodeSelector_Expecter) HasNext() *NodeSelector_HasNext_Call
HasNext is a helper method to define mock.On call
func (*NodeSelector_Expecter) Next ¶ added in v0.46.0
func (_e *NodeSelector_Expecter) Next() *NodeSelector_Next_Call
Next is a helper method to define mock.On call
type NodeSelector_HasNext_Call ¶ added in v0.46.0
NodeSelector_HasNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasNext'
func (*NodeSelector_HasNext_Call) Return ¶ added in v0.46.0
func (_c *NodeSelector_HasNext_Call) Return(b bool) *NodeSelector_HasNext_Call
func (*NodeSelector_HasNext_Call) Run ¶ added in v0.46.0
func (_c *NodeSelector_HasNext_Call) Run(run func()) *NodeSelector_HasNext_Call
func (*NodeSelector_HasNext_Call) RunAndReturn ¶ added in v0.46.0
func (_c *NodeSelector_HasNext_Call) RunAndReturn(run func() bool) *NodeSelector_HasNext_Call
type NodeSelector_Next_Call ¶ added in v0.46.0
NodeSelector_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*NodeSelector_Next_Call) Return ¶ added in v0.46.0
func (_c *NodeSelector_Next_Call) Return(identitySkeleton *flow.IdentitySkeleton) *NodeSelector_Next_Call
func (*NodeSelector_Next_Call) Run ¶ added in v0.46.0
func (_c *NodeSelector_Next_Call) Run(run func()) *NodeSelector_Next_Call
func (*NodeSelector_Next_Call) RunAndReturn ¶ added in v0.46.0
func (_c *NodeSelector_Next_Call) RunAndReturn(run func() *flow.IdentitySkeleton) *NodeSelector_Next_Call