mocks

package
v0.15.13 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockApplication added in v0.15.3

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

MockApplication is a mock of Application interface.

func NewMockApplication added in v0.15.3

func NewMockApplication[V types.Hashable[H], H types.Hash](ctrl *gomock.Controller) *MockApplication[V, H]

NewMockApplication creates a new mock instance.

func (*MockApplication[V, H]) EXPECT added in v0.15.3

func (m *MockApplication[V, H]) EXPECT() *MockApplicationMockRecorder[V, H]

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

func (*MockApplication[V, H]) Valid added in v0.15.3

func (m *MockApplication[V, H]) Valid(arg0 V) bool

Valid mocks base method.

func (*MockApplication[V, H]) Value added in v0.15.3

func (m *MockApplication[V, H]) Value() V

Value mocks base method.

type MockApplicationMockRecorder added in v0.15.3

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder[V, H]) Valid added in v0.15.3

func (mr *MockApplicationMockRecorder[V, H]) Valid(arg0 any) *gomock.Call

Valid indicates an expected call of Valid.

func (*MockApplicationMockRecorder[V, H]) Value added in v0.15.3

func (mr *MockApplicationMockRecorder[V, H]) Value() *gomock.Call

Value indicates an expected call of Value.

type MockCommitListener added in v0.15.3

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

MockCommitListener is a mock of CommitListener interface.

func NewMockCommitListener added in v0.15.3

func NewMockCommitListener[V types.Hashable[H], H types.Hash](ctrl *gomock.Controller) *MockCommitListener[V, H]

NewMockCommitListener creates a new mock instance.

func (*MockCommitListener[V, H]) EXPECT added in v0.15.3

func (m *MockCommitListener[V, H]) EXPECT() *MockCommitListenerMockRecorder[V, H]

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

func (*MockCommitListener[V, H]) Listen added in v0.15.3

func (m *MockCommitListener[V, H]) Listen() <-chan sync.CommittedBlock

Listen mocks base method.

func (*MockCommitListener[V, H]) OnCommit added in v0.15.7

func (m *MockCommitListener[V, H]) OnCommit(arg0 context.Context, arg1 types.Height, arg2 V)

OnCommit mocks base method.

type MockCommitListenerMockRecorder added in v0.15.3

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

MockCommitListenerMockRecorder is the mock recorder for MockCommitListener.

func (*MockCommitListenerMockRecorder[V, H]) Listen added in v0.15.3

func (mr *MockCommitListenerMockRecorder[V, H]) Listen() *gomock.Call

Listen indicates an expected call of Listen.

func (*MockCommitListenerMockRecorder[V, H]) OnCommit added in v0.15.7

func (mr *MockCommitListenerMockRecorder[V, H]) OnCommit(arg0, arg1, arg2 any) *gomock.Call

OnCommit indicates an expected call of OnCommit.

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]) []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]) 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]) 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]) LoadAllEntries added in v0.15.6

func (m *MockTendermintDB[V, H, A]) LoadAllEntries() iter.Seq2[wal.Entry[V, H, A], error]

LoadAllEntries mocks base method.

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

func (m *MockTendermintDB[V, H, A]) SetWALEntry(entry wal.Entry[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]) LoadAllEntries added in v0.15.6

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

LoadAllEntries indicates an expected call of LoadAllEntries.

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