mock

package
v0.46.2-util-remove-ex... Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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 StateMachine

type StateMachine struct {
	mock.Mock
}

StateMachine is an autogenerated mock type for the StateMachine type

func NewStateMachine

func NewStateMachine(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateMachine

NewStateMachine creates a new instance of StateMachine. 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 (*StateMachine) Build

func (_mock *StateMachine) Build() (*flow.EpochStateEntry, flow.Identifier, bool)

Build provides a mock function for the type StateMachine

func (*StateMachine) EXPECT added in v0.46.0

func (_m *StateMachine) EXPECT() *StateMachine_Expecter

func (*StateMachine) EjectIdentity

func (_mock *StateMachine) EjectIdentity(ejectionEvent *flow.EjectNode) bool

EjectIdentity provides a mock function for the type StateMachine

func (*StateMachine) ParentState

func (_mock *StateMachine) ParentState() *flow.RichEpochStateEntry

ParentState provides a mock function for the type StateMachine

func (*StateMachine) ProcessEpochCommit

func (_mock *StateMachine) ProcessEpochCommit(epochCommit *flow.EpochCommit) (bool, error)

ProcessEpochCommit provides a mock function for the type StateMachine

func (*StateMachine) ProcessEpochRecover added in v0.37.1

func (_mock *StateMachine) ProcessEpochRecover(epochRecover *flow.EpochRecover) (bool, error)

ProcessEpochRecover provides a mock function for the type StateMachine

func (*StateMachine) ProcessEpochSetup

func (_mock *StateMachine) ProcessEpochSetup(epochSetup *flow.EpochSetup) (bool, error)

ProcessEpochSetup provides a mock function for the type StateMachine

func (*StateMachine) TransitionToNextEpoch

func (_mock *StateMachine) TransitionToNextEpoch() error

TransitionToNextEpoch provides a mock function for the type StateMachine

func (*StateMachine) View

func (_mock *StateMachine) View() uint64

View provides a mock function for the type StateMachine

type StateMachine_Build_Call added in v0.46.0

type StateMachine_Build_Call struct {
	*mock.Call
}

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

func (*StateMachine_Build_Call) Return added in v0.46.0

func (_c *StateMachine_Build_Call) Return(updatedState *flow.EpochStateEntry, stateID flow.Identifier, hasChanges bool) *StateMachine_Build_Call

func (*StateMachine_Build_Call) Run added in v0.46.0

func (_c *StateMachine_Build_Call) Run(run func()) *StateMachine_Build_Call

func (*StateMachine_Build_Call) RunAndReturn added in v0.46.0

type StateMachine_EjectIdentity_Call added in v0.46.0

type StateMachine_EjectIdentity_Call struct {
	*mock.Call
}

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

func (*StateMachine_EjectIdentity_Call) Return added in v0.46.0

func (*StateMachine_EjectIdentity_Call) Run added in v0.46.0

func (*StateMachine_EjectIdentity_Call) RunAndReturn added in v0.46.0

func (_c *StateMachine_EjectIdentity_Call) RunAndReturn(run func(ejectionEvent *flow.EjectNode) bool) *StateMachine_EjectIdentity_Call

type StateMachine_Expecter added in v0.46.0

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

func (*StateMachine_Expecter) Build added in v0.46.0

Build is a helper method to define mock.On call

func (*StateMachine_Expecter) EjectIdentity added in v0.46.0

func (_e *StateMachine_Expecter) EjectIdentity(ejectionEvent interface{}) *StateMachine_EjectIdentity_Call

EjectIdentity is a helper method to define mock.On call

  • ejectionEvent *flow.EjectNode

func (*StateMachine_Expecter) ParentState added in v0.46.0

ParentState is a helper method to define mock.On call

func (*StateMachine_Expecter) ProcessEpochCommit added in v0.46.0

func (_e *StateMachine_Expecter) ProcessEpochCommit(epochCommit interface{}) *StateMachine_ProcessEpochCommit_Call

ProcessEpochCommit is a helper method to define mock.On call

  • epochCommit *flow.EpochCommit

func (*StateMachine_Expecter) ProcessEpochRecover added in v0.46.0

func (_e *StateMachine_Expecter) ProcessEpochRecover(epochRecover interface{}) *StateMachine_ProcessEpochRecover_Call

ProcessEpochRecover is a helper method to define mock.On call

  • epochRecover *flow.EpochRecover

func (*StateMachine_Expecter) ProcessEpochSetup added in v0.46.0

func (_e *StateMachine_Expecter) ProcessEpochSetup(epochSetup interface{}) *StateMachine_ProcessEpochSetup_Call

ProcessEpochSetup is a helper method to define mock.On call

  • epochSetup *flow.EpochSetup

func (*StateMachine_Expecter) TransitionToNextEpoch added in v0.46.0

TransitionToNextEpoch is a helper method to define mock.On call

func (*StateMachine_Expecter) View added in v0.46.0

View is a helper method to define mock.On call

type StateMachine_ParentState_Call added in v0.46.0

type StateMachine_ParentState_Call struct {
	*mock.Call
}

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

func (*StateMachine_ParentState_Call) Return added in v0.46.0

func (*StateMachine_ParentState_Call) Run added in v0.46.0

func (*StateMachine_ParentState_Call) RunAndReturn added in v0.46.0

type StateMachine_ProcessEpochCommit_Call added in v0.46.0

type StateMachine_ProcessEpochCommit_Call struct {
	*mock.Call
}

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

func (*StateMachine_ProcessEpochCommit_Call) Return added in v0.46.0

func (*StateMachine_ProcessEpochCommit_Call) Run added in v0.46.0

func (*StateMachine_ProcessEpochCommit_Call) RunAndReturn added in v0.46.0

type StateMachine_ProcessEpochRecover_Call added in v0.46.0

type StateMachine_ProcessEpochRecover_Call struct {
	*mock.Call
}

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

func (*StateMachine_ProcessEpochRecover_Call) Return added in v0.46.0

func (*StateMachine_ProcessEpochRecover_Call) Run added in v0.46.0

func (*StateMachine_ProcessEpochRecover_Call) RunAndReturn added in v0.46.0

type StateMachine_ProcessEpochSetup_Call added in v0.46.0

type StateMachine_ProcessEpochSetup_Call struct {
	*mock.Call
}

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

func (*StateMachine_ProcessEpochSetup_Call) Return added in v0.46.0

func (*StateMachine_ProcessEpochSetup_Call) Run added in v0.46.0

func (*StateMachine_ProcessEpochSetup_Call) RunAndReturn added in v0.46.0

type StateMachine_TransitionToNextEpoch_Call added in v0.46.0

type StateMachine_TransitionToNextEpoch_Call struct {
	*mock.Call
}

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

func (*StateMachine_TransitionToNextEpoch_Call) Return added in v0.46.0

func (*StateMachine_TransitionToNextEpoch_Call) Run added in v0.46.0

func (*StateMachine_TransitionToNextEpoch_Call) RunAndReturn added in v0.46.0

type StateMachine_View_Call added in v0.46.0

type StateMachine_View_Call struct {
	*mock.Call
}

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

func (*StateMachine_View_Call) Return added in v0.46.0

func (*StateMachine_View_Call) Run added in v0.46.0

func (_c *StateMachine_View_Call) Run(run func()) *StateMachine_View_Call

func (*StateMachine_View_Call) RunAndReturn added in v0.46.0

func (_c *StateMachine_View_Call) RunAndReturn(run func() uint64) *StateMachine_View_Call

Jump to

Keyboard shortcuts

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