mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockNotifier

type BlockNotifier struct {
	mock.Mock
}

BlockNotifier is an autogenerated mock type for the BlockNotifier type

func NewBlockNotifier

func NewBlockNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockNotifier

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

func (_m *BlockNotifier) EXPECT() *BlockNotifier_Expecter

func (*BlockNotifier) GetCurrentBlockNumber

func (_m *BlockNotifier) GetCurrentBlockNumber() uint64

GetCurrentBlockNumber provides a mock function with no fields

func (*BlockNotifier) Initialize

func (_m *BlockNotifier) Initialize(ctx context.Context) error

Initialize provides a mock function with given fields: ctx

func (*BlockNotifier) Start

func (_m *BlockNotifier) Start(ctx context.Context)

Start provides a mock function with given fields: ctx

func (*BlockNotifier) String

func (_m *BlockNotifier) String() string

String provides a mock function with no fields

func (*BlockNotifier) Subscribe

func (_m *BlockNotifier) Subscribe(id string) <-chan types.EventNewBlock

Subscribe provides a mock function with given fields: id

type BlockNotifierManager

type BlockNotifierManager struct {
	mock.Mock
}

BlockNotifierManager is an autogenerated mock type for the BlockNotifierManager type

func NewBlockNotifierManager

func NewBlockNotifierManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockNotifierManager

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

func (*BlockNotifierManager) GetBlockNotifier

GetBlockNotifier provides a mock function with given fields: ctx, finality

func (*BlockNotifierManager) GetCurrentBlockNumber

func (_m *BlockNotifierManager) GetCurrentBlockNumber(ctx context.Context, finality types.BlockNumberFinality) (uint64, error)

GetCurrentBlockNumber provides a mock function with given fields: ctx, finality

type BlockNotifierManager_Expecter

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

func (*BlockNotifierManager_Expecter) GetBlockNotifier

func (_e *BlockNotifierManager_Expecter) GetBlockNotifier(ctx interface{}, finality interface{}) *BlockNotifierManager_GetBlockNotifier_Call

GetBlockNotifier is a helper method to define mock.On call

  • ctx context.Context
  • finality types.BlockNumberFinality

func (*BlockNotifierManager_Expecter) GetCurrentBlockNumber

func (_e *BlockNotifierManager_Expecter) GetCurrentBlockNumber(ctx interface{}, finality interface{}) *BlockNotifierManager_GetCurrentBlockNumber_Call

GetCurrentBlockNumber is a helper method to define mock.On call

  • ctx context.Context
  • finality types.BlockNumberFinality

type BlockNotifierManager_GetBlockNotifier_Call

type BlockNotifierManager_GetBlockNotifier_Call struct {
	*mock.Call
}

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

func (*BlockNotifierManager_GetBlockNotifier_Call) Return

func (*BlockNotifierManager_GetBlockNotifier_Call) Run

type BlockNotifierManager_GetCurrentBlockNumber_Call

type BlockNotifierManager_GetCurrentBlockNumber_Call struct {
	*mock.Call
}

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

func (*BlockNotifierManager_GetCurrentBlockNumber_Call) Return

func (*BlockNotifierManager_GetCurrentBlockNumber_Call) Run

func (*BlockNotifierManager_GetCurrentBlockNumber_Call) RunAndReturn

type BlockNotifier_Expecter

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

func (*BlockNotifier_Expecter) GetCurrentBlockNumber

GetCurrentBlockNumber is a helper method to define mock.On call

func (*BlockNotifier_Expecter) Initialize

func (_e *BlockNotifier_Expecter) Initialize(ctx interface{}) *BlockNotifier_Initialize_Call

Initialize is a helper method to define mock.On call

  • ctx context.Context

func (*BlockNotifier_Expecter) Start

func (_e *BlockNotifier_Expecter) Start(ctx interface{}) *BlockNotifier_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*BlockNotifier_Expecter) String

String is a helper method to define mock.On call

func (*BlockNotifier_Expecter) Subscribe

func (_e *BlockNotifier_Expecter) Subscribe(id interface{}) *BlockNotifier_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id string

type BlockNotifier_GetCurrentBlockNumber_Call

type BlockNotifier_GetCurrentBlockNumber_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_GetCurrentBlockNumber_Call) Return

func (*BlockNotifier_GetCurrentBlockNumber_Call) Run

func (*BlockNotifier_GetCurrentBlockNumber_Call) RunAndReturn

type BlockNotifier_Initialize_Call

type BlockNotifier_Initialize_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_Initialize_Call) Return

func (*BlockNotifier_Initialize_Call) Run

func (*BlockNotifier_Initialize_Call) RunAndReturn

type BlockNotifier_Start_Call

type BlockNotifier_Start_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_Start_Call) Return

func (*BlockNotifier_Start_Call) Run

func (*BlockNotifier_Start_Call) RunAndReturn

type BlockNotifier_String_Call

type BlockNotifier_String_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_String_Call) Return

func (*BlockNotifier_String_Call) Run

func (*BlockNotifier_String_Call) RunAndReturn

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

type BlockNotifier_Subscribe_Call

type BlockNotifier_Subscribe_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_Subscribe_Call) Return

func (*BlockNotifier_Subscribe_Call) Run

func (*BlockNotifier_Subscribe_Call) RunAndReturn

Jump to

Keyboard shortcuts

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