mock_precheck

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_precheck is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPreCheck

type MockPreCheck struct {
	// contains filtered or unexported fields
}

MockPreCheck is a mock of PreCheck interface.

func NewMockMinPreCheck

func NewMockMinPreCheck(mockCtl *gomock.Controller, validTxsCh chan *precheck.ValidTxs) *MockPreCheck

func NewMockPreCheck

func NewMockPreCheck(ctrl *gomock.Controller) *MockPreCheck

NewMockPreCheck creates a new mock instance.

func (*MockPreCheck) CommitValidTxs

func (m *MockPreCheck) CommitValidTxs() chan *precheck.ValidTxs

CommitValidTxs mocks base method.

func (*MockPreCheck) EXPECT

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

func (*MockPreCheck) PostUncheckedTxEvent

func (m *MockPreCheck) PostUncheckedTxEvent(ev *common.UncheckedTxEvent)

PostUncheckedTxEvent mocks base method.

func (*MockPreCheck) Start

func (m *MockPreCheck) Start()

Start mocks base method.

func (*MockPreCheck) UpdateEpochInfo

func (m *MockPreCheck) UpdateEpochInfo(epoch *rbft.EpochInfo)

UpdateEpochInfo mocks base method.

type MockPreCheckMockRecorder

type MockPreCheckMockRecorder struct {
	// contains filtered or unexported fields
}

MockPreCheckMockRecorder is the mock recorder for MockPreCheck.

func (*MockPreCheckMockRecorder) CommitValidTxs

CommitValidTxs indicates an expected call of CommitValidTxs.

func (*MockPreCheckMockRecorder) PostUncheckedTxEvent

func (mr *MockPreCheckMockRecorder) PostUncheckedTxEvent(ev any) *PreCheckPostUncheckedTxEventCall

PostUncheckedTxEvent indicates an expected call of PostUncheckedTxEvent.

func (*MockPreCheckMockRecorder) Start

Start indicates an expected call of Start.

func (*MockPreCheckMockRecorder) UpdateEpochInfo

func (mr *MockPreCheckMockRecorder) UpdateEpochInfo(epoch any) *PreCheckUpdateEpochInfoCall

UpdateEpochInfo indicates an expected call of UpdateEpochInfo.

type PreCheckCommitValidTxsCall

type PreCheckCommitValidTxsCall struct {
	*gomock.Call
}

PreCheckCommitValidTxsCall wrap *gomock.Call

func (*PreCheckCommitValidTxsCall) Do

Do rewrite *gomock.Call.Do

func (*PreCheckCommitValidTxsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*PreCheckCommitValidTxsCall) Return

Return rewrite *gomock.Call.Return

type PreCheckPostUncheckedTxEventCall

type PreCheckPostUncheckedTxEventCall struct {
	*gomock.Call
}

PreCheckPostUncheckedTxEventCall wrap *gomock.Call

func (*PreCheckPostUncheckedTxEventCall) Do

Do rewrite *gomock.Call.Do

func (*PreCheckPostUncheckedTxEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*PreCheckPostUncheckedTxEventCall) Return

Return rewrite *gomock.Call.Return

type PreCheckStartCall

type PreCheckStartCall struct {
	*gomock.Call
}

PreCheckStartCall wrap *gomock.Call

func (*PreCheckStartCall) Do

func (c *PreCheckStartCall) Do(f func()) *PreCheckStartCall

Do rewrite *gomock.Call.Do

func (*PreCheckStartCall) DoAndReturn

func (c *PreCheckStartCall) DoAndReturn(f func()) *PreCheckStartCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*PreCheckStartCall) Return

func (c *PreCheckStartCall) Return() *PreCheckStartCall

Return rewrite *gomock.Call.Return

type PreCheckUpdateEpochInfoCall

type PreCheckUpdateEpochInfoCall struct {
	*gomock.Call
}

PreCheckUpdateEpochInfoCall wrap *gomock.Call

func (*PreCheckUpdateEpochInfoCall) Do

Do rewrite *gomock.Call.Do

func (*PreCheckUpdateEpochInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*PreCheckUpdateEpochInfoCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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