mock

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: AGPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (_m *Communicator) CallAvailableNode(nodes flow.IdentitySkeletonList, call func(*flow.IdentitySkeleton) error, shouldTerminateOnError func(*flow.IdentitySkeleton, error) bool) error

CallAvailableNode provides a mock function with given fields: nodes, call, shouldTerminateOnError

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) HasNext added in v0.43.2

func (_m *NodeSelector) HasNext() bool

HasNext provides a mock function with no fields

func (*NodeSelector) Next added in v0.43.2

func (_m *NodeSelector) Next() *flow.IdentitySkeleton

Next provides a mock function with no fields

Jump to

Keyboard shortcuts

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