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

mocks

package
v0.10.2 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 DownloaderInterface

type DownloaderInterface struct {
	mock.Mock
}

DownloaderInterface is an autogenerated mock type for the DownloaderInterface type

func NewDownloaderInterface

func NewDownloaderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *DownloaderInterface

NewDownloaderInterface creates a new instance of DownloaderInterface. 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 (*DownloaderInterface) ChainID

func (_m *DownloaderInterface) ChainID(ctx context.Context) (uint64, error)

ChainID provides a mock function with given fields: ctx

func (*DownloaderInterface) DownloadNextBlocks

func (_m *DownloaderInterface) DownloadNextBlocks(ctx context.Context, fromBlockHeader *aggkittypes.BlockHeader, maxBlocks uint64, syncerConfig aggkittypes.SyncerConfig) (*types.DownloadResult, error)

DownloadNextBlocks provides a mock function with given fields: ctx, fromBlockHeader, maxBlocks, syncerConfig

func (*DownloaderInterface) EXPECT

type DownloaderInterface_ChainID_Call

type DownloaderInterface_ChainID_Call struct {
	*mock.Call
}

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

func (*DownloaderInterface_ChainID_Call) Return

func (*DownloaderInterface_ChainID_Call) Run

func (*DownloaderInterface_ChainID_Call) RunAndReturn

type DownloaderInterface_DownloadNextBlocks_Call

type DownloaderInterface_DownloadNextBlocks_Call struct {
	*mock.Call
}

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

func (*DownloaderInterface_DownloadNextBlocks_Call) Return

func (*DownloaderInterface_DownloadNextBlocks_Call) Run

type DownloaderInterface_Expecter

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

func (*DownloaderInterface_Expecter) ChainID

func (_e *DownloaderInterface_Expecter) ChainID(ctx interface{}) *DownloaderInterface_ChainID_Call

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*DownloaderInterface_Expecter) DownloadNextBlocks

func (_e *DownloaderInterface_Expecter) DownloadNextBlocks(ctx interface{}, fromBlockHeader interface{}, maxBlocks interface{}, syncerConfig interface{}) *DownloaderInterface_DownloadNextBlocks_Call

DownloadNextBlocks is a helper method to define mock.On call

  • ctx context.Context
  • fromBlockHeader *aggkittypes.BlockHeader
  • maxBlocks uint64
  • syncerConfig aggkittypes.SyncerConfig

type MultidownloaderInterface

type MultidownloaderInterface struct {
	mock.Mock
}

MultidownloaderInterface is an autogenerated mock type for the MultidownloaderInterface type

func NewMultidownloaderInterface

func NewMultidownloaderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MultidownloaderInterface

NewMultidownloaderInterface creates a new instance of MultidownloaderInterface. 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 (*MultidownloaderInterface) ChainID

func (_m *MultidownloaderInterface) ChainID(ctx context.Context) (uint64, error)

ChainID provides a mock function with given fields: ctx

func (*MultidownloaderInterface) CheckValidBlock

func (_m *MultidownloaderInterface) CheckValidBlock(ctx context.Context, blockNumber uint64, blockHash common.Hash) (bool, uint64, error)

CheckValidBlock provides a mock function with given fields: ctx, blockNumber, blockHash

func (*MultidownloaderInterface) EXPECT

func (*MultidownloaderInterface) Finality

Finality provides a mock function with no fields

func (*MultidownloaderInterface) GetReorgedDataByReorgID

func (_m *MultidownloaderInterface) GetReorgedDataByReorgID(ctx context.Context, reorgID uint64) (*multidownloadertypes.ReorgData, error)

GetReorgedDataByReorgID provides a mock function with given fields: ctx, reorgID

func (*MultidownloaderInterface) HeaderByNumber

HeaderByNumber provides a mock function with given fields: ctx, number

func (*MultidownloaderInterface) IsAvailable

IsAvailable provides a mock function with given fields: query

func (*MultidownloaderInterface) IsPartiallyAvailable

IsPartiallyAvailable provides a mock function with given fields: query

func (*MultidownloaderInterface) LogQuery

