mocks

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 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) 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) Prepare

func (m *MockEngine) Prepare(arg0 consensus.ChainReader, arg1 *types.Header) error

Prepare 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) Finalize

func (mr *MockEngineMockRecorder) Finalize(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Finalize indicates an expected call of Finalize

func (*MockEngineMockRecorder) Prepare

func (mr *MockEngineMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare

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