mock

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

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

Go to latest
Published: Feb 27, 2024 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 ProtocolStateMachine

type ProtocolStateMachine struct {
	mock.Mock
}

ProtocolStateMachine is an autogenerated mock type for the ProtocolStateMachine type

func NewProtocolStateMachine

func NewProtocolStateMachine(t mockConstructorTestingTNewProtocolStateMachine) *ProtocolStateMachine

NewProtocolStateMachine creates a new instance of ProtocolStateMachine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProtocolStateMachine) Build

Build provides a mock function with given fields:

func (*ProtocolStateMachine) EjectIdentity

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

EjectIdentity provides a mock function with given fields: nodeID

func (*ProtocolStateMachine) ParentState

ParentState provides a mock function with given fields:

func (*ProtocolStateMachine) ProcessEpochCommit

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

ProcessEpochCommit provides a mock function with given fields: epochCommit

func (*ProtocolStateMachine) ProcessEpochSetup

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

ProcessEpochSetup provides a mock function with given fields: epochSetup

func (*ProtocolStateMachine) TransitionToNextEpoch

func (_m *ProtocolStateMachine) TransitionToNextEpoch() error

TransitionToNextEpoch provides a mock function with given fields:

func (*ProtocolStateMachine) View

func (_m *ProtocolStateMachine) View() uint64

View provides a mock function with given fields:

Jump to

Keyboard shortcuts

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