Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 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 DialFunc added in v0.10.0

type DialFunc struct {
	mock.Mock
}

DialFunc is an autogenerated mock type for the DialFunc type

func NewDialFunc added in v0.10.0

func NewDialFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *DialFunc

NewDialFunc creates a new instance of DialFunc. 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 (*DialFunc) EXPECT added in v0.10.0

func (_m *DialFunc) EXPECT() *DialFunc_Expecter

func (*DialFunc) Execute added in v0.10.0

func (_m *DialFunc) Execute(url string) (types.BaseEthereumClienter, error)

Execute provides a mock function with given fields: url

type DialFunc_Execute_Call added in v0.10.0

type DialFunc_Execute_Call struct {
	*mock.Call
}

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

func (*DialFunc_Execute_Call) Return added in v0.10.0

func (*DialFunc_Execute_Call) Run added in v0.10.0

func (_c *DialFunc_Execute_Call) Run(run func(url string)) *DialFunc_Execute_Call

func (*DialFunc_Execute_Call) RunAndReturn added in v0.10.0

type DialFunc_Expecter added in v0.10.0

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

func (*DialFunc_Expecter) Execute added in v0.10.0

func (_e *DialFunc_Expecter) Execute(url interface{}) *DialFunc_Execute_Call

Execute is a helper method to define mock.On call

  • url string

type OpNodeClienter

type OpNodeClienter struct {
	mock.Mock
}

OpNodeClienter is an autogenerated mock type for the OpNodeClienter type

func NewOpNodeClienter

func NewOpNodeClienter(t interface {
	mock.TestingT
	Cleanup(func())
}) *OpNodeClienter

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

func (*OpNodeClienter) FinalizedL2Block

func (_m *OpNodeClienter) FinalizedL2Block() (*opnode.BlockInfo, error)

FinalizedL2Block provides a mock function with no fields

type OpNodeClienter_Expecter

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

func (*OpNodeClienter_Expecter) FinalizedL2Block

FinalizedL2Block is a helper method to define mock.On call

type OpNodeClienter_FinalizedL2Block_Call

type OpNodeClienter_FinalizedL2Block_Call struct {
	*mock.Call
}

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

func (*OpNodeClienter_FinalizedL2Block_Call) Return

func (*OpNodeClienter_FinalizedL2Block_Call) Run

func (*OpNodeClienter_FinalizedL2Block_Call) RunAndReturn

type RollupManagerContract added in v0.5.0

type RollupManagerContract struct {
	mock.Mock
}

RollupManagerContract is an autogenerated mock type for the RollupManagerContract type

func NewRollupManagerContract added in v0.5.0

func NewRollupManagerContract(t interface {
	mock.TestingT
	Cleanup(func())
}) *RollupManagerContract

NewRollupManagerContract creates a new instance of RollupManagerContract. 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 (*RollupManagerContract) EXPECT added in v0.5.0

func (*RollupManagerContract) FilterInitialized added in v0.8.0

FilterInitialized provides a mock function with given fields: opts

func (*RollupManagerContract) RollupAddressToID added in v0.5.0

func (_m *RollupManagerContract) RollupAddressToID(opts *bind.CallOpts, rollupAddress common.Address) (uint32, error)

RollupAddressToID provides a mock function with given fields: opts, rollupAddress

func (*RollupManagerContract) RollupIDToRollupData added in v0.5.0

func (_m *RollupManagerContract) RollupIDToRollupData(opts *bind.CallOpts, rollupID uint32) (agglayermanager.AgglayerManagerRollupDataReturn, error)

RollupIDToRollupData provides a mock function with given fields: opts, rollupID

type RollupManagerContract_Expecter added in v0.5.0

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

func (*RollupManagerContract_Expecter) FilterInitialized added in v0.8.0

func (_e *RollupManagerContract_Expecter) FilterInitialized(opts interface{}) *RollupManagerContract_FilterInitialized_Call

FilterInitialized is a helper method to define mock.On call

  • opts *bind.FilterOpts

func (*RollupManagerContract_Expecter) RollupAddressToID added in v0.5.0

func (_e *RollupManagerContract_Expecter) RollupAddressToID(opts interface{}, rollupAddress interface{}) *RollupManagerContract_RollupAddressToID_Call

RollupAddressToID is a helper method to define mock.On call

  • opts *bind.CallOpts
  • rollupAddress common.Address

func (*RollupManagerContract_Expecter) RollupIDToRollupData added in v0.5.0

func (_e *RollupManagerContract_Expecter) RollupIDToRollupData(opts interface{}, rollupID interface{}) *RollupManagerContract_RollupIDToRollupData_Call

RollupIDToRollupData is a helper method to define mock.On call

  • opts *bind.CallOpts
  • rollupID uint32

type RollupManagerContract_FilterInitialized_Call added in v0.8.0

type RollupManagerContract_FilterInitialized_Call struct {
	*mock.Call
}

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

func (*RollupManagerContract_FilterInitialized_Call) Return added in v0.8.0

func (*RollupManagerContract_FilterInitialized_Call) Run added in v0.8.0

func (*RollupManagerContract_FilterInitialized_Call) RunAndReturn added in v0.8.0

type RollupManagerContract_RollupAddressToID_Call added in v0.5.0

type RollupManagerContract_RollupAddressToID_Call struct {
	*mock.Call
}

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

func (*RollupManagerContract_RollupAddressToID_Call) Return added in v0.5.0

func (*RollupManagerContract_RollupAddressToID_Call) Run added in v0.5.0

func (*RollupManagerContract_RollupAddressToID_Call) RunAndReturn added in v0.5.0

type RollupManagerContract_RollupIDToRollupData_Call added in v0.5.0

type RollupManagerContract_RollupIDToRollupData_Call struct {
	*mock.Call
}

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

func (*RollupManagerContract_RollupIDToRollupData_Call) Return added in v0.5.0

func (*RollupManagerContract_RollupIDToRollupData_Call) Run added in v0.5.0

func (*RollupManagerContract_RollupIDToRollupData_Call) RunAndReturn added in v0.5.0

Jump to

Keyboard shortcuts

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