mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 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 PendingBlock

type PendingBlock struct {
	mock.Mock
}

PendingBlock is an autogenerated mock type for the PendingBlock type

func NewPendingBlock

func NewPendingBlock(t interface {
	mock.TestingT
	Cleanup(func())
}) *PendingBlock

NewPendingBlock creates a new instance of PendingBlock. 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 (*PendingBlock) Abort

func (_m *PendingBlock) Abort(ctx context.Context) error

Abort provides a mock function with given fields: ctx

func (*PendingBlock) AddEvmLog

func (_m *PendingBlock) AddEvmLog(ctx context.Context, log *ethrpc.EvmLog) error

AddEvmLog provides a mock function with given fields: ctx, log

func (*PendingBlock) AddEvmTransaction

func (_m *PendingBlock) AddEvmTransaction(ctx context.Context, tx *ethrpc.EvmTransaction) error

AddEvmTransaction provides a mock function with given fields: ctx, tx

func (*PendingBlock) ClaimMempoolEntries

func (_m *PendingBlock) ClaimMempoolEntries(ctx context.Context, maxTxsPerBlock int) ([]ethrpc.MempoolEntry, error)

ClaimMempoolEntries provides a mock function with given fields: ctx, maxTxsPerBlock

func (*PendingBlock) EXPECT

func (_m *PendingBlock) EXPECT() *PendingBlock_Expecter

func (*PendingBlock) Finalize

func (_m *PendingBlock) Finalize(ctx context.Context) error

Finalize provides a mock function with given fields: ctx

func (*PendingBlock) Hash

func (_m *PendingBlock) Hash() []byte

Hash provides a mock function with no fields

func (*PendingBlock) Number

func (_m *PendingBlock) Number() uint64

Number provides a mock function with no fields

type PendingBlock_Abort_Call

type PendingBlock_Abort_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Abort_Call) Return

func (*PendingBlock_Abort_Call) Run

func (*PendingBlock_Abort_Call) RunAndReturn

type PendingBlock_AddEvmLog_Call

type PendingBlock_AddEvmLog_Call struct {
	*mock.Call
}

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

func (*PendingBlock_AddEvmLog_Call) Return

func (*PendingBlock_AddEvmLog_Call) Run

func (*PendingBlock_AddEvmLog_Call) RunAndReturn

type PendingBlock_AddEvmTransaction_Call

type PendingBlock_AddEvmTransaction_Call struct {
	*mock.Call
}

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

func (*PendingBlock_AddEvmTransaction_Call) Return

func (*PendingBlock_AddEvmTransaction_Call) Run

func (*PendingBlock_AddEvmTransaction_Call) RunAndReturn

type PendingBlock_ClaimMempoolEntries_Call

type PendingBlock_ClaimMempoolEntries_Call struct {
	*mock.Call
}

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

func (*PendingBlock_ClaimMempoolEntries_Call) Return

func (*PendingBlock_ClaimMempoolEntries_Call) Run

func (*PendingBlock_ClaimMempoolEntries_Call) RunAndReturn

type PendingBlock_Expecter

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

func (*PendingBlock_Expecter) Abort

func (_e *PendingBlock_Expecter) Abort(ctx interface{}) *PendingBlock_Abort_Call

Abort is a helper method to define mock.On call

  • ctx context.Context

func (*PendingBlock_Expecter) AddEvmLog

func (_e *PendingBlock_Expecter) AddEvmLog(ctx interface{}, log interface{}) *PendingBlock_AddEvmLog_Call

AddEvmLog is a helper method to define mock.On call

  • ctx context.Context
  • log *ethrpc.EvmLog

func (*PendingBlock_Expecter) AddEvmTransaction

func (_e *PendingBlock_Expecter) AddEvmTransaction(ctx interface{}, tx interface{}) *PendingBlock_AddEvmTransaction_Call

AddEvmTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *ethrpc.EvmTransaction

func (*PendingBlock_Expecter) ClaimMempoolEntries

func (_e *PendingBlock_Expecter) ClaimMempoolEntries(ctx interface{}, maxTxsPerBlock interface{}) *PendingBlock_ClaimMempoolEntries_Call

ClaimMempoolEntries is a helper method to define mock.On call

  • ctx context.Context
  • maxTxsPerBlock int

func (*PendingBlock_Expecter) Finalize

func (_e *PendingBlock_Expecter) Finalize(ctx interface{}) *PendingBlock_Finalize_Call

Finalize is a helper method to define mock.On call

  • ctx context.Context

func (*PendingBlock_Expecter) Hash

Hash is a helper method to define mock.On call

func (*PendingBlock_Expecter) Number

Number is a helper method to define mock.On call

type PendingBlock_Finalize_Call

type PendingBlock_Finalize_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Finalize_Call) Return

func (*PendingBlock_Finalize_Call) Run

func (*PendingBlock_Finalize_Call) RunAndReturn

type PendingBlock_Hash_Call

type PendingBlock_Hash_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Hash_Call) Return

func (*PendingBlock_Hash_Call) Run

func (_c *PendingBlock_Hash_Call) Run(run func()) *PendingBlock_Hash_Call

func (*PendingBlock_Hash_Call) RunAndReturn

func (_c *PendingBlock_Hash_Call) RunAndReturn(run func() []byte) *PendingBlock_Hash_Call

type PendingBlock_Number_Call

type PendingBlock_Number_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Number_Call) Return

func (*PendingBlock_Number_Call) Run

func (*PendingBlock_Number_Call) RunAndReturn

func (_c *PendingBlock_Number_Call) RunAndReturn(run func() uint64) *PendingBlock_Number_Call

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

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

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) NewBlock

func (_m *Store) NewBlock(ctx context.Context, chainID uint64) (ethrpc.PendingBlock, error)

NewBlock provides a mock function with given fields: ctx, chainID

type Store_Expecter

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

func (*Store_Expecter) NewBlock

func (_e *Store_Expecter) NewBlock(ctx interface{}, chainID interface{}) *Store_NewBlock_Call

NewBlock is a helper method to define mock.On call

  • ctx context.Context
  • chainID uint64

type Store_NewBlock_Call

type Store_NewBlock_Call struct {
	*mock.Call
}

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

func (*Store_NewBlock_Call) Return

func (*Store_NewBlock_Call) Run

func (_c *Store_NewBlock_Call) Run(run func(ctx context.Context, chainID uint64)) *Store_NewBlock_Call

func (*Store_NewBlock_Call) RunAndReturn

Jump to

Keyboard shortcuts

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