cn

package
v1.12.1 Latest Latest
Warning

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

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

Documentation

Overview

Package cn is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) BloomStatus

func (m *MockBackend) BloomStatus() (uint64, uint64)

BloomStatus mocks base method.

func (*MockBackend) ChainConfig added in v1.8.0

func (m *MockBackend) ChainConfig() *params.ChainConfig

ChainConfig mocks base method.

func (*MockBackend) ChainDB

func (m *MockBackend) ChainDB() database.DBManager

ChainDB mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) EventMux

func (m *MockBackend) EventMux() *event.TypeMux

EventMux mocks base method.

func (*MockBackend) GetBlockReceipts

func (m *MockBackend) GetBlockReceipts(ctx context.Context, blockHash common.Hash) types.Receipts

GetBlockReceipts mocks base method.

func (*MockBackend) GetLogs

func (m *MockBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error)

GetLogs mocks base method.

func (*MockBackend) HeaderByHash added in v1.10.0

func (m *MockBackend) HeaderByHash(ctx context.Context, blockHash common.Hash) (*types.Header, error)

HeaderByHash mocks base method.

func (*MockBackend) HeaderByNumber

func (m *MockBackend) HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error)

HeaderByNumber mocks base method.

func (*MockBackend) ServiceFilter

func (m *MockBackend) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession)

ServiceFilter mocks base method.

func (*MockBackend) SubscribeChainEvent

func (m *MockBackend) SubscribeChainEvent(ch chan<- blockchain.ChainEvent) event.Subscription

SubscribeChainEvent mocks base method.

func (*MockBackend) SubscribeLogsEvent

func (m *MockBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription

SubscribeLogsEvent mocks base method.

func (*MockBackend) SubscribeNewTxsEvent

func (m *MockBackend) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription

SubscribeNewTxsEvent mocks base method.

func (*MockBackend) SubscribeRemovedLogsEvent

func (m *MockBackend) SubscribeRemovedLogsEvent(ch chan<- blockchain.RemovedLogsEvent) event.Subscription

SubscribeRemovedLogsEvent mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) BloomStatus

func (mr *MockBackendMockRecorder) BloomStatus() *gomock.Call

BloomStatus indicates an expected call of BloomStatus.

func (*MockBackendMockRecorder) ChainConfig added in v1.8.0

func (mr *MockBackendMockRecorder) ChainConfig() *gomock.Call

ChainConfig indicates an expected call of ChainConfig.

func (*MockBackendMockRecorder) ChainDB

func (mr *MockBackendMockRecorder) ChainDB() *gomock.Call

ChainDB indicates an expected call of ChainDB.

func (*MockBackendMockRecorder) EventMux

func (mr *MockBackendMockRecorder) EventMux() *gomock.Call

EventMux indicates an expected call of EventMux.

func (*MockBackendMockRecorder) GetBlockReceipts

func (mr *MockBackendMockRecorder) GetBlockReceipts(ctx, blockHash interface{}) *gomock.Call

GetBlockReceipts indicates an expected call of GetBlockReceipts.

func (*MockBackendMockRecorder) GetLogs

func (mr *MockBackendMockRecorder) GetLogs(ctx, blockHash interface{}) *gomock.Call

GetLogs indicates an expected call of GetLogs.

func (*MockBackendMockRecorder) HeaderByHash added in v1.10.0

func (mr *MockBackendMockRecorder) HeaderByHash(ctx, blockHash interface{}) *gomock.Call

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockBackendMockRecorder) HeaderByNumber

func (mr *MockBackendMockRecorder) HeaderByNumber(ctx, blockNr interface{}) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockBackendMockRecorder) ServiceFilter

func (mr *MockBackendMockRecorder) ServiceFilter(ctx, session interface{}) *gomock.Call

ServiceFilter indicates an expected call of ServiceFilter.

func (*MockBackendMockRecorder) SubscribeChainEvent

func (mr *MockBackendMockRecorder) SubscribeChainEvent(ch interface{}) *gomock.Call

SubscribeChainEvent indicates an expected call of SubscribeChainEvent.

func (*MockBackendMockRecorder) SubscribeLogsEvent

func (mr *MockBackendMockRecorder) SubscribeLogsEvent(ch interface{}) *gomock.Call

SubscribeLogsEvent indicates an expected call of SubscribeLogsEvent.

func (*MockBackendMockRecorder) SubscribeNewTxsEvent

func (mr *MockBackendMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call

SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent.

func (*MockBackendMockRecorder) SubscribeRemovedLogsEvent

func (mr *MockBackendMockRecorder) SubscribeRemovedLogsEvent(ch interface{}) *gomock.Call

SubscribeRemovedLogsEvent indicates an expected call of SubscribeRemovedLogsEvent.

Jump to

Keyboard shortcuts

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