Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.47.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Communicator

type Communicator struct {
	mock.Mock
}

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

type Communicator_CallAvailableNode_Call struct {
	*mock.Call
}

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 (*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

type NodeSelector struct {
	mock.Mock
}

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

HasNext is a helper method to define mock.On call

func (*NodeSelector_Expecter) Next added in v0.46.0

Next is a helper method to define mock.On call

type NodeSelector_HasNext_Call added in v0.46.0

type NodeSelector_HasNext_Call struct {
	*mock.Call
}

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 (*NodeSelector_HasNext_Call) Run added in v0.46.0

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

type NodeSelector_Next_Call struct {
	*mock.Call
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL