mock_syncinterfaces

package
v0.5.0-RC10 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CriticalErrorHandler

type CriticalErrorHandler struct {
	mock.Mock
}

CriticalErrorHandler is an autogenerated mock type for the CriticalErrorHandler type

func NewCriticalErrorHandler

func NewCriticalErrorHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *CriticalErrorHandler

NewCriticalErrorHandler creates a new instance of CriticalErrorHandler. 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 (*CriticalErrorHandler) CriticalError

func (_m *CriticalErrorHandler) CriticalError(ctx context.Context, err error)

CriticalError provides a mock function with given fields: ctx, err

func (*CriticalErrorHandler) EXPECT

type CriticalErrorHandler_CriticalError_Call

type CriticalErrorHandler_CriticalError_Call struct {
	*mock.Call
}

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

func (*CriticalErrorHandler_CriticalError_Call) Return

func (*CriticalErrorHandler_CriticalError_Call) Run

func (*CriticalErrorHandler_CriticalError_Call) RunAndReturn

type CriticalErrorHandler_Expecter

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

func (*CriticalErrorHandler_Expecter) CriticalError

func (_e *CriticalErrorHandler_Expecter) CriticalError(ctx interface{}, err interface{}) *CriticalErrorHandler_CriticalError_Call

CriticalError is a helper method to define mock.On call

  • ctx context.Context
  • err error

type EthermanGetLatestBatchNumber

type EthermanGetLatestBatchNumber struct {
	mock.Mock
}

EthermanGetLatestBatchNumber is an autogenerated mock type for the EthermanGetLatestBatchNumber type

func NewEthermanGetLatestBatchNumber

