mocks

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMClient

type EVMClient struct {
	mock.Mock
}

EVMClient is an autogenerated mock type for the EVMClient type

func NewEVMClient

func NewEVMClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EVMClient

NewEVMClient creates a new instance of EVMClient. 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 (*EVMClient) BatchCallContext

func (_m *EVMClient) BatchCallContext(ctx context.Context, calls []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, calls

func (*EVMClient) EXPECT

func (_m *EVMClient) EXPECT() *EVMClient_Expecter

type EVMClient_BatchCallContext_Call

type EVMClient_BatchCallContext_Call struct {
	*mock.Call
}

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

func (*EVMClient_BatchCallContext_Call) Return

func (*EVMClient_BatchCallContext_Call) Run

func (*EVMClient_BatchCallContext_Call) RunAndReturn

type EVMClient_Expecter

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

func (*EVMClient_Expecter) BatchCallContext

func (_e *EVMClient_Expecter) BatchCallContext(ctx interface{}, calls interface{}) *EVMClient_BatchCallContext_Call

BatchCallContext is a helper method to define mock.On call

  • ctx context.Context
  • calls []rpc.BatchElem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