Documentation
¶
Index ¶
- type StateMachine
- func (_mock *StateMachine) Build() (*flow.EpochStateEntry, flow.Identifier, bool)
- func (_m *StateMachine) EXPECT() *StateMachine_Expecter
- func (_mock *StateMachine) EjectIdentity(ejectionEvent *flow.EjectNode) bool
- func (_mock *StateMachine) ParentState() *flow.RichEpochStateEntry
- func (_mock *StateMachine) ProcessEpochCommit(epochCommit *flow.EpochCommit) (bool, error)
- func (_mock *StateMachine) ProcessEpochRecover(epochRecover *flow.EpochRecover) (bool, error)
- func (_mock *StateMachine) ProcessEpochSetup(epochSetup *flow.EpochSetup) (bool, error)
- func (_mock *StateMachine) TransitionToNextEpoch() error
- func (_mock *StateMachine) View() uint64
- type StateMachine_Build_Call
- func (_c *StateMachine_Build_Call) Return(updatedState *flow.EpochStateEntry, stateID flow.Identifier, hasChanges bool) *StateMachine_Build_Call
- func (_c *StateMachine_Build_Call) Run(run func()) *StateMachine_Build_Call
- func (_c *StateMachine_Build_Call) RunAndReturn(run func() (*flow.EpochStateEntry, flow.Identifier, bool)) *StateMachine_Build_Call
- type StateMachine_EjectIdentity_Call
- func (_c *StateMachine_EjectIdentity_Call) Return(b bool) *StateMachine_EjectIdentity_Call
- func (_c *StateMachine_EjectIdentity_Call) Run(run func(ejectionEvent *flow.EjectNode)) *StateMachine_EjectIdentity_Call
- func (_c *StateMachine_EjectIdentity_Call) RunAndReturn(run func(ejectionEvent *flow.EjectNode) bool) *StateMachine_EjectIdentity_Call
- type StateMachine_Expecter
- func (_e *StateMachine_Expecter) Build() *StateMachine_Build_Call
- func (_e *StateMachine_Expecter) EjectIdentity(ejectionEvent interface{}) *StateMachine_EjectIdentity_Call
- func (_e *StateMachine_Expecter) ParentState() *StateMachine_ParentState_Call
- func (_e *StateMachine_Expecter) ProcessEpochCommit(epochCommit interface{}) *StateMachine_ProcessEpochCommit_Call
- func (_e *StateMachine_Expecter) ProcessEpochRecover(epochRecover interface{}) *StateMachine_ProcessEpochRecover_Call
- func (_e *StateMachine_Expecter) ProcessEpochSetup(epochSetup interface{}) *StateMachine_ProcessEpochSetup_Call
- func (_e *StateMachine_Expecter) TransitionToNextEpoch() *StateMachine_TransitionToNextEpoch_Call
- func (_e *StateMachine_Expecter) View() *StateMachine_View_Call
- type StateMachine_ParentState_Call
- func (_c *StateMachine_ParentState_Call) Return(richEpochStateEntry *flow.RichEpochStateEntry) *StateMachine_ParentState_Call
- func (_c *StateMachine_ParentState_Call) Run(run func()) *StateMachine_ParentState_Call
- func (_c *StateMachine_ParentState_Call) RunAndReturn(run func() *flow.RichEpochStateEntry) *StateMachine_ParentState_Call
- type StateMachine_ProcessEpochCommit_Call
- func (_c *StateMachine_ProcessEpochCommit_Call) Return(b bool, err error) *StateMachine_ProcessEpochCommit_Call
- func (_c *StateMachine_ProcessEpochCommit_Call) Run(run func(epochCommit *flow.EpochCommit)) *StateMachine_ProcessEpochCommit_Call
- func (_c *StateMachine_ProcessEpochCommit_Call) RunAndReturn(run func(epochCommit *flow.EpochCommit) (bool, error)) *StateMachine_ProcessEpochCommit_Call
- type StateMachine_ProcessEpochRecover_Call
- func (_c *StateMachine_ProcessEpochRecover_Call) Return(b bool, err error) *StateMachine_ProcessEpochRecover_Call
- func (_c *StateMachine_ProcessEpochRecover_Call) Run(run func(epochRecover *flow.EpochRecover)) *StateMachine_ProcessEpochRecover_Call
- func (_c *StateMachine_ProcessEpochRecover_Call) RunAndReturn(run func(epochRecover *flow.EpochRecover) (bool, error)) *StateMachine_ProcessEpochRecover_Call
- type StateMachine_ProcessEpochSetup_Call
- func (_c *StateMachine_ProcessEpochSetup_Call) Return(b bool, err error) *StateMachine_ProcessEpochSetup_Call
- func (_c *StateMachine_ProcessEpochSetup_Call) Run(run func(epochSetup *flow.EpochSetup)) *StateMachine_ProcessEpochSetup_Call
- func (_c *StateMachine_ProcessEpochSetup_Call) RunAndReturn(run func(epochSetup *flow.EpochSetup) (bool, error)) *StateMachine_ProcessEpochSetup_Call
- type StateMachine_TransitionToNextEpoch_Call
- func (_c *StateMachine_TransitionToNextEpoch_Call) Return(err error) *StateMachine_TransitionToNextEpoch_Call
- func (_c *StateMachine_TransitionToNextEpoch_Call) Run(run func()) *StateMachine_TransitionToNextEpoch_Call
- func (_c *StateMachine_TransitionToNextEpoch_Call) RunAndReturn(run func() error) *StateMachine_TransitionToNextEpoch_Call
- type StateMachine_View_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateMachine ¶
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
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
func (_c *StateMachine_Build_Call) RunAndReturn(run func() (*flow.EpochStateEntry, flow.Identifier, bool)) *StateMachine_Build_Call
type StateMachine_EjectIdentity_Call ¶ added in v0.46.0
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 (_c *StateMachine_EjectIdentity_Call) Return(b bool) *StateMachine_EjectIdentity_Call
func (*StateMachine_EjectIdentity_Call) Run ¶ added in v0.46.0
func (_c *StateMachine_EjectIdentity_Call) Run(run func(ejectionEvent *flow.EjectNode)) *StateMachine_EjectIdentity_Call
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
func (_e *StateMachine_Expecter) Build() *StateMachine_Build_Call
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
func (_e *StateMachine_Expecter) ParentState() *StateMachine_ParentState_Call
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
func (_e *StateMachine_Expecter) TransitionToNextEpoch() *StateMachine_TransitionToNextEpoch_Call
TransitionToNextEpoch is a helper method to define mock.On call
func (*StateMachine_Expecter) View ¶ added in v0.46.0
func (_e *StateMachine_Expecter) View() *StateMachine_View_Call
View is a helper method to define mock.On call
type StateMachine_ParentState_Call ¶ added in v0.46.0
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 (_c *StateMachine_ParentState_Call) Return(richEpochStateEntry *flow.RichEpochStateEntry) *StateMachine_ParentState_Call
func (*StateMachine_ParentState_Call) Run ¶ added in v0.46.0
func (_c *StateMachine_ParentState_Call) Run(run func()) *StateMachine_ParentState_Call
func (*StateMachine_ParentState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachine_ParentState_Call) RunAndReturn(run func() *flow.RichEpochStateEntry) *StateMachine_ParentState_Call
type StateMachine_ProcessEpochCommit_Call ¶ added in v0.46.0
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 (_c *StateMachine_ProcessEpochCommit_Call) Return(b bool, err error) *StateMachine_ProcessEpochCommit_Call
func (*StateMachine_ProcessEpochCommit_Call) Run ¶ added in v0.46.0
func (_c *StateMachine_ProcessEpochCommit_Call) Run(run func(epochCommit *flow.EpochCommit)) *StateMachine_ProcessEpochCommit_Call
func (*StateMachine_ProcessEpochCommit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachine_ProcessEpochCommit_Call) RunAndReturn(run func(epochCommit *flow.EpochCommit) (bool, error)) *StateMachine_ProcessEpochCommit_Call
type StateMachine_ProcessEpochRecover_Call ¶ added in v0.46.0
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 (_c *StateMachine_ProcessEpochRecover_Call) Return(b bool, err error) *StateMachine_ProcessEpochRecover_Call
func (*StateMachine_ProcessEpochRecover_Call) Run ¶ added in v0.46.0
func (_c *StateMachine_ProcessEpochRecover_Call) Run(run func(epochRecover *flow.EpochRecover)) *StateMachine_ProcessEpochRecover_Call
func (*StateMachine_ProcessEpochRecover_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachine_ProcessEpochRecover_Call) RunAndReturn(run func(epochRecover *flow.EpochRecover) (bool, error)) *StateMachine_ProcessEpochRecover_Call
type StateMachine_ProcessEpochSetup_Call ¶ added in v0.46.0
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 (_c *StateMachine_ProcessEpochSetup_Call) Return(b bool, err error) *StateMachine_ProcessEpochSetup_Call
func (*StateMachine_ProcessEpochSetup_Call) Run ¶ added in v0.46.0
func (_c *StateMachine_ProcessEpochSetup_Call) Run(run func(epochSetup *flow.EpochSetup)) *StateMachine_ProcessEpochSetup_Call
func (*StateMachine_ProcessEpochSetup_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachine_ProcessEpochSetup_Call) RunAndReturn(run func(epochSetup *flow.EpochSetup) (bool, error)) *StateMachine_ProcessEpochSetup_Call
type StateMachine_TransitionToNextEpoch_Call ¶ added in v0.46.0
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 (_c *StateMachine_TransitionToNextEpoch_Call) Return(err error) *StateMachine_TransitionToNextEpoch_Call
func (*StateMachine_TransitionToNextEpoch_Call) Run ¶ added in v0.46.0
func (_c *StateMachine_TransitionToNextEpoch_Call) Run(run func()) *StateMachine_TransitionToNextEpoch_Call
func (*StateMachine_TransitionToNextEpoch_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachine_TransitionToNextEpoch_Call) RunAndReturn(run func() error) *StateMachine_TransitionToNextEpoch_Call
type StateMachine_View_Call ¶ added in v0.46.0
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 (_c *StateMachine_View_Call) Return(v uint64) *StateMachine_View_Call
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