rpclibmocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCaller

type BatchCaller struct {
	mock.Mock
}

BatchCaller is an autogenerated mock type for the BatchCaller type

func NewBatchCaller

func NewBatchCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchCaller

NewBatchCaller creates a new instance of BatchCaller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BatchCaller) BatchCall

func (_m *BatchCaller) BatchCall(ctx context.Context, blockNumber uint64, batchRequests evm.BatchCall) (evm.BatchResult, error)

BatchCall provides a mock function with given fields: ctx, blockNumber, batchRequests

func (*BatchCaller) EXPECT

func (_m *BatchCaller) EXPECT() *BatchCaller_Expecter

type BatchCaller_BatchCall_Call

type BatchCaller_BatchCall_Call struct {
	*mock.Call
}

BatchCaller_BatchCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCall'

func (*BatchCaller_BatchCall_Call) Return

func (*BatchCaller_BatchCall_Call) Run

func (_c *BatchCaller_BatchCall_Call) Run(run func(ctx context.Context, blockNumber uint64, batchRequests evm.BatchCall)) *BatchCaller_BatchCall_Call

func (*BatchCaller_BatchCall_Call) RunAndReturn

type BatchCaller_Expecter

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

func (*BatchCaller_Expecter) BatchCall

func (_e *BatchCaller_Expecter) BatchCall(ctx interface{}, blockNumber interface{}, batchRequests interface{}) *BatchCaller_BatchCall_Call

BatchCall is a helper method to define mock.On call

  • ctx context.Context
  • blockNumber uint64
  • batchRequests evm.BatchCall

Jump to

Keyboard shortcuts

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