mock

package
v0.38.0-preview.0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 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

Build provides a mock function with given fields:

func (*StateMachine) EjectIdentity

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

EjectIdentity provides a mock function with given fields: nodeID

func (*StateMachine) ParentState

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

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) ProcessEpochRecover added in v0.37.1

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

ProcessEpochRecover provides a mock function with given fields: epochRecover

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 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) Execute

func (_m *StateMachineFactoryMethod) Execute(candidateView uint64, parentState *flow.RichEpochStateEntry) (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