mock_l1_check_block

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L1BlockChecker

type L1BlockChecker struct {
	mock.Mock
}

L1BlockChecker is an autogenerated mock type for the L1BlockChecker type

func NewL1BlockChecker

func NewL1BlockChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1BlockChecker

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

func (*L1BlockChecker) Step

func (_m *L1BlockChecker) Step(ctx context.Context) error

Step provides a mock function with given fields: ctx

type L1BlockChecker_Expecter

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

func (*L1BlockChecker_Expecter) Step

func (_e *L1BlockChecker_Expecter) Step(ctx interface{}) *L1BlockChecker_Step_Call

Step is a helper method to define mock.On call

  • ctx context.Context

type L1BlockChecker_Step_Call

type L1BlockChecker_Step_Call struct {
	*mock.Call
}

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

func (*L1BlockChecker_Step_Call) Return

func (*L1BlockChecker_Step_Call) Run

func (*L1BlockChecker_Step_Call) RunAndReturn

type L1Requester

type L1Requester struct {
	mock.Mock
}

L1Requester is an autogenerated mock type for the L1Requester type

func NewL1Requester

func NewL1Requester(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1Requester

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

func (_m *L1Requester) EXPECT() *L1Requester_Expecter

func (*L1Requester) HeaderByNumber

func (_m *L1Requester) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

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

type L1Requester_Expecter

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

func (*L1Requester_Expecter) HeaderByNumber

func (_e *L1Requester_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *L1Requester_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

type L1Requester_HeaderByNumber_Call

type L1Requester_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*L1Requester_HeaderByNumber_Call) Return

func (*L1Requester_HeaderByNumber_Call) Run

func (*L1Requester_HeaderByNumber_Call) RunAndReturn

type SafeL1BlockNumberFetcher

type SafeL1BlockNumberFetcher struct {
	mock.Mock
}

SafeL1BlockNumberFetcher is an autogenerated mock type for the SafeL1BlockNumberFetcher type

func NewSafeL1BlockNumberFetcher

func NewSafeL1BlockNumberFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *SafeL1BlockNumberFetcher

NewSafeL1BlockNumberFetcher creates a new instance of SafeL1BlockNumberFetcher. 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 (*SafeL1BlockNumberFetcher) Description

func (_m *SafeL1BlockNumberFetcher) Description() string

Description provides a mock function with given fields:

func (*SafeL1BlockNumberFetcher) EXPECT

func (*SafeL1BlockNumberFetcher) GetSafeBlockNumber

func (_m *SafeL1BlockNumberFetcher) GetSafeBlockNumber(ctx context.Context, l1Client l1_check_block.L1Requester) (uint64, error)

GetSafeBlockNumber provides a mock function with given fields: ctx, l1Client

type SafeL1BlockNumberFetcher_Description_Call

type SafeL1BlockNumberFetcher_Description_Call struct {
	*mock.Call
}

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

func (*SafeL1BlockNumberFetcher_Description_Call) Return

func (*SafeL1BlockNumberFetcher_Description_Call) Run

func (*SafeL1BlockNumberFetcher_Description_Call) RunAndReturn

type SafeL1BlockNumberFetcher_Expecter

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

func (*SafeL1BlockNumberFetcher_Expecter) Description

Description is a helper method to define mock.On call

func (*SafeL1BlockNumberFetcher_Expecter) GetSafeBlockNumber

func (_e *SafeL1BlockNumberFetcher_Expecter) GetSafeBlockNumber(ctx interface{}, l1Client interface{}) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call

GetSafeBlockNumber is a helper method to define mock.On call

  • ctx context.Context
  • l1Client l1_check_block.L1Requester

type SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call

type SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call struct {
	*mock.Call
}

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

func (*SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Return

func (*SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Run

func (*SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) RunAndReturn

type StateForL1BlockCheckerIntegration

type StateForL1BlockCheckerIntegration struct {
	mock.Mock
}

StateForL1BlockCheckerIntegration is an autogenerated mock type for the StateForL1BlockCheckerIntegration type

func NewStateForL1BlockCheckerIntegration

func NewStateForL1BlockCheckerIntegration(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateForL1BlockCheckerIntegration

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

func (*StateForL1BlockCheckerIntegration) GetPreviousBlockToBlockNumber

func (_m *StateForL1BlockCheckerIntegration) GetPreviousBlockToBlockNumber(ctx context.Context, blockNumber uint64, dbTx pgx.Tx) (*state.Block, error)

GetPreviousBlockToBlockNumber provides a mock function with given fields: ctx, blockNumber, dbTx

type StateForL1BlockCheckerIntegration_Expecter

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

func (*StateForL1BlockCheckerIntegration_Expecter) GetPreviousBlockToBlockNumber

func (_e *StateForL1BlockCheckerIntegration_Expecter) GetPreviousBlockToBlockNumber(ctx interface{}, blockNumber interface{}, dbTx interface{}) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call

GetPreviousBlockToBlockNumber is a helper method to define mock.On call

  • ctx context.Context
  • blockNumber uint64
  • dbTx pgx.Tx

type StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call

type StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call struct {
	*mock.Call
}

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

func (*StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) Return

func (*StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) Run

func (*StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) RunAndReturn

type StateInterfacer

type StateInterfacer struct {
	mock.Mock
}

StateInterfacer is an autogenerated mock type for the StateInterfacer type

func NewStateInterfacer

func NewStateInterfacer(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateInterfacer

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

func (*StateInterfacer) GetFirstUncheckedBlock

func (_m *StateInterfacer) GetFirstUncheckedBlock(ctx context.Context, fromBlockNumber uint64, dbTx pgx.Tx) (*state.Block, error)

GetFirstUncheckedBlock provides a mock function with given fields: ctx, fromBlockNumber, dbTx

func (*StateInterfacer) UpdateCheckedBlockByNumber

func (_m *StateInterfacer) UpdateCheckedBlockByNumber(ctx context.Context, blockNumber uint64, newCheckedStatus bool, dbTx pgx.Tx) error

UpdateCheckedBlockByNumber provides a mock function with given fields: ctx, blockNumber, newCheckedStatus, dbTx

type StateInterfacer_Expecter

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

func (*StateInterfacer_Expecter) GetFirstUncheckedBlock

func (_e *StateInterfacer_Expecter) GetFirstUncheckedBlock(ctx interface{}, fromBlockNumber interface{}, dbTx interface{}) *StateInterfacer_GetFirstUncheckedBlock_Call

GetFirstUncheckedBlock is a helper method to define mock.On call

  • ctx context.Context
  • fromBlockNumber uint64
  • dbTx pgx.Tx

func (*StateInterfacer_Expecter) UpdateCheckedBlockByNumber

func (_e *StateInterfacer_Expecter) UpdateCheckedBlockByNumber(ctx interface{}, blockNumber interface{}, newCheckedStatus interface{}, dbTx interface{}) *StateInterfacer_UpdateCheckedBlockByNumber_Call

UpdateCheckedBlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • blockNumber uint64
  • newCheckedStatus bool
  • dbTx pgx.Tx

type StateInterfacer_GetFirstUncheckedBlock_Call

type StateInterfacer_GetFirstUncheckedBlock_Call struct {
	*mock.Call
}

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

func (*StateInterfacer_GetFirstUncheckedBlock_Call) Return

func (*StateInterfacer_GetFirstUncheckedBlock_Call) Run

func (*StateInterfacer_GetFirstUncheckedBlock_Call) RunAndReturn

type StateInterfacer_UpdateCheckedBlockByNumber_Call

type StateInterfacer_UpdateCheckedBlockByNumber_Call struct {
	*mock.Call
}

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

func (*StateInterfacer_UpdateCheckedBlockByNumber_Call) Return

func (*StateInterfacer_UpdateCheckedBlockByNumber_Call) Run

func (*StateInterfacer_UpdateCheckedBlockByNumber_Call) RunAndReturn

type StatePreCheckInterfacer

type StatePreCheckInterfacer struct {
	mock.Mock
}

StatePreCheckInterfacer is an autogenerated mock type for the StatePreCheckInterfacer type

func NewStatePreCheckInterfacer

func NewStatePreCheckInterfacer(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatePreCheckInterfacer

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

func (*StatePreCheckInterfacer) GetUncheckedBlocks

func (_m *StatePreCheckInterfacer) GetUncheckedBlocks(ctx context.Context, fromBlockNumber uint64, toBlockNumber uint64, dbTx pgx.Tx) ([]*state.Block, error)

GetUncheckedBlocks provides a mock function with given fields: ctx, fromBlockNumber, toBlockNumber, dbTx

type StatePreCheckInterfacer_Expecter

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

func (*StatePreCheckInterfacer_Expecter) GetUncheckedBlocks

func (_e *StatePreCheckInterfacer_Expecter) GetUncheckedBlocks(ctx interface{}, fromBlockNumber interface{}, toBlockNumber interface{}, dbTx interface{}) *StatePreCheckInterfacer_GetUncheckedBlocks_Call

GetUncheckedBlocks is a helper method to define mock.On call

  • ctx context.Context
  • fromBlockNumber uint64
  • toBlockNumber uint64
  • dbTx pgx.Tx

type StatePreCheckInterfacer_GetUncheckedBlocks_Call

type StatePreCheckInterfacer_GetUncheckedBlocks_Call struct {
	*mock.Call
}

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

func (*StatePreCheckInterfacer_GetUncheckedBlocks_Call) Return

func (*StatePreCheckInterfacer_GetUncheckedBlocks_Call) Run

func (*StatePreCheckInterfacer_GetUncheckedBlocks_Call) RunAndReturn

type SyncCheckReorger

type SyncCheckReorger struct {
	mock.Mock
}

SyncCheckReorger is an autogenerated mock type for the SyncCheckReorger type

func NewSyncCheckReorger

func NewSyncCheckReorger(t interface {
	mock.TestingT
	Cleanup(func())
}) *SyncCheckReorger

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

func (*SyncCheckReorger) ExecuteReorgFromMismatchBlock

func (_m *SyncCheckReorger) ExecuteReorgFromMismatchBlock(blockNumber uint64, reason string) error

ExecuteReorgFromMismatchBlock provides a mock function with given fields: blockNumber, reason

func (*SyncCheckReorger) OnDetectedMismatchL1BlockReorg

func (_m *SyncCheckReorger) OnDetectedMismatchL1BlockReorg()

OnDetectedMismatchL1BlockReorg provides a mock function with given fields:

type SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call

type SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call struct {
	*mock.Call
}

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

func (*SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) Return

func (*SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) Run

func (*SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) RunAndReturn

type SyncCheckReorger_Expecter

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

func (*SyncCheckReorger_Expecter) ExecuteReorgFromMismatchBlock

func (_e *SyncCheckReorger_Expecter) ExecuteReorgFromMismatchBlock(blockNumber interface{}, reason interface{}) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call

ExecuteReorgFromMismatchBlock is a helper method to define mock.On call

  • blockNumber uint64
  • reason string

func (*SyncCheckReorger_Expecter) OnDetectedMismatchL1BlockReorg

OnDetectedMismatchL1BlockReorg is a helper method to define mock.On call

type SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call

type SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call struct {
	*mock.Call
}

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

func (*SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) Return

func (*SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) Run

func (*SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) RunAndReturn

Jump to

Keyboard shortcuts

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