mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnection

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

MockConnection is a mock of Connection interface.

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) BlockByHash

func (m *MockConnection) BlockByHash(ctx context.Context, hash string, full bool) (*eth.Block, error)

BlockByHash mocks base method.

func (*MockConnection) BlockByNumber

func (m *MockConnection) BlockByNumber(ctx context.Context, number uint64, full bool) (*eth.Block, error)

BlockByNumber mocks base method.

func (*MockConnection) BlockNumber

func (m *MockConnection) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber mocks base method.

func (*MockConnection) EXPECT

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

func (*MockConnection) GetLogs

func (m *MockConnection) GetLogs(ctx context.Context, filter eth.LogFilter) ([]eth.Log, error)

GetLogs mocks base method.

func (*MockConnection) NewHeads

NewHeads mocks base method.

func (*MockConnection) NewPendingTransaction

func (m *MockConnection) NewPendingTransaction(ctx context.Context, full ...bool) (websocket.Subscription, error)

NewPendingTransaction mocks base method.

func (*MockConnection) Request

Request mocks base method.

func (*MockConnection) Subscribe

Subscribe mocks base method.

func (*MockConnection) TransactionByHash

func (m *MockConnection) TransactionByHash(ctx context.Context, hash string) (*eth.Transaction, error)

TransactionByHash mocks base method.

func (*MockConnection) TransactionReceipt

func (m *MockConnection) TransactionReceipt(ctx context.Context, hash string) (*eth.TransactionReceipt, error)

TransactionReceipt mocks base method.

func (*MockConnection) URL

func (m *MockConnection) URL() string

URL mocks base method.

type MockConnectionMockRecorder

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

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) BlockByHash

func (mr *MockConnectionMockRecorder) BlockByHash(ctx, hash, full interface{}) *gomock.Call

BlockByHash indicates an expected call of BlockByHash.

func (*MockConnectionMockRecorder) BlockByNumber

func (mr *MockConnectionMockRecorder) BlockByNumber(ctx, number, full interface{}) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

func (*MockConnectionMockRecorder) BlockNumber

func (mr *MockConnectionMockRecorder) BlockNumber(ctx interface{}) *gomock.Call

BlockNumber indicates an expected call of BlockNumber.

func (*MockConnectionMockRecorder) GetLogs

func (mr *MockConnectionMockRecorder) GetLogs(ctx, filter interface{}) *gomock.Call

GetLogs indicates an expected call of GetLogs.

func (*MockConnectionMockRecorder) NewHeads

func (mr *MockConnectionMockRecorder) NewHeads(ctx interface{}) *gomock.Call

NewHeads indicates an expected call of NewHeads.

func (*MockConnectionMockRecorder) NewPendingTransaction

func (mr *MockConnectionMockRecorder) NewPendingTransaction(ctx interface{}, full ...interface{}) *gomock.Call

NewPendingTransaction indicates an expected call of NewPendingTransaction.

func (*MockConnectionMockRecorder) Request

func (mr *MockConnectionMockRecorder) Request(ctx, r interface{}) *gomock.Call

Request indicates an expected call of Request.

func (*MockConnectionMockRecorder) Subscribe

func (mr *MockConnectionMockRecorder) Subscribe(ctx, r interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockConnectionMockRecorder) TransactionByHash

func (mr *MockConnectionMockRecorder) TransactionByHash(ctx, hash interface{}) *gomock.Call

TransactionByHash indicates an expected call of TransactionByHash.

func (*MockConnectionMockRecorder) TransactionReceipt

func (mr *MockConnectionMockRecorder) TransactionReceipt(ctx, hash interface{}) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt.

func (*MockConnectionMockRecorder) URL

URL indicates an expected call of URL.

type MockSubscription

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

MockSubscription is a mock of Subscription interface.

func NewMockSubscription

func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription

NewMockSubscription creates a new mock instance.

func (*MockSubscription) Ch

func (m *MockSubscription) Ch() chan *jsonrpc.Notification

Ch mocks base method.

func (*MockSubscription) Done

func (m *MockSubscription) Done() <-chan struct{}

Done mocks base method.

func (*MockSubscription) EXPECT

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

func (*MockSubscription) Err

func (m *MockSubscription) Err() error

Err mocks base method.

func (*MockSubscription) ID

func (m *MockSubscription) ID() string

ID mocks base method.

func (*MockSubscription) Response

func (m *MockSubscription) Response() *jsonrpc.RawResponse

Response mocks base method.

func (*MockSubscription) Unsubscribe

func (m *MockSubscription) Unsubscribe(ctx context.Context) error

Unsubscribe mocks base method.

type MockSubscriptionMockRecorder

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

MockSubscriptionMockRecorder is the mock recorder for MockSubscription.

func (*MockSubscriptionMockRecorder) Ch

Ch indicates an expected call of Ch.

func (*MockSubscriptionMockRecorder) Done

Done indicates an expected call of Done.

func (*MockSubscriptionMockRecorder) Err

Err indicates an expected call of Err.

func (*MockSubscriptionMockRecorder) ID

ID indicates an expected call of ID.

func (*MockSubscriptionMockRecorder) Response

func (mr *MockSubscriptionMockRecorder) Response() *gomock.Call

Response indicates an expected call of Response.

func (*MockSubscriptionMockRecorder) Unsubscribe

func (mr *MockSubscriptionMockRecorder) Unsubscribe(ctx interface{}) *gomock.Call

Unsubscribe indicates an expected call of Unsubscribe.

Jump to

Keyboard shortcuts

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