Documentation ¶
Overview ¶
Package mock_precheck is a generated GoMock package.
Index ¶
- type MockPreCheck
- type MockPreCheckMockRecorder
- func (mr *MockPreCheckMockRecorder) CommitValidTxs() *PreCheckCommitValidTxsCall
- func (mr *MockPreCheckMockRecorder) PostUncheckedTxEvent(ev any) *PreCheckPostUncheckedTxEventCall
- func (mr *MockPreCheckMockRecorder) Start() *PreCheckStartCall
- func (mr *MockPreCheckMockRecorder) UpdateEpochInfo(epoch any) *PreCheckUpdateEpochInfoCall
- type PreCheckCommitValidTxsCall
- func (c *PreCheckCommitValidTxsCall) Do(f func() chan *precheck.ValidTxs) *PreCheckCommitValidTxsCall
- func (c *PreCheckCommitValidTxsCall) DoAndReturn(f func() chan *precheck.ValidTxs) *PreCheckCommitValidTxsCall
- func (c *PreCheckCommitValidTxsCall) Return(arg0 chan *precheck.ValidTxs) *PreCheckCommitValidTxsCall
- type PreCheckPostUncheckedTxEventCall
- func (c *PreCheckPostUncheckedTxEventCall) Do(f func(*common.UncheckedTxEvent)) *PreCheckPostUncheckedTxEventCall
- func (c *PreCheckPostUncheckedTxEventCall) DoAndReturn(f func(*common.UncheckedTxEvent)) *PreCheckPostUncheckedTxEventCall
- func (c *PreCheckPostUncheckedTxEventCall) Return() *PreCheckPostUncheckedTxEventCall
- type PreCheckStartCall
- type PreCheckUpdateEpochInfoCall
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 ¶
func (m *MockPreCheck) EXPECT() *MockPreCheckMockRecorder
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) 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 ¶
func (mr *MockPreCheckMockRecorder) CommitValidTxs() *PreCheckCommitValidTxsCall
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 ¶
func (mr *MockPreCheckMockRecorder) Start() *PreCheckStartCall
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 ¶
PreCheckCommitValidTxsCall wrap *gomock.Call
func (*PreCheckCommitValidTxsCall) Do ¶
func (c *PreCheckCommitValidTxsCall) Do(f func() chan *precheck.ValidTxs) *PreCheckCommitValidTxsCall
Do rewrite *gomock.Call.Do
func (*PreCheckCommitValidTxsCall) DoAndReturn ¶
func (c *PreCheckCommitValidTxsCall) DoAndReturn(f func() chan *precheck.ValidTxs) *PreCheckCommitValidTxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PreCheckCommitValidTxsCall) Return ¶
func (c *PreCheckCommitValidTxsCall) Return(arg0 chan *precheck.ValidTxs) *PreCheckCommitValidTxsCall
Return rewrite *gomock.Call.Return
type PreCheckPostUncheckedTxEventCall ¶
PreCheckPostUncheckedTxEventCall wrap *gomock.Call
func (*PreCheckPostUncheckedTxEventCall) Do ¶
func (c *PreCheckPostUncheckedTxEventCall) Do(f func(*common.UncheckedTxEvent)) *PreCheckPostUncheckedTxEventCall
Do rewrite *gomock.Call.Do
func (*PreCheckPostUncheckedTxEventCall) DoAndReturn ¶
func (c *PreCheckPostUncheckedTxEventCall) DoAndReturn(f func(*common.UncheckedTxEvent)) *PreCheckPostUncheckedTxEventCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PreCheckPostUncheckedTxEventCall) Return ¶
func (c *PreCheckPostUncheckedTxEventCall) Return() *PreCheckPostUncheckedTxEventCall
Return rewrite *gomock.Call.Return
type PreCheckStartCall ¶
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 ¶
PreCheckUpdateEpochInfoCall wrap *gomock.Call
func (*PreCheckUpdateEpochInfoCall) Do ¶
func (c *PreCheckUpdateEpochInfoCall) Do(f func(*rbft.EpochInfo)) *PreCheckUpdateEpochInfoCall
Do rewrite *gomock.Call.Do
func (*PreCheckUpdateEpochInfoCall) DoAndReturn ¶
func (c *PreCheckUpdateEpochInfoCall) DoAndReturn(f func(*rbft.EpochInfo)) *PreCheckUpdateEpochInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PreCheckUpdateEpochInfoCall) Return ¶
func (c *PreCheckUpdateEpochInfoCall) Return() *PreCheckUpdateEpochInfoCall
Return rewrite *gomock.Call.Return