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

mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthTxManagerMock

type EthTxManagerMock struct {
	mock.Mock
}

EthTxManagerMock is an autogenerated mock type for the EthTxManager type

func NewEthTxManagerMock

func NewEthTxManagerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthTxManagerMock

NewEthTxManagerMock creates a new instance of EthTxManagerMock. 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 (*EthTxManagerMock) Add

func (_m *EthTxManagerMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error)

Add provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar

func (*EthTxManagerMock) EXPECT

func (*EthTxManagerMock) Remove

func (_m *EthTxManagerMock) Remove(ctx context.Context, id common.Hash) error

Remove provides a mock function with given fields: ctx, id

func (*EthTxManagerMock) Result

Result provides a mock function with given fields: ctx, id

func (*EthTxManagerMock) ResultsByStatus

ResultsByStatus provides a mock function with given fields: ctx, statuses

type EthTxManagerMock_Add_Call

type EthTxManagerMock_Add_Call struct {
	*mock.Call
}

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

func (*EthTxManagerMock_Add_Call) Return

func (*EthTxManagerMock_Add_Call) Run

func (_c *EthTxManagerMock_Add_Call) Run(run func(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar)) *EthTxManagerMock_Add_Call

func (*EthTxManagerMock_Add_Call) RunAndReturn

type EthTxManagerMock_Expecter

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

func (*EthTxManagerMock_Expecter) Add

func (_e *EthTxManagerMock_Expecter) Add(ctx interface{}, to interface{}, value interface{}, data interface{}, gasOffset interface{}, sidecar interface{}) *EthTxManagerMock_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • to *common.Address
  • value *big.Int
  • data []byte
  • gasOffset uint64
  • sidecar *types.BlobTxSidecar

func (*EthTxManagerMock_Expecter) Remove

func (_e *EthTxManagerMock_Expecter) Remove(ctx interface{}, id interface{}) *EthTxManagerMock_Remove_Call

Remove is a helper method to define mock.On call

  • ctx context.Context
  • id common.Hash

func (*EthTxManagerMock_Expecter) Result

func (_e *EthTxManagerMock_Expecter) Result(ctx interface{}, id interface{}) *EthTxManagerMock_Result_Call

Result is a helper method to define mock.On call

  • ctx context.Context
  • id common.Hash

func (*EthTxManagerMock_Expecter) ResultsByStatus

func (_e *EthTxManagerMock_Expecter) ResultsByStatus(ctx interface{}, statuses interface{}) *EthTxManagerMock_ResultsByStatus_Call

ResultsByStatus is a helper method to define mock.On call

  • ctx context.Context
  • statuses []zkevm_ethtx_managertypes.MonitoredTxStatus

type EthTxManagerMock_Remove_Call

type EthTxManagerMock_Remove_Call struct {
	*mock.Call
}

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

func (*EthTxManagerMock_Remove_Call) Return

func (*EthTxManagerMock_Remove_Call) Run

func (*EthTxManagerMock_Remove_Call) RunAndReturn

type EthTxManagerMock_Result_Call

type EthTxManagerMock_Result_Call struct {
	*mock.Call
}

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

func (*EthTxManagerMock_Result_Call) Return

func (*EthTxManagerMock_Result_Call) Run

type EthTxManagerMock_ResultsByStatus_Call

type EthTxManagerMock_ResultsByStatus_Call struct {
	*mock.Call
}

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

func (*EthTxManagerMock_ResultsByStatus_Call) Run

type L2GERManagerMock

type L2GERManagerMock struct {
	mock.Mock
}

L2GERManagerMock is an autogenerated mock type for the L2GERManagerContract type

func NewL2GERManagerMock

func NewL2GERManagerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *L2GERManagerMock

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

func (*L2GERManagerMock) GlobalExitRootMap

func (_m *L2GERManagerMock) GlobalExitRootMap(opts *bind.CallOpts, ger [32]byte) (*big.Int, error)

GlobalExitRootMap provides a mock function with given fields: opts, ger

type L2GERManagerMock_Expecter

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

func (*L2GERManagerMock_Expecter) GlobalExitRootMap

func (_e *L2GERManagerMock_Expecter) GlobalExitRootMap(opts interface{}, ger interface{}) *L2GERManagerMock_GlobalExitRootMap_Call

GlobalExitRootMap is a helper method to define mock.On call

  • opts *bind.CallOpts
  • ger [32]byte

type L2GERManagerMock_GlobalExitRootMap_Call

type L2GERManagerMock_GlobalExitRootMap_Call struct {
	*mock.Call
}

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

func (*L2GERManagerMock_GlobalExitRootMap_Call) Return

func (*L2GERManagerMock_GlobalExitRootMap_Call) Run

func (*L2GERManagerMock_GlobalExitRootMap_Call) RunAndReturn

Jump to

Keyboard shortcuts

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