mocks

package
v0.10.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 ClaimSyncer

type ClaimSyncer struct {
	mock.Mock
}

ClaimSyncer is an autogenerated mock type for the ClaimSyncer type

func NewClaimSyncer

func NewClaimSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClaimSyncer

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

func (_m *ClaimSyncer) EXPECT() *ClaimSyncer_Expecter

func (*ClaimSyncer) GetClaims

func (_m *ClaimSyncer) GetClaims(ctx context.Context, fromBlock uint64, toBlock uint64) ([]types.Claim, error)

GetClaims provides a mock function with given fields: ctx, fromBlock, toBlock

func (*ClaimSyncer) GetClaimsByGlobalIndex

func (_m *ClaimSyncer) GetClaimsByGlobalIndex(ctx context.Context, globalIndex *big.Int) ([]types.Claim, error)

GetClaimsByGlobalIndex provides a mock function with given fields: ctx, globalIndex

func (*ClaimSyncer) GetFirstProcessedBlock

func (_m *ClaimSyncer) GetFirstProcessedBlock(ctx context.Context) (uint64, bool, error)

GetFirstProcessedBlock provides a mock function with given fields: ctx

func (*ClaimSyncer) GetLastProcessedBlock

func (_m *ClaimSyncer) GetLastProcessedBlock(ctx context.Context) (uint64, bool, error)

GetLastProcessedBlock provides a mock function with given fields: ctx

func (*ClaimSyncer) SetNextRequiredBlock

func (_m *ClaimSyncer) SetNextRequiredBlock(ctx context.Context, blockNum uint64) error

SetNextRequiredBlock provides a mock function with given fields: ctx, blockNum

type ClaimSyncer_Expecter

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

func (*ClaimSyncer_Expecter) GetClaims

func (_e *ClaimSyncer_Expecter) GetClaims(ctx interface{}, fromBlock interface{}, toBlock interface{}) *ClaimSyncer_GetClaims_Call

GetClaims is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock uint64
  • toBlock uint64

func (*ClaimSyncer_Expecter) GetClaimsByGlobalIndex

func (_e *ClaimSyncer_Expecter) GetClaimsByGlobalIndex(ctx interface{}, globalIndex interface{}) *ClaimSyncer_GetClaimsByGlobalIndex_Call

GetClaimsByGlobalIndex is a helper method to define mock.On call

  • ctx context.Context
  • globalIndex *big.Int

func (*ClaimSyncer_Expecter) GetFirstProcessedBlock

func (_e *ClaimSyncer_Expecter) GetFirstProcessedBlock(ctx interface{}) *ClaimSyncer_GetFirstProcessedBlock_Call

GetFirstProcessedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*ClaimSyncer_Expecter) GetLastProcessedBlock

func (_e *ClaimSyncer_Expecter) GetLastProcessedBlock(ctx interface{}) *ClaimSyncer_GetLastProcessedBlock_Call

GetLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*ClaimSyncer_Expecter) SetNextRequiredBlock

func (_e *ClaimSyncer_Expecter) SetNextRequiredBlock(ctx interface{}, blockNum interface{}) *ClaimSyncer_SetNextRequiredBlock_Call

SetNextRequiredBlock is a helper method to define mock.On call

  • ctx context.Context
  • blockNum uint64

type ClaimSyncer_GetClaimsByGlobalIndex_Call

type ClaimSyncer_GetClaimsByGlobalIndex_Call struct {
	*mock.Call
}

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

func (*ClaimSyncer_GetClaimsByGlobalIndex_Call) Return

func (*ClaimSyncer_GetClaimsByGlobalIndex_Call) Run

func (*ClaimSyncer_GetClaimsByGlobalIndex_Call) RunAndReturn

type ClaimSyncer_GetClaims_Call

type ClaimSyncer_GetClaims_Call struct {
	*mock.Call
}

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

func (*ClaimSyncer_GetClaims_Call) Return

func (*ClaimSyncer_GetClaims_Call) Run

func (_c *ClaimSyncer_GetClaims_Call) Run(run func(ctx context.Context, fromBlock uint64, toBlock uint64)) *ClaimSyncer_GetClaims_Call

func (*ClaimSyncer_GetClaims_Call) RunAndReturn

type ClaimSyncer_GetFirstProcessedBlock_Call

type ClaimSyncer_GetFirstProcessedBlock_Call struct {
	*mock.Call
}

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

func (*ClaimSyncer_GetFirstProcessedBlock_Call) Return

func (*ClaimSyncer_GetFirstProcessedBlock_Call) Run

func (*ClaimSyncer_GetFirstProcessedBlock_Call) RunAndReturn

type ClaimSyncer_GetLastProcessedBlock_Call

type ClaimSyncer_GetLastProcessedBlock_Call struct {
	*mock.Call
}

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

func (*ClaimSyncer_GetLastProcessedBlock_Call) Return

func (*ClaimSyncer_GetLastProcessedBlock_Call) Run

func (*ClaimSyncer_GetLastProcessedBlock_Call) RunAndReturn

type ClaimSyncer_SetNextRequiredBlock_Call

type ClaimSyncer_SetNextRequiredBlock_Call struct {
	*mock.Call
}

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

func (*ClaimSyncer_SetNextRequiredBlock_Call) Return

func (*ClaimSyncer_SetNextRequiredBlock_Call) Run

func (*ClaimSyncer_SetNextRequiredBlock_Call) RunAndReturn

Jump to

Keyboard shortcuts

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