mock

package
v0.35.6-crescendo-prev... Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 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 StateMachine

type StateMachine struct {
	mock.Mock
}

StateMachine is an autogenerated mock type for the StateMachine type

func NewStateMachine

func NewStateMachine(t mockConstructorTestingTNewStateMachine) *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.

func (*StateMachine) Build

Build provides a mock function with given fields:

func (*StateMachine) EjectIdentity

func (_m *StateMachine) EjectIdentity(nodeID flow.Identifier) error

EjectIdentity provides a mock function with given fields: nodeID

func (*StateMachine) ParentState

func (_m *StateMachine) ParentState() *flow.RichProtocolStateEntry

ParentState provides a mock function with given fields:

func (*StateMachine) ProcessEpochCommit

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

ProcessEpochCommit provides a mock function with given fields: epochCommit

func (*StateMachine) ProcessEpochSetup

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

ProcessEpochSetup provides a mock function with given fields: epochSetup

func (*StateMachine) TransitionToNextEpoch

func (_m *StateMachine) TransitionToNextEpoch() error

TransitionToNextEpoch provides a mock function with given fields:

func (*StateMachine) View

func (_m *StateMachine) View() uint64

View provides a mock function with given fields:

type StateMachineFactoryMethod

type StateMachineFactoryMethod struct {
	mock.Mock
}

StateMachineFactoryMethod is an autogenerated mock type for the StateMachineFactoryMethod type

func NewStateMachineFactoryMethod

func NewStateMachineFactoryMethod(t mockConstructorTestingTNewStateMachineFactoryMethod) *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.

func (*StateMachineFactoryMethod) Execute

func (_m *StateMachineFactoryMethod) Execute(candidateView uint64, parentState *flow.RichProtocolStateEntry) (epochs.StateMachine, error)

Execute provides a mock function with given fields: candidateView, parentState

Jump to

Keyboard shortcuts

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