Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockStateMachine
- func (m *MockStateMachine[V, H, A]) EXPECT() *MockStateMachineMockRecorder[V, H, A]
- func (m *MockStateMachine[V, H, A]) ProcessPrecommit(arg0 *types.Precommit[H, A]) []types.Action[V, H, A]
- func (m *MockStateMachine[V, H, A]) ProcessPrevote(arg0 *types.Prevote[H, A]) []types.Action[V, H, A]
- func (m *MockStateMachine[V, H, A]) ProcessProposal(arg0 *types.Proposal[V, H, A]) []types.Action[V, H, A]
- func (m *MockStateMachine[V, H, A]) ProcessStart(arg0 types.Round) []types.Action[V, H, A]
- func (m *MockStateMachine[V, H, A]) ProcessTimeout(arg0 types.Timeout) []types.Action[V, H, A]
- func (m *MockStateMachine[V, H, A]) ReplayWAL()
- type MockStateMachineMockRecorder
- func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessPrecommit(arg0 any) *gomock.Call
- func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessPrevote(arg0 any) *gomock.Call
- func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessProposal(arg0 any) *gomock.Call
- func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessStart(arg0 any) *gomock.Call
- func (mr *MockStateMachineMockRecorder[V, H, A]) ProcessTimeout(arg0 any) *gomock.Call
- func (mr *MockStateMachineMockRecorder[V, H, A]) ReplayWAL() *gomock.Call
- type MockTendermintDB
- func (m *MockTendermintDB[V, H, A]) DeleteWALEntries(height types.Height) error
- func (m *MockTendermintDB[V, H, A]) EXPECT() *MockTendermintDBMockRecorder[V, H, A]
- func (m *MockTendermintDB[V, H, A]) Flush() error
- func (m *MockTendermintDB[V, H, A]) GetWALEntries(height types.Height) ([]db.WalEntry[V, H, A], error)
- func (m *MockTendermintDB[V, H, A]) SetWALEntry(entry types.Message[V, H, A]) error
- type MockTendermintDBMockRecorder
- func (mr *MockTendermintDBMockRecorder[V, H, A]) DeleteWALEntries(height any) *gomock.Call
- func (mr *MockTendermintDBMockRecorder[V, H, A]) Flush() *gomock.Call
- func (mr *MockTendermintDBMockRecorder[V, H, A]) GetWALEntries(height any) *gomock.Call
- func (mr *MockTendermintDBMockRecorder[V, H, A]) SetWALEntry(entry any) *gomock.Call
- type MockValidator
- func (m *MockValidator[V, H, A]) BlockInfo(blockInfo types.BlockInfo)
- func (m *MockValidator[V, H, A]) EXPECT() *MockValidatorMockRecorder[V, H, A]
- func (m *MockValidator[V, H, A]) ProposalCommitment(proposalCommitment types.ProposalCommitment) error
- func (m *MockValidator[V, H, A]) ProposalFin(proposalCommitment types.ProposalFin) error
- func (m *MockValidator[V, H, A]) ProposalInit(pInit types.ProposalInit) error
- func (m *MockValidator[V, H, A]) TransactionBatch(txn types.Transaction) error
- type MockValidatorMockRecorder
- func (mr *MockValidatorMockRecorder[V, H, A]) BlockInfo(blockInfo any) *gomock.Call
- func (mr *MockValidatorMockRecorder[V, H, A]) ProposalCommitment(proposalCommitment any) *gomock.Call
- func (mr *MockValidatorMockRecorder[V, H, A]) ProposalFin(proposalCommitment any) *gomock.Call
- func (mr *MockValidatorMockRecorder[V, H, A]) ProposalInit(pInit any) *gomock.Call
- func (mr *MockValidatorMockRecorder[V, H, A]) TransactionBatch(txn any) *gomock.Call
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.
type MockValidator ¶ added in v0.14.6
type MockValidator[V types.Hashable[H], H types.Hash, A types.Addr] struct { // contains filtered or unexported fields }
MockValidator is a mock of Validator interface.
func NewMockValidator ¶ added in v0.14.6
func NewMockValidator[V types.Hashable[H], H types.Hash, A types.Addr](ctrl *gomock.Controller) *MockValidator[V, H, A]
NewMockValidator creates a new mock instance.
func (*MockValidator[V, H, A]) BlockInfo ¶ added in v0.14.6
func (m *MockValidator[V, H, A]) BlockInfo(blockInfo types.BlockInfo)
BlockInfo mocks base method.
func (*MockValidator[V, H, A]) EXPECT ¶ added in v0.14.6
func (m *MockValidator[V, H, A]) EXPECT() *MockValidatorMockRecorder[V, H, A]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidator[V, H, A]) ProposalCommitment ¶ added in v0.14.6
func (m *MockValidator[V, H, A]) ProposalCommitment(proposalCommitment types.ProposalCommitment) error
ProposalCommitment mocks base method.
func (*MockValidator[V, H, A]) ProposalFin ¶ added in v0.14.6
func (m *MockValidator[V, H, A]) ProposalFin(proposalCommitment types.ProposalFin) error
ProposalFin mocks base method.
func (*MockValidator[V, H, A]) ProposalInit ¶ added in v0.14.6
func (m *MockValidator[V, H, A]) ProposalInit(pInit types.ProposalInit) error
ProposalInit mocks base method.
func (*MockValidator[V, H, A]) TransactionBatch ¶ added in v0.14.6
func (m *MockValidator[V, H, A]) TransactionBatch(txn types.Transaction) error
TransactionBatch mocks base method.
type MockValidatorMockRecorder ¶ added in v0.14.6
type MockValidatorMockRecorder[V types.Hashable[H], H types.Hash, A types.Addr] struct { // contains filtered or unexported fields }
MockValidatorMockRecorder is the mock recorder for MockValidator.
func (*MockValidatorMockRecorder[V, H, A]) BlockInfo ¶ added in v0.14.6
func (mr *MockValidatorMockRecorder[V, H, A]) BlockInfo(blockInfo any) *gomock.Call
BlockInfo indicates an expected call of BlockInfo.
func (*MockValidatorMockRecorder[V, H, A]) ProposalCommitment ¶ added in v0.14.6
func (mr *MockValidatorMockRecorder[V, H, A]) ProposalCommitment(proposalCommitment any) *gomock.Call
ProposalCommitment indicates an expected call of ProposalCommitment.
func (*MockValidatorMockRecorder[V, H, A]) ProposalFin ¶ added in v0.14.6
func (mr *MockValidatorMockRecorder[V, H, A]) ProposalFin(proposalCommitment any) *gomock.Call
ProposalFin indicates an expected call of ProposalFin.
func (*MockValidatorMockRecorder[V, H, A]) ProposalInit ¶ added in v0.14.6
func (mr *MockValidatorMockRecorder[V, H, A]) ProposalInit(pInit any) *gomock.Call
ProposalInit indicates an expected call of ProposalInit.
func (*MockValidatorMockRecorder[V, H, A]) TransactionBatch ¶ added in v0.14.6
func (mr *MockValidatorMockRecorder[V, H, A]) TransactionBatch(txn any) *gomock.Call
TransactionBatch indicates an expected call of TransactionBatch.