mocks

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStateMachine

type MockStateMachine[V types.Hashable[H], H types.Hash, A types.Addr] struct {
	// contains filtered or unexported fields
}

MockStateMachine is a mock of StateMachine interface.

func NewMockStateMachine

func NewMockStateMachine[V types.Hashable[H], H types.Hash, A types.Addr](ctrl *gomock.Controller) *MockStateMachine[V, H, A]

NewMockStateMachine creates a new mock instance.

func (*MockStateMachine[V, H, A]) EXPECT

func (m *MockStateMachine[V, H, A]) EXPECT() *MockStateMachineMockRecorder[V, H, A]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStateMachine[V, H, A]) Height added in v0.15.20

func (m *MockStateMachine[V, H, A]) Height() types.Height

Height mocks base method.

func (*MockStateMachine[V, H, A]) ProcessPrecommit

func (m *MockStateMachine[V, H, A]) ProcessPrecommit(arg0 *types.Precommit[H, A]) []actions.Action[V, H, A]

ProcessPrecommit mocks base method.

func (*MockStateMachine[V, H, A]) ProcessPrevote

func (m *MockStateMachine[V, H, A]) ProcessPrevote(arg0 *types.Prevote[H, A]) []actions.Action[V, H, A]

ProcessPrevote mocks base method.

func (*MockStateMachine[V, H, A]) ProcessProposal

func (m *MockStateMachine[V, H, A]) ProcessProposal(arg0 *types.Proposal[V, H, A]) []actions.Action[V, H, A]

ProcessProposal mocks base method.

func (*MockStateMachine[V, H, A]) ProcessStart

func (m *MockStateMachine[V, H, A]) ProcessStart(arg0 types.Round) []actions.Action[V, H, A]

ProcessStart mocks base method.

func (*MockStateMachine[V, H, A]) ProcessSync added in v0.15.20

func (m *MockStateMachine[V, H, A]) ProcessSync(arg0 *types.Proposal[V, H, A], arg1 []types.Precommit[H, A]) []actions.Action[V, H, A]

ProcessSync mocks base method.

func (*MockStateMachine[V, H, A]) ProcessTimeout

func (m *MockStateMachine[V, H, A]) ProcessTimeout(arg0 types.Timeout) []actions.Action[V, H, A]

ProcessTimeout mocks base method.

func (*MockStateMachine[V, H, A]) ProcessWAL added in v0.15.20

func (m *MockStateMachine[V, H, A]) ProcessWAL(arg0 wal.Entry[V, H, A]) []actions.Action[V, H, A]

ProcessWAL mocks base method.

type MockStateMachineMockRecorder

type MockStateMachineMockRecorder[V types.Hashable[H], H types.Hash, A types.Addr] struct {
	// contains filtered or unexported fields
}

MockStateMachineMockRecorder is the mock recorder for MockStateMachine.

func (*MockStateMachineMockRecorder[V, H, A]) Height added in v0.15.20

func (mr *MockStateMachineMockRecorder[V, H, A]) Height() *gomock.Call

Height indicates an expected call of Height.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessPrecommit

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessPrecommit(arg0 any) *gomock.Call

ProcessPrecommit indicates an expected call of ProcessPrecommit.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessPrevote

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessPrevote(arg0 any) *gomock.Call

ProcessPrevote indicates an expected call of ProcessPrevote.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessProposal

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessProposal(arg0 any) *gomock.Call

ProcessProposal indicates an expected call of ProcessProposal.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessStart

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessStart(arg0 any) *gomock.Call

ProcessStart indicates an expected call of ProcessStart.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessSync added in v0.15.20

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessSync(arg0, arg1 any) *gomock.Call

ProcessSync indicates an expected call of ProcessSync.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessTimeout

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessTimeout(arg0 any) *gomock.Call

ProcessTimeout indicates an expected call of ProcessTimeout.

func (*MockStateMachineMockRecorder[V, H, A]) ProcessWAL added in v0.15.20

func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessWAL(arg0 any) *gomock.Call

ProcessWAL indicates an expected call of ProcessWAL.

Jump to

Keyboard shortcuts

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