mocks

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0, 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 L1InfoTreeQuerier

type L1InfoTreeQuerier struct {
	mock.Mock
}

L1InfoTreeQuerier is an autogenerated mock type for the L1InfoTreeQuerier type

func NewL1InfoTreeQuerier

func NewL1InfoTreeQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1InfoTreeQuerier

NewL1InfoTreeQuerier creates a new instance of L1InfoTreeQuerier. 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 (*L1InfoTreeQuerier) EXPECT

func (*L1InfoTreeQuerier) GetInfoByGlobalExitRoot

func (_m *L1InfoTreeQuerier) GetInfoByGlobalExitRoot(ger common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)

GetInfoByGlobalExitRoot provides a mock function with given fields: ger

func (*L1InfoTreeQuerier) GetInfoByIndex

func (_m *L1InfoTreeQuerier) GetInfoByIndex(ctx context.Context, index uint32) (*l1infotreesync.L1InfoTreeLeaf, error)

GetInfoByIndex provides a mock function with given fields: ctx, index

func (*L1InfoTreeQuerier) GetLastL1InfoTreeRoot

func (_m *L1InfoTreeQuerier) GetLastL1InfoTreeRoot(ctx context.Context) (types.Root, error)

GetLastL1InfoTreeRoot provides a mock function with given fields: ctx

func (*L1InfoTreeQuerier) IsUpToDate

func (_m *L1InfoTreeQuerier) IsUpToDate(ctx context.Context, l1Client aggkittypes.BaseEthereumClienter) (bool, error)

IsUpToDate provides a mock function with given fields: ctx, l1Client

type L1InfoTreeQuerier_Expecter

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

func (*L1InfoTreeQuerier_Expecter) GetInfoByGlobalExitRoot

func (_e *L1InfoTreeQuerier_Expecter) GetInfoByGlobalExitRoot(ger interface{}) *L1InfoTreeQuerier_GetInfoByGlobalExitRoot_Call

GetInfoByGlobalExitRoot is a helper method to define mock.On call

  • ger common.Hash

func (*L1InfoTreeQuerier_Expecter) GetInfoByIndex

func (_e *L1InfoTreeQuerier_Expecter) GetInfoByIndex(ctx interface{}, index interface{}) *L1InfoTreeQuerier_GetInfoByIndex_Call

GetInfoByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*L1InfoTreeQuerier_Expecter) GetLastL1InfoTreeRoot

func (_e *L1InfoTreeQuerier_Expecter) GetLastL1InfoTreeRoot(ctx interface{}) *L1InfoTreeQuerier_GetLastL1InfoTreeRoot_Call

GetLastL1InfoTreeRoot is a helper method to define mock.On call

  • ctx context.Context

func (*L1InfoTreeQuerier_Expecter) IsUpToDate

func (_e *L1InfoTreeQuerier_Expecter) IsUpToDate(ctx interface{}, l1Client interface{}) *L1InfoTreeQuerier_IsUpToDate_Call

IsUpToDate is a helper method to define mock.On call

  • ctx context.Context
  • l1Client aggkittypes.BaseEthereumClienter

type L1InfoTreeQuerier_GetInfoByGlobalExitRoot_Call

type L1InfoTreeQuerier_GetInfoByGlobalExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeQuerier_GetInfoByGlobalExitRoot_Call) Return

func (*L1InfoTreeQuerier_GetInfoByGlobalExitRoot_Call) Run

func (*L1InfoTreeQuerier_GetInfoByGlobalExitRoot_Call) RunAndReturn

type L1InfoTreeQuerier_GetInfoByIndex_Call

type L1InfoTreeQuerier_GetInfoByIndex_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeQuerier_GetInfoByIndex_Call) Return

func (*L1InfoTreeQuerier_GetInfoByIndex_Call) Run

func (*L1InfoTreeQuerier_GetInfoByIndex_Call) RunAndReturn

type L1InfoTreeQuerier_GetLastL1InfoTreeRoot_Call

type L1InfoTreeQuerier_GetLastL1InfoTreeRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeQuerier_GetLastL1InfoTreeRoot_Call) Return

func (*L1InfoTreeQuerier_GetLastL1InfoTreeRoot_Call) Run

func (*L1InfoTreeQuerier_GetLastL1InfoTreeRoot_Call) RunAndReturn

type L1InfoTreeQuerier_IsUpToDate_Call

type L1InfoTreeQuerier_IsUpToDate_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeQuerier_IsUpToDate_Call) Return

func (*L1InfoTreeQuerier_IsUpToDate_Call) Run

func (*L1InfoTreeQuerier_IsUpToDate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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