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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReorgDetectorMock

type ReorgDetectorMock struct {
	mock.Mock
}

ReorgDetectorMock is an autogenerated mock type for the ReorgDetector type

func NewReorgDetectorMock

func NewReorgDetectorMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReorgDetectorMock

NewReorgDetectorMock creates a new instance of ReorgDetectorMock. 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 (*ReorgDetectorMock) AddBlockToTrack

func (_m *ReorgDetectorMock) AddBlockToTrack(ctx context.Context, id string, blockNum uint64, blockHash common.Hash) error

AddBlockToTrack provides a mock function with given fields: ctx, id, blockNum, blockHash

func (*ReorgDetectorMock) EXPECT

func (*ReorgDetectorMock) GetFinalizedBlockType added in v0.0.2

func (_m *ReorgDetectorMock) GetFinalizedBlockType() types.BlockNumberFinality

GetFinalizedBlockType provides a mock function with no fields

func (*ReorgDetectorMock) GetTrackedBlockByBlockNumber added in v0.7.1

func (_m *ReorgDetectorMock) GetTrackedBlockByBlockNumber(id string, blockNumber uint64) (*reorgdetector.Header, error)

GetTrackedBlockByBlockNumber provides a mock function with given fields: id, blockNumber

func (*ReorgDetectorMock) String added in v0.0.2

func (_m *ReorgDetectorMock) String() string

String provides a mock function with no fields

func (*ReorgDetectorMock) Subscribe

Subscribe provides a mock function with given fields: id

type ReorgDetectorMock_AddBlockToTrack_Call

type ReorgDetectorMock_AddBlockToTrack_Call struct {
	*mock.Call
}

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

func (*ReorgDetectorMock_AddBlockToTrack_Call) Return

func (*ReorgDetectorMock_AddBlockToTrack_Call) Run

func (*ReorgDetectorMock_AddBlockToTrack_Call) RunAndReturn

type ReorgDetectorMock_Expecter

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

func (*ReorgDetectorMock_Expecter) AddBlockToTrack

func (_e *ReorgDetectorMock_Expecter) AddBlockToTrack(ctx interface{}, id interface{}, blockNum interface{}, blockHash interface{}) *ReorgDetectorMock_AddBlockToTrack_Call

AddBlockToTrack is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • blockNum uint64
  • blockHash common.Hash

func (*ReorgDetectorMock_Expecter) GetFinalizedBlockType added in v0.0.2

GetFinalizedBlockType is a helper method to define mock.On call

func (*ReorgDetectorMock_Expecter) GetTrackedBlockByBlockNumber added in v0.7.1

func (_e *ReorgDetectorMock_Expecter) GetTrackedBlockByBlockNumber(id interface{}, blockNumber interface{}) *ReorgDetectorMock_GetTrackedBlockByBlockNumber_Call

GetTrackedBlockByBlockNumber is a helper method to define mock.On call

  • id string
  • blockNumber uint64

func (*ReorgDetectorMock_Expecter) String added in v0.0.2

String is a helper method to define mock.On call

func (*ReorgDetectorMock_Expecter) Subscribe

func (_e *ReorgDetectorMock_Expecter) Subscribe(id interface{}) *ReorgDetectorMock_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id string

type ReorgDetectorMock_GetFinalizedBlockType_Call added in v0.0.2

type ReorgDetectorMock_GetFinalizedBlockType_Call struct {
	*mock.Call
}

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

func (*ReorgDetectorMock_GetFinalizedBlockType_Call) Return added in v0.0.2

func (*ReorgDetectorMock_GetFinalizedBlockType_Call) Run added in v0.0.2

func (*ReorgDetectorMock_GetFinalizedBlockType_Call) RunAndReturn added in v0.0.2

type ReorgDetectorMock_GetTrackedBlockByBlockNumber_Call added in v0.7.1

type ReorgDetectorMock_GetTrackedBlockByBlockNumber_Call struct {
	*mock.Call
}

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

func (*ReorgDetectorMock_GetTrackedBlockByBlockNumber_Call) Return added in v0.7.1

func (*ReorgDetectorMock_GetTrackedBlockByBlockNumber_Call) Run added in v0.7.1

func (*ReorgDetectorMock_GetTrackedBlockByBlockNumber_Call) RunAndReturn added in v0.7.1

type ReorgDetectorMock_String_Call added in v0.0.2

type ReorgDetectorMock_String_Call struct {
	*mock.Call
}

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

func (*ReorgDetectorMock_String_Call) Return added in v0.0.2

func (*ReorgDetectorMock_String_Call) Run added in v0.0.2

func (*ReorgDetectorMock_String_Call) RunAndReturn added in v0.0.2

type ReorgDetectorMock_Subscribe_Call

type ReorgDetectorMock_Subscribe_Call struct {
	*mock.Call
}

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

func (*ReorgDetectorMock_Subscribe_Call) Return

func (*ReorgDetectorMock_Subscribe_Call) Run

func (*ReorgDetectorMock_Subscribe_Call) RunAndReturn

Jump to

Keyboard shortcuts

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