LogQuery provides a mock function with given fields: ctx, query

func (*MultidownloaderInterface) StorageHeaderByNumber

StorageHeaderByNumber provides a mock function with given fields: ctx, number

type MultidownloaderInterface_ChainID_Call

type MultidownloaderInterface_ChainID_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_ChainID_Call) Return

func (*MultidownloaderInterface_ChainID_Call) Run

func (*MultidownloaderInterface_ChainID_Call) RunAndReturn

type MultidownloaderInterface_CheckValidBlock_Call

type MultidownloaderInterface_CheckValidBlock_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_CheckValidBlock_Call) Return

func (*MultidownloaderInterface_CheckValidBlock_Call) Run

func (*MultidownloaderInterface_CheckValidBlock_Call) RunAndReturn

type MultidownloaderInterface_Expecter

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

func (*MultidownloaderInterface_Expecter) ChainID

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*MultidownloaderInterface_Expecter) CheckValidBlock

func (_e *MultidownloaderInterface_Expecter) CheckValidBlock(ctx interface{}, blockNumber interface{}, blockHash interface{}) *MultidownloaderInterface_CheckValidBlock_Call

CheckValidBlock is a helper method to define mock.On call

  • ctx context.Context
  • blockNumber uint64
  • blockHash common.Hash

func (*MultidownloaderInterface_Expecter) Finality

Finality is a helper method to define mock.On call

func (*MultidownloaderInterface_Expecter) GetReorgedDataByReorgID

func (_e *MultidownloaderInterface_Expecter) GetReorgedDataByReorgID(ctx interface{}, reorgID interface{}) *MultidownloaderInterface_GetReorgedDataByReorgID_Call

GetReorgedDataByReorgID is a helper method to define mock.On call

  • ctx context.Context
  • reorgID uint64

func (*MultidownloaderInterface_Expecter) HeaderByNumber

func (_e *MultidownloaderInterface_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *MultidownloaderInterface_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *aggkittypes.BlockNumberFinality

func (*MultidownloaderInterface_Expecter) IsAvailable

IsAvailable is a helper method to define mock.On call

  • query multidownloadertypes.LogQuery

func (*MultidownloaderInterface_Expecter) IsPartiallyAvailable

IsPartiallyAvailable is a helper method to define mock.On call

  • query multidownloadertypes.LogQuery

func (*MultidownloaderInterface_Expecter) LogQuery

func (_e *MultidownloaderInterface_Expecter) LogQuery(ctx interface{}, query interface{}) *MultidownloaderInterface_LogQuery_Call

LogQuery is a helper method to define mock.On call

  • ctx context.Context
  • query multidownloadertypes.LogQuery

func (*MultidownloaderInterface_Expecter) StorageHeaderByNumber

func (_e *MultidownloaderInterface_Expecter) StorageHeaderByNumber(ctx interface{}, number interface{}) *MultidownloaderInterface_StorageHeaderByNumber_Call

StorageHeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *aggkittypes.BlockNumberFinality

type MultidownloaderInterface_Finality_Call

type MultidownloaderInterface_Finality_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_Finality_Call) Return

func (*MultidownloaderInterface_Finality_Call) Run

func (*MultidownloaderInterface_Finality_Call) RunAndReturn

type MultidownloaderInterface_GetReorgedDataByReorgID_Call

type MultidownloaderInterface_GetReorgedDataByReorgID_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_GetReorgedDataByReorgID_Call) Return

func (*MultidownloaderInterface_GetReorgedDataByReorgID_Call) Run

type MultidownloaderInterface_HeaderByNumber_Call

type MultidownloaderInterface_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_HeaderByNumber_Call) Return

func (*MultidownloaderInterface_HeaderByNumber_Call) Run

type MultidownloaderInterface_IsAvailable_Call

type MultidownloaderInterface_IsAvailable_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_IsAvailable_Call) Return

func (*MultidownloaderInterface_IsAvailable_Call) Run

func (*MultidownloaderInterface_IsAvailable_Call) RunAndReturn

