mock_elderberry

package
v0.6.8-RC6 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreviousProcessor

type PreviousProcessor struct {
	mock.Mock
}

PreviousProcessor is an autogenerated mock type for the PreviousProcessor type

func NewPreviousProcessor

func NewPreviousProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *PreviousProcessor

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

func (*PreviousProcessor) Process

func (_m *PreviousProcessor) Process(ctx context.Context, order etherman.Order, l1Block *etherman.Block, dbTx pgx.Tx) error

Process provides a mock function with given fields: ctx, order, l1Block, dbTx

func (*PreviousProcessor) ProcessSequenceBatches

func (_m *PreviousProcessor) ProcessSequenceBatches(ctx context.Context, sequencedBatches []etherman.SequencedBatch, blockNumber uint64, l1BlockTimestamp time.Time, dbTx pgx.Tx) error

ProcessSequenceBatches provides a mock function with given fields: ctx, sequencedBatches, blockNumber, l1BlockTimestamp, dbTx

type PreviousProcessor_Expecter

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

func (*PreviousProcessor_Expecter) Process

func (_e *PreviousProcessor_Expecter) Process(ctx interface{}, order interface{}, l1Block interface{}, dbTx interface{}) *PreviousProcessor_Process_Call

Process is a helper method to define mock.On call

  • ctx context.Context
  • order etherman.Order
  • l1Block *etherman.Block
  • dbTx pgx.Tx

func (*PreviousProcessor_Expecter) ProcessSequenceBatches

func (_e *PreviousProcessor_Expecter) ProcessSequenceBatches(ctx interface{}, sequencedBatches interface{}, blockNumber interface{}, l1BlockTimestamp interface{}, dbTx interface{}) *PreviousProcessor_ProcessSequenceBatches_Call

ProcessSequenceBatches is a helper method to define mock.On call

  • ctx context.Context
  • sequencedBatches []etherman.SequencedBatch
  • blockNumber uint64
  • l1BlockTimestamp time.Time
  • dbTx pgx.Tx

type PreviousProcessor_ProcessSequenceBatches_Call

type PreviousProcessor_ProcessSequenceBatches_Call struct {
	*mock.Call
}

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

func (*PreviousProcessor_ProcessSequenceBatches_Call) Return

func (*PreviousProcessor_ProcessSequenceBatches_Call) Run

func (_c *PreviousProcessor_ProcessSequenceBatches_Call) Run(run func(ctx context.Context, sequencedBatches []etherman.SequencedBatch, blockNumber uint64, l1BlockTimestamp time.Time, dbTx pgx.Tx)) *PreviousProcessor_ProcessSequenceBatches_Call

func (*PreviousProcessor_ProcessSequenceBatches_Call) RunAndReturn

type PreviousProcessor_Process_Call

type PreviousProcessor_Process_Call struct {
	*mock.Call
}

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

func (*PreviousProcessor_Process_Call) Return

func (*PreviousProcessor_Process_Call) Run

func (*PreviousProcessor_Process_Call) RunAndReturn

type StateL1SequenceBatchesElderberry

type StateL1SequenceBatchesElderberry struct {
	mock.Mock
}

StateL1SequenceBatchesElderberry is an autogenerated mock type for the StateL1SequenceBatchesElderberry type

func NewStateL1SequenceBatchesElderberry

func NewStateL1SequenceBatchesElderberry(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateL1SequenceBatchesElderberry

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

func (*StateL1SequenceBatchesElderberry) GetLastL2BlockByBatchNumber

func (_m *StateL1SequenceBatchesElderberry) GetLastL2BlockByBatchNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.L2Block, error)

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

func (*StateL1SequenceBatchesElderberry) GetLastVirtualBatchNum

func (_m *StateL1SequenceBatchesElderberry) GetLastVirtualBatchNum(ctx context.Context, dbTx pgx.Tx) (uint64, error)

GetLastVirtualBatchNum provides a mock function with given fields: ctx, dbTx

type StateL1SequenceBatchesElderberry_Expecter

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

func (*StateL1SequenceBatchesElderberry_Expecter) GetLastL2BlockByBatchNumber

func (_e *StateL1SequenceBatchesElderberry_Expecter) GetLastL2BlockByBatchNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call

GetLastL2BlockByBatchNumber is a helper method to define mock.On call

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

func (*StateL1SequenceBatchesElderberry_Expecter) GetLastVirtualBatchNum

func (_e *StateL1SequenceBatchesElderberry_Expecter) GetLastVirtualBatchNum(ctx interface{}, dbTx interface{}) *StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call

GetLastVirtualBatchNum is a helper method to define mock.On call

  • ctx context.Context
  • dbTx pgx.Tx

type StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call

type StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call struct {
	*mock.Call
}

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

func (*StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) Return

func (*StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) Run

func (*StateL1SequenceBatchesElderberry_GetLastL2BlockByBatchNumber_Call) RunAndReturn

type StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call

type StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call struct {
	*mock.Call
}

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

func (*StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) Return

func (*StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) Run

func (*StateL1SequenceBatchesElderberry_GetLastVirtualBatchNum_Call) RunAndReturn

Jump to

Keyboard shortcuts

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