Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockEngine
- func (m *MockEngine) APIs(arg0 consensus.ChainReader) []rpc.API
- func (m *MockEngine) Author(arg0 *types.Header) (common.Address, error)
- func (m *MockEngine) CalcBlockScore(arg0 consensus.ChainReader, arg1 uint64, arg2 *types.Header) *big.Int
- func (m *MockEngine) CanVerifyHeadersConcurrently() bool
- func (m *MockEngine) CreateSnapshot(arg0 consensus.ChainReader, arg1 uint64, arg2 common.Hash, ...) error
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) Finalize(arg0 consensus.ChainReader, arg1 *types.Header, arg2 *state.StateDB, ...) (*types.Block, error)
- func (m *MockEngine) GetConsensusInfo(arg0 *types.Block) (consensus.ConsensusInfo, error)
- func (m *MockEngine) Prepare(arg0 consensus.ChainReader, arg1 *types.Header) error
- func (m *MockEngine) PreprocessHeaderVerification(arg0 []*types.Header) (chan<- struct{}, <-chan error)
- func (m *MockEngine) Protocol() consensus.Protocol
- func (m *MockEngine) Seal(arg0 consensus.ChainReader, arg1 *types.Block, arg2 <-chan struct{}) (*types.Block, error)
- func (m *MockEngine) VerifyHeader(arg0 consensus.ChainReader, arg1 *types.Header, arg2 bool) error
- func (m *MockEngine) VerifyHeaders(arg0 consensus.ChainReader, arg1 []*types.Header, arg2 []bool) (chan<- struct{}, <-chan error)
- func (m *MockEngine) VerifySeal(arg0 consensus.ChainReader, arg1 *types.Header) error
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) APIs(arg0 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Author(arg0 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) CalcBlockScore(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) CanVerifyHeadersConcurrently() *gomock.Call
- func (mr *MockEngineMockRecorder) CreateSnapshot(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Finalize(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) GetConsensusInfo(arg0 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) PreprocessHeaderVerification(arg0 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Protocol() *gomock.Call
- func (mr *MockEngineMockRecorder) Seal(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) VerifyHeader(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) VerifyHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) VerifySeal(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEngine ¶
type MockEngine struct {
// contains filtered or unexported fields
}
MockEngine is a mock of Engine interface.
func NewMockEngine ¶
func NewMockEngine(ctrl *gomock.Controller) *MockEngine
NewMockEngine creates a new mock instance.
func (*MockEngine) APIs ¶
func (m *MockEngine) APIs(arg0 consensus.ChainReader) []rpc.API
APIs mocks base method.
func (*MockEngine) CalcBlockScore ¶
func (m *MockEngine) CalcBlockScore(arg0 consensus.ChainReader, arg1 uint64, arg2 *types.Header) *big.Int
CalcBlockScore mocks base method.
func (*MockEngine) CanVerifyHeadersConcurrently ¶ added in v1.7.0
func (m *MockEngine) CanVerifyHeadersConcurrently() bool
CanVerifyHeadersConcurrently mocks base method.
func (*MockEngine) CreateSnapshot ¶ added in v1.7.3
func (m *MockEngine) CreateSnapshot(arg0 consensus.ChainReader, arg1 uint64, arg2 common.Hash, arg3 []*types.Header) error
CreateSnapshot mocks base method.
func (*MockEngine) EXPECT ¶
func (m *MockEngine) EXPECT() *MockEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEngine) Finalize ¶
func (m *MockEngine) Finalize(arg0 consensus.ChainReader, arg1 *types.Header, arg2 *state.StateDB, arg3 []*types.Transaction, arg4 []*types.Receipt) (*types.Block, error)
Finalize mocks base method.
func (*MockEngine) GetConsensusInfo ¶ added in v1.10.0
func (m *MockEngine) GetConsensusInfo(arg0 *types.Block) (consensus.ConsensusInfo, error)
GetConsensusInfo mocks base method.
func (*MockEngine) Prepare ¶
func (m *MockEngine) Prepare(arg0 consensus.ChainReader, arg1 *types.Header) error
Prepare mocks base method.
func (*MockEngine) PreprocessHeaderVerification ¶ added in v1.7.0
func (m *MockEngine) PreprocessHeaderVerification(arg0 []*types.Header) (chan<- struct{}, <-chan error)
PreprocessHeaderVerification mocks base method.
func (*MockEngine) Protocol ¶
func (m *MockEngine) Protocol() consensus.Protocol
Protocol mocks base method.
func (*MockEngine) Seal ¶
func (m *MockEngine) Seal(arg0 consensus.ChainReader, arg1 *types.Block, arg2 <-chan struct{}) (*types.Block, error)
Seal mocks base method.
func (*MockEngine) VerifyHeader ¶
func (m *MockEngine) VerifyHeader(arg0 consensus.ChainReader, arg1 *types.Header, arg2 bool) error
VerifyHeader mocks base method.
func (*MockEngine) VerifyHeaders ¶
func (m *MockEngine) VerifyHeaders(arg0 consensus.ChainReader, arg1 []*types.Header, arg2 []bool) (chan<- struct{}, <-chan error)
VerifyHeaders mocks base method.
func (*MockEngine) VerifySeal ¶
func (m *MockEngine) VerifySeal(arg0 consensus.ChainReader, arg1 *types.Header) error
VerifySeal mocks base method.
type MockEngineMockRecorder ¶
type MockEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockEngineMockRecorder is the mock recorder for MockEngine.
func (*MockEngineMockRecorder) APIs ¶
func (mr *MockEngineMockRecorder) APIs(arg0 interface{}) *gomock.Call
APIs indicates an expected call of APIs.
func (*MockEngineMockRecorder) Author ¶
func (mr *MockEngineMockRecorder) Author(arg0 interface{}) *gomock.Call
Author indicates an expected call of Author.
func (*MockEngineMockRecorder) CalcBlockScore ¶
func (mr *MockEngineMockRecorder) CalcBlockScore(arg0, arg1, arg2 interface{}) *gomock.Call
CalcBlockScore indicates an expected call of CalcBlockScore.
func (*MockEngineMockRecorder) CanVerifyHeadersConcurrently ¶ added in v1.7.0
func (mr *MockEngineMockRecorder) CanVerifyHeadersConcurrently() *gomock.Call
CanVerifyHeadersConcurrently indicates an expected call of CanVerifyHeadersConcurrently.
func (*MockEngineMockRecorder) CreateSnapshot ¶ added in v1.7.3
func (mr *MockEngineMockRecorder) CreateSnapshot(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateSnapshot indicates an expected call of CreateSnapshot.
func (*MockEngineMockRecorder) Finalize ¶
func (mr *MockEngineMockRecorder) Finalize(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Finalize indicates an expected call of Finalize.
func (*MockEngineMockRecorder) GetConsensusInfo ¶ added in v1.10.0
func (mr *MockEngineMockRecorder) GetConsensusInfo(arg0 interface{}) *gomock.Call
GetConsensusInfo indicates an expected call of GetConsensusInfo.
func (*MockEngineMockRecorder) Prepare ¶
func (mr *MockEngineMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockEngineMockRecorder) PreprocessHeaderVerification ¶ added in v1.7.0
func (mr *MockEngineMockRecorder) PreprocessHeaderVerification(arg0 interface{}) *gomock.Call
PreprocessHeaderVerification indicates an expected call of PreprocessHeaderVerification.
func (*MockEngineMockRecorder) Protocol ¶
func (mr *MockEngineMockRecorder) Protocol() *gomock.Call
Protocol indicates an expected call of Protocol.
func (*MockEngineMockRecorder) Seal ¶
func (mr *MockEngineMockRecorder) Seal(arg0, arg1, arg2 interface{}) *gomock.Call
Seal indicates an expected call of Seal.
func (*MockEngineMockRecorder) VerifyHeader ¶
func (mr *MockEngineMockRecorder) VerifyHeader(arg0, arg1, arg2 interface{}) *gomock.Call
VerifyHeader indicates an expected call of VerifyHeader.
func (*MockEngineMockRecorder) VerifyHeaders ¶
func (mr *MockEngineMockRecorder) VerifyHeaders(arg0, arg1, arg2 interface{}) *gomock.Call
VerifyHeaders indicates an expected call of VerifyHeaders.
func (*MockEngineMockRecorder) VerifySeal ¶
func (mr *MockEngineMockRecorder) VerifySeal(arg0, arg1 interface{}) *gomock.Call
VerifySeal indicates an expected call of VerifySeal.