type MultidownloaderInterface_IsPartiallyAvailable_Call

type MultidownloaderInterface_IsPartiallyAvailable_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_IsPartiallyAvailable_Call) Return

func (*MultidownloaderInterface_IsPartiallyAvailable_Call) Run

type MultidownloaderInterface_LogQuery_Call

type MultidownloaderInterface_LogQuery_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_LogQuery_Call) Return

func (*MultidownloaderInterface_LogQuery_Call) Run

type MultidownloaderInterface_StorageHeaderByNumber_Call

type MultidownloaderInterface_StorageHeaderByNumber_Call struct {
	*mock.Call
}

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

func (*MultidownloaderInterface_StorageHeaderByNumber_Call) Run

type ProcessorInterface

type ProcessorInterface struct {
	mock.Mock
}

ProcessorInterface is an autogenerated mock type for the ProcessorInterface type

func NewProcessorInterface

func NewProcessorInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProcessorInterface

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

func (*ProcessorInterface) GetLastProcessedBlockHeader

func (_m *ProcessorInterface) GetLastProcessedBlockHeader(ctx context.Context) (*types.BlockHeader, error)

GetLastProcessedBlockHeader provides a mock function with given fields: ctx

func (*ProcessorInterface) ProcessBlocks

func (_m *ProcessorInterface) ProcessBlocks(ctx context.Context, blocks *synctypes.DownloadResult) error

ProcessBlocks provides a mock function with given fields: ctx, blocks

func (*ProcessorInterface) Reorg

func (_m *ProcessorInterface) Reorg(ctx context.Context, firstReorgedBlock uint64) error

Reorg provides a mock function with given fields: ctx, firstReorgedBlock

type ProcessorInterface_Expecter

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

func (*ProcessorInterface_Expecter) GetLastProcessedBlockHeader

func (_e *ProcessorInterface_Expecter) GetLastProcessedBlockHeader(ctx interface{}) *ProcessorInterface_GetLastProcessedBlockHeader_Call

GetLastProcessedBlockHeader is a helper method to define mock.On call

  • ctx context.Context

func (*ProcessorInterface_Expecter) ProcessBlocks

func (_e *ProcessorInterface_Expecter) ProcessBlocks(ctx interface{}, blocks interface{}) *ProcessorInterface_ProcessBlocks_Call

ProcessBlocks is a helper method to define mock.On call

  • ctx context.Context
  • blocks *synctypes.DownloadResult

func (*ProcessorInterface_Expecter) Reorg

func (_e *ProcessorInterface_Expecter) Reorg(ctx interface{}, firstReorgedBlock interface{}) *ProcessorInterface_Reorg_Call

Reorg is a helper method to define mock.On call

  • ctx context.Context
  • firstReorgedBlock uint64

type ProcessorInterface_GetLastProcessedBlockHeader_Call

type ProcessorInterface_GetLastProcessedBlockHeader_Call struct {
	*mock.Call
}

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

func (*ProcessorInterface_GetLastProcessedBlockHeader_Call) Return

func (*ProcessorInterface_GetLastProcessedBlockHeader_Call) Run

func (*ProcessorInterface_GetLastProcessedBlockHeader_Call) RunAndReturn

type ProcessorInterface_ProcessBlocks_Call

type ProcessorInterface_ProcessBlocks_Call struct {
	*mock.Call
}

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

func (*ProcessorInterface_ProcessBlocks_Call) Return

func (*ProcessorInterface_ProcessBlocks_Call) Run

func (*ProcessorInterface_ProcessBlocks_Call) RunAndReturn

type ProcessorInterface_Reorg_Call

type ProcessorInterface_Reorg_Call struct {
	*mock.Call
}

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

func (*ProcessorInterface_Reorg_Call) Return

func (*ProcessorInterface_Reorg_Call) Run

func (_c *ProcessorInterface_Reorg_Call) Run(run func(ctx context.Context, firstReorgedBlock uint64)) *ProcessorInterface_Reorg_Call

func (*ProcessorInterface_Reorg_Call) RunAndReturn

Jump to

Keyboard shortcuts

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