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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateMachineFactoryMethod

type StateMachineFactoryMethod struct {
	mock.Mock
}

StateMachineFactoryMethod is an autogenerated mock type for the StateMachineFactoryMethod type

func NewStateMachineFactoryMethod

func NewStateMachineFactoryMethod(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateMachineFactoryMethod

NewStateMachineFactoryMethod creates a new instance of StateMachineFactoryMethod. 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 (*StateMachineFactoryMethod) EXPECT

func (*StateMachineFactoryMethod) Execute

func (_mock *StateMachineFactoryMethod) Execute(candidateView uint64, parentState *flow.RichEpochStateEntry) (epochs.StateMachine, error)

Execute provides a mock function for the type StateMachineFactoryMethod

type StateMachineFactoryMethod_Execute_Call

type StateMachineFactoryMethod_Execute_Call struct {
	*mock.Call
}

StateMachineFactoryMethod_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*StateMachineFactoryMethod_Execute_Call) Return

func (*StateMachineFactoryMethod_Execute_Call) Run

func (*StateMachineFactoryMethod_Execute_Call) RunAndReturn

type StateMachineFactoryMethod_Expecter

type StateMachineFactoryMethod_Expecter struct {
	// contains filtered or unexported fields
}

func (*StateMachineFactoryMethod_Expecter) Execute

func (_e *StateMachineFactoryMethod_Expecter) Execute(candidateView interface{}, parentState interface{}) *StateMachineFactoryMethod_Execute_Call

Execute is a helper method to define mock.On call

  • candidateView uint64
  • parentState *flow.RichEpochStateEntry

Jump to

Keyboard shortcuts

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