mocks

package
v1.10.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

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 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) Author

func (m *MockEngine) Author(arg0 *types.Header) (common.Address, error)

Author 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.

Jump to

Keyboard shortcuts

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