mocks

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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]) ProcessPrecommit

func (m *MockStateMachine[V, H, A]) ProcessPrecommit(arg0 types.Precommit[H, A]) []types.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]) []types.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]) []types.Action[V, H, A]

ProcessProposal mocks base method.

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

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

ProcessStart mocks base method.

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

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

ProcessTimeout mocks base method.

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

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

ReplayWAL 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]) 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]) ProcessTimeout

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

ProcessTimeout indicates an expected call of ProcessTimeout.

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

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

ReplayWAL indicates an expected call of ReplayWAL.

type MockTendermintDB

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

MockTendermintDB is a mock of TendermintDB interface.

func NewMockTendermintDB

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

NewMockTendermintDB creates a new mock instance.

func (*MockTendermintDB[V, H, A]) DeleteWALEntries

func (m *MockTendermintDB[V, H, A]) DeleteWALEntries(height types.Height) error

DeleteWALEntries mocks base method.

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

func (m *MockTendermintDB[V, H, A]) EXPECT() *MockTendermintDBMockRecorder[V, H, A]

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

func (*MockTendermintDB[V, H, A]) Flush

func (m *MockTendermintDB[V, H, A]) Flush() error

Flush mocks base method.

func (*MockTendermintDB[V, H, A]) GetWALEntries

func (m *MockTendermintDB[V, H, A]) GetWALEntries(height types.Height) ([]db.WalEntry[V, H, A], error)

GetWALEntries mocks base method.

func (*MockTendermintDB[V, H, A]) SetWALEntry

func (m *MockTendermintDB[V, H, A]) SetWALEntry(entry types.Message[V, H, A]) error

SetWALEntry mocks base method.

type MockTendermintDBMockRecorder

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

MockTendermintDBMockRecorder is the mock recorder for MockTendermintDB.

func (*MockTendermintDBMockRecorder[V, H, A]) DeleteWALEntries

func (mr *MockTendermintDBMockRecorder[V, H, A]) DeleteWALEntries(height any) *gomock.Call

DeleteWALEntries indicates an expected call of DeleteWALEntries.

func (*MockTendermintDBMockRecorder[V, H, A]) Flush

func (mr *MockTendermintDBMockRecorder[V, H, A]) Flush() *gomock.Call

Flush indicates an expected call of Flush.

func (*MockTendermintDBMockRecorder[V, H, A]) GetWALEntries

func (mr *MockTendermintDBMockRecorder[V, H, A]) GetWALEntries(height any) *gomock.Call

GetWALEntries indicates an expected call of GetWALEntries.

func (*MockTendermintDBMockRecorder[V, H, A]) SetWALEntry

func (mr *MockTendermintDBMockRecorder[V, H, A]) SetWALEntry(entry any) *gomock.Call

SetWALEntry indicates an expected call of SetWALEntry.

Jump to

Keyboard shortcuts

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