mocks

package
v0.0.0-...-23e1d9f Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L1Oracle

type L1Oracle struct {
	mock.Mock
}

L1Oracle is an autogenerated mock type for the L1Oracle type

func NewL1Oracle

func NewL1Oracle(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1Oracle

NewL1Oracle creates a new instance of L1Oracle. 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 (*L1Oracle) Close

func (_m *L1Oracle) Close() error

Close provides a mock function with no fields

func (*L1Oracle) EXPECT

func (_m *L1Oracle) EXPECT() *L1Oracle_Expecter

func (*L1Oracle) GasPrice

func (_m *L1Oracle) GasPrice(ctx context.Context) (*assets.Wei, error)

GasPrice provides a mock function with given fields: ctx

func (*L1Oracle) HealthReport

func (_m *L1Oracle) HealthReport() map[string]error

HealthReport provides a mock function with no fields

func (*L1Oracle) Name

func (_m *L1Oracle) Name() string

Name provides a mock function with no fields

func (*L1Oracle) Ready

func (_m *L1Oracle) Ready() error

Ready provides a mock function with no fields

func (*L1Oracle) Start

func (_m *L1Oracle) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type L1OracleClient

type L1OracleClient struct {
	mock.Mock
}

L1OracleClient is an autogenerated mock type for the l1OracleClient type

func NewL1OracleClient

func NewL1OracleClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1OracleClient

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

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

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

func (*L1OracleClient) CallContract

func (_m *L1OracleClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, msg, blockNumber

func (*L1OracleClient) EXPECT

type L1OracleClient_BatchCallContext_Call

type L1OracleClient_BatchCallContext_Call struct {
	*mock.Call
}

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

func (*L1OracleClient_BatchCallContext_Call) Return

func (*L1OracleClient_BatchCallContext_Call) Run

func (*L1OracleClient_BatchCallContext_Call) RunAndReturn

type L1OracleClient_CallContract_Call

type L1OracleClient_CallContract_Call struct {
	*mock.Call
}

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

func (*L1OracleClient_CallContract_Call) Return

func (*L1OracleClient_CallContract_Call) Run

func (*L1OracleClient_CallContract_Call) RunAndReturn

type L1OracleClient_Expecter

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

func (*L1OracleClient_Expecter) BatchCallContext

func (_e *L1OracleClient_Expecter) BatchCallContext(ctx interface{}, b interface{}) *L1OracleClient_BatchCallContext_Call

BatchCallContext is a helper method to define mock.On call

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

func (*L1OracleClient_Expecter) CallContract

func (_e *L1OracleClient_Expecter) CallContract(ctx interface{}, msg interface{}, blockNumber interface{}) *L1OracleClient_CallContract_Call

CallContract is a helper method to define mock.On call

  • ctx context.Context
  • msg ethereum.CallMsg
  • blockNumber *big.Int

type L1Oracle_Close_Call

type L1Oracle_Close_Call struct {
	*mock.Call
}

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

func (*L1Oracle_Close_Call) Return

func (*L1Oracle_Close_Call) Run

func (_c *L1Oracle_Close_Call) Run(run func()) *L1Oracle_Close_Call

func (*L1Oracle_Close_Call) RunAndReturn

func (_c *L1Oracle_Close_Call) RunAndReturn(run func() error) *L1Oracle_Close_Call

type L1Oracle_Expecter

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

func (*L1Oracle_Expecter) Close

Close is a helper method to define mock.On call

func (*L1Oracle_Expecter) GasPrice

func (_e *L1Oracle_Expecter) GasPrice(ctx interface{}) *L1Oracle_GasPrice_Call

GasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*L1Oracle_Expecter) HealthReport

func (_e *L1Oracle_Expecter) HealthReport() *L1Oracle_HealthReport_Call

HealthReport is a helper method to define mock.On call

func (*L1Oracle_Expecter) Name

Name is a helper method to define mock.On call

func (*L1Oracle_Expecter) Ready

Ready is a helper method to define mock.On call

func (*L1Oracle_Expecter) Start

func (_e *L1Oracle_Expecter) Start(_a0 interface{}) *L1Oracle_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type L1Oracle_GasPrice_Call

type L1Oracle_GasPrice_Call struct {
	*mock.Call
}

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

func (*L1Oracle_GasPrice_Call) Return

func (*L1Oracle_GasPrice_Call) Run

func (*L1Oracle_GasPrice_Call) RunAndReturn

func (_c *L1Oracle_GasPrice_Call) RunAndReturn(run func(context.Context) (*assets.Wei, error)) *L1Oracle_GasPrice_Call

type L1Oracle_HealthReport_Call

type L1Oracle_HealthReport_Call struct {
	*mock.Call
}

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

func (*L1Oracle_HealthReport_Call) Return

func (*L1Oracle_HealthReport_Call) Run

func (*L1Oracle_HealthReport_Call) RunAndReturn

func (_c *L1Oracle_HealthReport_Call) RunAndReturn(run func() map[string]error) *L1Oracle_HealthReport_Call

type L1Oracle_Name_Call

type L1Oracle_Name_Call struct {
	*mock.Call
}

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

func (*L1Oracle_Name_Call) Return

func (_c *L1Oracle_Name_Call) Return(_a0 string) *L1Oracle_Name_Call

func (*L1Oracle_Name_Call) Run

func (_c *L1Oracle_Name_Call) Run(run func()) *L1Oracle_Name_Call

func (*L1Oracle_Name_Call) RunAndReturn

func (_c *L1Oracle_Name_Call) RunAndReturn(run func() string) *L1Oracle_Name_Call

type L1Oracle_Ready_Call

type L1Oracle_Ready_Call struct {
	*mock.Call
}

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

func (*L1Oracle_Ready_Call) Return

func (*L1Oracle_Ready_Call) Run

func (_c *L1Oracle_Ready_Call) Run(run func()) *L1Oracle_Ready_Call

func (*L1Oracle_Ready_Call) RunAndReturn

func (_c *L1Oracle_Ready_Call) RunAndReturn(run func() error) *L1Oracle_Ready_Call

type L1Oracle_Start_Call

type L1Oracle_Start_Call struct {
	*mock.Call
}

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

func (*L1Oracle_Start_Call) Return

func (*L1Oracle_Start_Call) Run

func (_c *L1Oracle_Start_Call) Run(run func(_a0 context.Context)) *L1Oracle_Start_Call

func (*L1Oracle_Start_Call) RunAndReturn

func (_c *L1Oracle_Start_Call) RunAndReturn(run func(context.Context) error) *L1Oracle_Start_Call

Jump to

Keyboard shortcuts

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