func NewEthermanGetLatestBatchNumber(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthermanGetLatestBatchNumber

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

func (*EthermanGetLatestBatchNumber) GetLatestBatchNumber

func (_m *EthermanGetLatestBatchNumber) GetLatestBatchNumber() (uint64, error)

GetLatestBatchNumber provides a mock function with given fields:

type EthermanGetLatestBatchNumber_Expecter

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

func (*EthermanGetLatestBatchNumber_Expecter) GetLatestBatchNumber

GetLatestBatchNumber is a helper method to define mock.On call

type EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call

type EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call struct {
	*mock.Call
}

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

func (*EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Return

func (*EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Run

func (*EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) RunAndReturn

type EventLogInterface

type EventLogInterface struct {
	mock.Mock
}

EventLogInterface is an autogenerated mock type for the EventLogInterface type

func NewEventLogInterface

func NewEventLogInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventLogInterface

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

func (*EventLogInterface) LogEvent

func (_m *EventLogInterface) LogEvent(ctx context.Context, _a1 *event.Event) error

LogEvent provides a mock function with given fields: ctx, _a1

type EventLogInterface_Expecter

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

func (*EventLogInterface_Expecter) LogEvent

func (_e *EventLogInterface_Expecter) LogEvent(ctx interface{}, _a1 interface{}) *EventLogInterface_LogEvent_Call

LogEvent is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *event.Event

type EventLogInterface_LogEvent_Call

type EventLogInterface_LogEvent_Call struct {
	*mock.Call
}

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

func (*EventLogInterface_LogEvent_Call) Return

func (*EventLogInterface_LogEvent_Call) Run

func (*EventLogInterface_LogEvent_Call) RunAndReturn

type StateBeginTransactionInterface

type StateBeginTransactionInterface struct {
	mock.Mock
}

StateBeginTransactionInterface is an autogenerated mock type for the StateBeginTransactionInterface type

func NewStateBeginTransactionInterface

func NewStateBeginTransactionInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateBeginTransactionInterface

NewStateBeginTransactionInterface creates a new instance of StateBeginTransactionInterface. 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 (*StateBeginTransactionInterface) BeginStateTransaction

func (_m *StateBeginTransactionInterface) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)

BeginStateTransaction provides a mock function with given fields: ctx

func (*StateBeginTransactionInterface) EXPECT

type StateBeginTransactionInterface_BeginStateTransaction_Call

type StateBeginTransactionInterface_BeginStateTransaction_Call struct {
	*mock.Call
}

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

func (*StateBeginTransactionInterface_BeginStateTransaction_Call) Return

func (*StateBeginTransactionInterface_BeginStateTransaction_Call) Run

func (*StateBeginTransactionInterface_BeginStateTransaction_Call) RunAndReturn

type StateBeginTransactionInterface_Expecter

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

func (*StateBeginTransactionInterface_Expecter) BeginStateTransaction

BeginStateTransaction is a helper method to define mock.On call

  • ctx context.Context

type StateGetBatchByNumberInterface

type StateGetBatchByNumberInterface struct {
	mock.Mock
}

StateGetBatchByNumberInterface is an autogenerated mock type for the StateGetBatchByNumberInterface type

func NewStateGetBatchByNumberInterface

func NewStateGetBatchByNumberInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateGetBatchByNumberInterface

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

func (*StateGetBatchByNumberInterface) GetBatchByNumber

func (_m *StateGetBatchByNumberInterface) GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)

GetBatchByNumber provides a mock function with given fields: ctx, batchNumber, dbTx

type StateGetBatchByNumberInterface_Expecter

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

func (*StateGetBatchByNumberInterface_Expecter) GetBatchByNumber

func (_e *StateGetBatchByNumberInterface_Expecter) GetBatchByNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateGetBatchByNumberInterface_GetBatchByNumber_Call

GetBatchByNumber is a helper method to define mock.On call

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

type StateGetBatchByNumberInterface_GetBatchByNumber_Call

type StateGetBatchByNumberInterface_GetBatchByNumber_Call struct {
	*mock.Call
}

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

func (*StateGetBatchByNumberInterface_GetBatchByNumber_Call) Return

func (*StateGetBatchByNumberInterface_GetBatchByNumber_Call) Run

func (*StateGetBatchByNumberInterface_GetBatchByNumber_Call) RunAndReturn

type SyncTrustedStateExecutor

type SyncTrustedStateExecutor struct {
	mock.Mock
}

SyncTrustedStateExecutor is an autogenerated mock type for the SyncTrustedStateExecutor type

func NewSyncTrustedStateExecutor

func NewSyncTrustedStateExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *SyncTrustedStateExecutor

NewSyncTrustedStateExecutor creates a new instance of SyncTrustedStateExecutor. 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 (*SyncTrustedStateExecutor) CleanTrustedState

func (_m *SyncTrustedStateExecutor) CleanTrustedState()

CleanTrustedState provides a mock function with given fields:

func (*SyncTrustedStateExecutor) EXPECT

func (*SyncTrustedStateExecutor) SyncTrustedState

func (_m *SyncTrustedStateExecutor) SyncTrustedState(ctx context.Context, latestSyncedBatch uint64) error

SyncTrustedState provides a mock function with given fields: ctx, latestSyncedBatch

type SyncTrustedStateExecutor_CleanTrustedState_Call

type SyncTrustedStateExecutor_CleanTrustedState_Call struct {
	*mock.Call
}

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

func (*SyncTrustedStateExecutor_CleanTrustedState_Call) Return

func (*SyncTrustedStateExecutor_CleanTrustedState_Call) Run

func (*SyncTrustedStateExecutor_CleanTrustedState_Call) RunAndReturn

type SyncTrustedStateExecutor_Expecter

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

func (*SyncTrustedStateExecutor_Expecter) CleanTrustedState

CleanTrustedState is a helper method to define mock.On call

func (*SyncTrustedStateExecutor_Expecter) SyncTrustedState

func (_e *SyncTrustedStateExecutor_Expecter) SyncTrustedState(ctx interface{}, latestSyncedBatch interface{}) *SyncTrustedStateExecutor_SyncTrustedState_Call

SyncTrustedState is a helper method to define mock.On call

  • ctx context.Context
  • latestSyncedBatch uint64

type SyncTrustedStateExecutor_SyncTrustedState_Call

type SyncTrustedStateExecutor_SyncTrustedState_Call struct {
	*mock.Call
}

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

func (*SyncTrustedStateExecutor_SyncTrustedState_Call) Return

func (*SyncTrustedStateExecutor_SyncTrustedState_Call) Run

func (*SyncTrustedStateExecutor_SyncTrustedState_Call) RunAndReturn

type SynchronizerFlushIDManager

type SynchronizerFlushIDManager struct {
	mock.Mock
}

SynchronizerFlushIDManager is an autogenerated mock type for the SynchronizerFlushIDManager type

func NewSynchronizerFlushIDManager

func NewSynchronizerFlushIDManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *SynchronizerFlushIDManager

NewSynchronizerFlushIDManager creates a new instance of SynchronizerFlushIDManager. 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 (*SynchronizerFlushIDManager) CheckFlushID

func (_m *SynchronizerFlushIDManager) CheckFlushID(dbTx pgx.Tx) error

CheckFlushID provides a mock function with given fields: dbTx

func (*SynchronizerFlushIDManager) EXPECT

func (*SynchronizerFlushIDManager) PendingFlushID

func (_m *SynchronizerFlushIDManager) PendingFlushID(flushID uint64, proverID string)

PendingFlushID provides a mock function with given fields: flushID, proverID

type SynchronizerFlushIDManager_CheckFlushID_Call

type SynchronizerFlushIDManager_CheckFlushID_Call struct {
	*mock.Call
}

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

func (*SynchronizerFlushIDManager_CheckFlushID_Call) Return

func (*SynchronizerFlushIDManager_CheckFlushID_Call) Run

func (*SynchronizerFlushIDManager_CheckFlushID_Call) RunAndReturn

type SynchronizerFlushIDManager_Expecter

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

func (*SynchronizerFlushIDManager_Expecter) CheckFlushID

CheckFlushID is a helper method to define mock.On call

  • dbTx pgx.Tx

func (*SynchronizerFlushIDManager_Expecter) PendingFlushID

func (_e *SynchronizerFlushIDManager_Expecter) PendingFlushID(flushID interface{}, proverID interface{}) *SynchronizerFlushIDManager_PendingFlushID_Call

PendingFlushID is a helper method to define mock.On call

  • flushID uint64
  • proverID string

type SynchronizerFlushIDManager_PendingFlushID_Call

type SynchronizerFlushIDManager_PendingFlushID_Call struct {
	*mock.Call
}

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

func (*SynchronizerFlushIDManager_PendingFlushID_Call) Return

func (*SynchronizerFlushIDManager_PendingFlushID_Call) Run

func (*SynchronizerFlushIDManager_PendingFlushID_Call) RunAndReturn

type ZKEVMClientGlobalExitRootGetter

type ZKEVMClientGlobalExitRootGetter struct {
	mock.Mock
}

ZKEVMClientGlobalExitRootGetter is an autogenerated mock type for the ZKEVMClientGlobalExitRootGetter type

func NewZKEVMClientGlobalExitRootGetter

func NewZKEVMClientGlobalExitRootGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ZKEVMClientGlobalExitRootGetter

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

func (*ZKEVMClientGlobalExitRootGetter) ExitRootsByGER

func (_m *ZKEVMClientGlobalExitRootGetter) ExitRootsByGER(ctx context.Context, globalExitRoot common.Hash) (*types.ExitRoots, error)

ExitRootsByGER provides a mock function with given fields: ctx, globalExitRoot

type ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call

type ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call struct {
	*mock.Call
}

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

func (*ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Return

func (*ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) Run

func (*ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call) RunAndReturn

type ZKEVMClientGlobalExitRootGetter_Expecter

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

func (*ZKEVMClientGlobalExitRootGetter_Expecter) ExitRootsByGER

func (_e *ZKEVMClientGlobalExitRootGetter_Expecter) ExitRootsByGER(ctx interface{}, globalExitRoot interface{}) *ZKEVMClientGlobalExitRootGetter_ExitRootsByGER_Call

ExitRootsByGER is a helper method to define mock.On call

  • ctx context.Context
  • globalExitRoot common.Hash

type ZKEVMClientInterface

type ZKEVMClientInterface struct {
	mock.Mock
}

ZKEVMClientInterface is an autogenerated mock type for the ZKEVMClientInterface type

func NewZKEVMClientInterface

func NewZKEVMClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ZKEVMClientInterface

NewZKEVMClientInterface creates a new instance of ZKEVMClientInterface. 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 (*ZKEVMClientInterface) BatchByNumber

func (_m *ZKEVMClientInterface) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)

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

func (*ZKEVMClientInterface) BatchNumber

func (_m *ZKEVMClientInterface) BatchNumber(ctx context.Context) (uint64, error)

BatchNumber provides a mock function with given fields: ctx

func (*ZKEVMClientInterface) EXPECT

func (*ZKEVMClientInterface) ExitRootsByGER

func (_m *ZKEVMClientInterface) ExitRootsByGER(ctx context.Context, globalExitRoot common.Hash) (*types.ExitRoots, error)

ExitRootsByGER provides a mock function with given fields: ctx, globalExitRoot

type ZKEVMClientInterface_BatchByNumber_Call

type ZKEVMClientInterface_BatchByNumber_Call struct {
	*mock.Call
}

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

func (*ZKEVMClientInterface_BatchByNumber_Call) Return

func (*ZKEVMClientInterface_BatchByNumber_Call) Run

func (*ZKEVMClientInterface_BatchByNumber_Call) RunAndReturn

type ZKEVMClientInterface_BatchNumber_Call

type ZKEVMClientInterface_BatchNumber_Call struct {
	*mock.Call
}

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

func (*ZKEVMClientInterface_BatchNumber_Call) Return

func (*ZKEVMClientInterface_BatchNumber_Call) Run

func (*ZKEVMClientInterface_BatchNumber_Call) RunAndReturn

type ZKEVMClientInterface_ExitRootsByGER_Call

type ZKEVMClientInterface_ExitRootsByGER_Call struct {
	*mock.Call
}

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

func (*ZKEVMClientInterface_ExitRootsByGER_Call) Return

func (*ZKEVMClientInterface_ExitRootsByGER_Call) Run

func (*ZKEVMClientInterface_ExitRootsByGER_Call) RunAndReturn

type ZKEVMClientInterface_Expecter

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

func (*ZKEVMClientInterface_Expecter) BatchByNumber

func (_e *ZKEVMClientInterface_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZKEVMClientInterface_BatchByNumber_Call

BatchByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*ZKEVMClientInterface_Expecter) BatchNumber

func (_e *ZKEVMClientInterface_Expecter) BatchNumber(ctx interface{}) *ZKEVMClientInterface_BatchNumber_Call

BatchNumber is a helper method to define mock.On call

  • ctx context.Context

func (*ZKEVMClientInterface_Expecter) ExitRootsByGER

func (_e *ZKEVMClientInterface_Expecter) ExitRootsByGER(ctx interface{}, globalExitRoot interface{}) *ZKEVMClientInterface_ExitRootsByGER_Call

ExitRootsByGER is a helper method to define mock.On call

  • ctx context.Context
  • globalExitRoot common.Hash

type ZKEVMClientTrustedBatchesGetter

type ZKEVMClientTrustedBatchesGetter struct {
	mock.Mock
}

ZKEVMClientTrustedBatchesGetter is an autogenerated mock type for the ZKEVMClientTrustedBatchesGetter type

func NewZKEVMClientTrustedBatchesGetter

func NewZKEVMClientTrustedBatchesGetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ZKEVMClientTrustedBatchesGetter

NewZKEVMClientTrustedBatchesGetter creates a new instance of ZKEVMClientTrustedBatchesGetter. 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 (*ZKEVMClientTrustedBatchesGetter) BatchByNumber

func (_m *ZKEVMClientTrustedBatchesGetter) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error)

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

func (*ZKEVMClientTrustedBatchesGetter) BatchNumber

BatchNumber provides a mock function with given fields: ctx

func (*ZKEVMClientTrustedBatchesGetter) EXPECT

type ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call

type ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call struct {
	*mock.Call
}

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

func (*ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Return

func (*ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Run

func (*ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) RunAndReturn

type ZKEVMClientTrustedBatchesGetter_BatchNumber_Call

type ZKEVMClientTrustedBatchesGetter_BatchNumber_Call struct {
	*mock.Call
}

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

func (*ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Return

func (*ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) Run

func (*ZKEVMClientTrustedBatchesGetter_BatchNumber_Call) RunAndReturn

type ZKEVMClientTrustedBatchesGetter_Expecter

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

func (*ZKEVMClientTrustedBatchesGetter_Expecter) BatchByNumber

func (_e *ZKEVMClientTrustedBatchesGetter_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call

BatchByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*ZKEVMClientTrustedBatchesGetter_Expecter) BatchNumber

BatchNumber is a helper method to define mock.On call

  • ctx context.Context

Jump to

Keyboard shortcuts

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