mocks_da

package
v0.4.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchDataProvider

type BatchDataProvider struct {
	mock.Mock
}

BatchDataProvider is an autogenerated mock type for the BatchDataProvider type

func NewBatchDataProvider

func NewBatchDataProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchDataProvider

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

func (*BatchDataProvider) GetBatchL2Data

func (_m *BatchDataProvider) GetBatchL2Data(batchNum []uint64, batchHashes []common.Hash, dataAvailabilityMessage []byte) ([][]byte, error)

GetBatchL2Data provides a mock function with given fields: batchNum, batchHashes, dataAvailabilityMessage

type BatchDataProvider_Expecter

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

func (*BatchDataProvider_Expecter) GetBatchL2Data

func (_e *BatchDataProvider_Expecter) GetBatchL2Data(batchNum interface{}, batchHashes interface{}, dataAvailabilityMessage interface{}) *BatchDataProvider_GetBatchL2Data_Call

GetBatchL2Data is a helper method to define mock.On call

  • batchNum []uint64
  • batchHashes []common.Hash
  • dataAvailabilityMessage []byte

type BatchDataProvider_GetBatchL2Data_Call

type BatchDataProvider_GetBatchL2Data_Call struct {
	*mock.Call
}

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

func (*BatchDataProvider_GetBatchL2Data_Call) Return

func (*BatchDataProvider_GetBatchL2Data_Call) Run

func (_c *BatchDataProvider_GetBatchL2Data_Call) Run(run func(batchNum []uint64, batchHashes []common.Hash, dataAvailabilityMessage []byte)) *BatchDataProvider_GetBatchL2Data_Call

func (*BatchDataProvider_GetBatchL2Data_Call) RunAndReturn

type DABackender

type DABackender struct {
	mock.Mock
}

DABackender is an autogenerated mock type for the DABackender type

func NewDABackender

func NewDABackender(t interface {
	mock.TestingT
	Cleanup(func())
}) *DABackender

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

func (_m *DABackender) EXPECT() *DABackender_Expecter

func (*DABackender) GetSequence

func (_m *DABackender) GetSequence(ctx context.Context, batchHashes []common.Hash, dataAvailabilityMessage []byte) ([][]byte, error)

GetSequence provides a mock function with given fields: ctx, batchHashes, dataAvailabilityMessage

func (*DABackender) Init

func (_m *DABackender) Init() error

Init provides a mock function with given fields:

func (*DABackender) PostSequenceBanana

func (_m *DABackender) PostSequenceBanana(ctx context.Context, sequence etherman.SequenceBanana) ([]byte, error)

PostSequenceBanana provides a mock function with given fields: ctx, sequence

func (*DABackender) PostSequenceElderberry

func (_m *DABackender) PostSequenceElderberry(ctx context.Context, batchesData [][]byte) ([]byte, error)

PostSequenceElderberry provides a mock function with given fields: ctx, batchesData

type DABackender_Expecter

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

func (*DABackender_Expecter) GetSequence

func (_e *DABackender_Expecter) GetSequence(ctx interface{}, batchHashes interface{}, dataAvailabilityMessage interface{}) *DABackender_GetSequence_Call

GetSequence is a helper method to define mock.On call

  • ctx context.Context
  • batchHashes []common.Hash
  • dataAvailabilityMessage []byte

func (*DABackender_Expecter) Init

Init is a helper method to define mock.On call

func (*DABackender_Expecter) PostSequenceBanana

func (_e *DABackender_Expecter) PostSequenceBanana(ctx interface{}, sequence interface{}) *DABackender_PostSequenceBanana_Call

PostSequenceBanana is a helper method to define mock.On call

  • ctx context.Context
  • sequence etherman.SequenceBanana

func (*DABackender_Expecter) PostSequenceElderberry

func (_e *DABackender_Expecter) PostSequenceElderberry(ctx interface{}, batchesData interface{}) *DABackender_PostSequenceElderberry_Call

PostSequenceElderberry is a helper method to define mock.On call

  • ctx context.Context
  • batchesData [][]byte

type DABackender_GetSequence_Call

type DABackender_GetSequence_Call struct {
	*mock.Call
}

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

func (*DABackender_GetSequence_Call) Return

func (*DABackender_GetSequence_Call) Run

func (_c *DABackender_GetSequence_Call) Run(run func(ctx context.Context, batchHashes []common.Hash, dataAvailabilityMessage []byte)) *DABackender_GetSequence_Call

func (*DABackender_GetSequence_Call) RunAndReturn

type DABackender_Init_Call

type DABackender_Init_Call struct {
	*mock.Call
}

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

func (*DABackender_Init_Call) Return

func (*DABackender_Init_Call) Run

func (_c *DABackender_Init_Call) Run(run func()) *DABackender_Init_Call

func (*DABackender_Init_Call) RunAndReturn

func (_c *DABackender_Init_Call) RunAndReturn(run func() error) *DABackender_Init_Call

type DABackender_PostSequenceBanana_Call

type DABackender_PostSequenceBanana_Call struct {
	*mock.Call
}

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

func (*DABackender_PostSequenceBanana_Call) Return

func (*DABackender_PostSequenceBanana_Call) Run

func (*DABackender_PostSequenceBanana_Call) RunAndReturn

type DABackender_PostSequenceElderberry_Call

type DABackender_PostSequenceElderberry_Call struct {
	*mock.Call
}

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

func (*DABackender_PostSequenceElderberry_Call) Return

func (*DABackender_PostSequenceElderberry_Call) Run

func (*DABackender_PostSequenceElderberry_Call) RunAndReturn

type DataManager

type DataManager struct {
	mock.Mock
}

DataManager is an autogenerated mock type for the DataManager type

func NewDataManager

func NewDataManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataManager

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

func (_m *DataManager) EXPECT() *DataManager_Expecter

func (*DataManager) GetBatchL2Data

func (_m *DataManager) GetBatchL2Data(batchNum []uint64, batchHashes []common.Hash, dataAvailabilityMessage []byte) ([][]byte, error)

GetBatchL2Data provides a mock function with given fields: batchNum, batchHashes, dataAvailabilityMessage

func (*DataManager) PostSequenceBanana

func (_m *DataManager) PostSequenceBanana(ctx context.Context, sequence etherman.SequenceBanana) ([]byte, error)

PostSequenceBanana provides a mock function with given fields: ctx, sequence

func (*DataManager) PostSequenceElderberry

func (_m *DataManager) PostSequenceElderberry(ctx context.Context, batchesData [][]byte) ([]byte, error)

PostSequenceElderberry provides a mock function with given fields: ctx, batchesData

type DataManager_Expecter

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

func (*DataManager_Expecter) GetBatchL2Data

func (_e *DataManager_Expecter) GetBatchL2Data(batchNum interface{}, batchHashes interface{}, dataAvailabilityMessage interface{}) *DataManager_GetBatchL2Data_Call

GetBatchL2Data is a helper method to define mock.On call

  • batchNum []uint64
  • batchHashes []common.Hash
  • dataAvailabilityMessage []byte

func (*DataManager_Expecter) PostSequenceBanana

func (_e *DataManager_Expecter) PostSequenceBanana(ctx interface{}, sequence interface{}) *DataManager_PostSequenceBanana_Call

PostSequenceBanana is a helper method to define mock.On call

  • ctx context.Context
  • sequence etherman.SequenceBanana

func (*DataManager_Expecter) PostSequenceElderberry

func (_e *DataManager_Expecter) PostSequenceElderberry(ctx interface{}, batchesData interface{}) *DataManager_PostSequenceElderberry_Call

PostSequenceElderberry is a helper method to define mock.On call

  • ctx context.Context
  • batchesData [][]byte

type DataManager_GetBatchL2Data_Call

type DataManager_GetBatchL2Data_Call struct {
	*mock.Call
}

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

func (*DataManager_GetBatchL2Data_Call) Return

func (*DataManager_GetBatchL2Data_Call) Run

func (_c *DataManager_GetBatchL2Data_Call) Run(run func(batchNum []uint64, batchHashes []common.Hash, dataAvailabilityMessage []byte)) *DataManager_GetBatchL2Data_Call

func (*DataManager_GetBatchL2Data_Call) RunAndReturn

type DataManager_PostSequenceBanana_Call

type DataManager_PostSequenceBanana_Call struct {
	*mock.Call
}

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

func (*DataManager_PostSequenceBanana_Call) Return

func (*DataManager_PostSequenceBanana_Call) Run

func (*DataManager_PostSequenceBanana_Call) RunAndReturn

type DataManager_PostSequenceElderberry_Call

type DataManager_PostSequenceElderberry_Call struct {
	*mock.Call
}

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

func (*DataManager_PostSequenceElderberry_Call) Return

func (*DataManager_PostSequenceElderberry_Call) Run

func (*DataManager_PostSequenceElderberry_Call) RunAndReturn

type FuncSignType

type FuncSignType struct {
	mock.Mock
}

FuncSignType is an autogenerated mock type for the funcSignType type

func NewFuncSignType

func NewFuncSignType(t interface {
	mock.TestingT
	Cleanup(func())
}) *FuncSignType

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

func (_m *FuncSignType) EXPECT() *FuncSignType_Expecter

func (*FuncSignType) Execute

func (_m *FuncSignType) Execute(c client.Client) ([]byte, error)

Execute provides a mock function with given fields: c

type FuncSignType_Execute_Call

type FuncSignType_Execute_Call struct {
	*mock.Call
}

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

func (*FuncSignType_Execute_Call) Return

func (*FuncSignType_Execute_Call) Run

func (*FuncSignType_Execute_Call) RunAndReturn

func (_c *FuncSignType_Execute_Call) RunAndReturn(run func(client.Client) ([]byte, error)) *FuncSignType_Execute_Call

type FuncSignType_Expecter

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

func (*FuncSignType_Expecter) Execute

func (_e *FuncSignType_Expecter) Execute(c interface{}) *FuncSignType_Execute_Call

Execute is a helper method to define mock.On call

  • c client.Client

type SequenceRetriever

type SequenceRetriever struct {
	mock.Mock
}

SequenceRetriever is an autogenerated mock type for the SequenceRetriever type

func NewSequenceRetriever

func NewSequenceRetriever(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequenceRetriever

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

func (*SequenceRetriever) GetSequence

func (_m *SequenceRetriever) GetSequence(ctx context.Context, batchHashes []common.Hash, dataAvailabilityMessage []byte) ([][]byte, error)

GetSequence provides a mock function with given fields: ctx, batchHashes, dataAvailabilityMessage

type SequenceRetriever_Expecter

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

func (*SequenceRetriever_Expecter) GetSequence

func (_e *SequenceRetriever_Expecter) GetSequence(ctx interface{}, batchHashes interface{}, dataAvailabilityMessage interface{}) *SequenceRetriever_GetSequence_Call

GetSequence is a helper method to define mock.On call

  • ctx context.Context
  • batchHashes []common.Hash
  • dataAvailabilityMessage []byte

type SequenceRetriever_GetSequence_Call

type SequenceRetriever_GetSequence_Call struct {
	*mock.Call
}

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

func (*SequenceRetriever_GetSequence_Call) Return

func (*SequenceRetriever_GetSequence_Call) Run

func (_c *SequenceRetriever_GetSequence_Call) Run(run func(ctx context.Context, batchHashes []common.Hash, dataAvailabilityMessage []byte)) *SequenceRetriever_GetSequence_Call

func (*SequenceRetriever_GetSequence_Call) RunAndReturn

type SequenceSender

type SequenceSender struct {
	mock.Mock
}

SequenceSender is an autogenerated mock type for the SequenceSender type

func NewSequenceSender

func NewSequenceSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequenceSender

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

func (*SequenceSender) PostSequenceBanana

func (_m *SequenceSender) PostSequenceBanana(ctx context.Context, sequence etherman.SequenceBanana) ([]byte, error)

PostSequenceBanana provides a mock function with given fields: ctx, sequence

func (*SequenceSender) PostSequenceElderberry

func (_m *SequenceSender) PostSequenceElderberry(ctx context.Context, batchesData [][]byte) ([]byte, error)

PostSequenceElderberry provides a mock function with given fields: ctx, batchesData

type SequenceSenderBanana

type SequenceSenderBanana struct {
	mock.Mock
}

SequenceSenderBanana is an autogenerated mock type for the SequenceSenderBanana type

func NewSequenceSenderBanana

func NewSequenceSenderBanana(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequenceSenderBanana

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

func (*SequenceSenderBanana) PostSequenceBanana

func (_m *SequenceSenderBanana) PostSequenceBanana(ctx context.Context, sequence etherman.SequenceBanana) ([]byte, error)

PostSequenceBanana provides a mock function with given fields: ctx, sequence

type SequenceSenderBanana_Expecter

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

func (*SequenceSenderBanana_Expecter) PostSequenceBanana

func (_e *SequenceSenderBanana_Expecter) PostSequenceBanana(ctx interface{}, sequence interface{}) *SequenceSenderBanana_PostSequenceBanana_Call

PostSequenceBanana is a helper method to define mock.On call

  • ctx context.Context
  • sequence etherman.SequenceBanana

type SequenceSenderBanana_PostSequenceBanana_Call

type SequenceSenderBanana_PostSequenceBanana_Call struct {
	*mock.Call
}

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

func (*SequenceSenderBanana_PostSequenceBanana_Call) Return

func (*SequenceSenderBanana_PostSequenceBanana_Call) Run

func (*SequenceSenderBanana_PostSequenceBanana_Call) RunAndReturn

type SequenceSenderElderberry

type SequenceSenderElderberry struct {
	mock.Mock
}

SequenceSenderElderberry is an autogenerated mock type for the SequenceSenderElderberry type

func NewSequenceSenderElderberry

func NewSequenceSenderElderberry(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequenceSenderElderberry

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

func (*SequenceSenderElderberry) PostSequenceElderberry

func (_m *SequenceSenderElderberry) PostSequenceElderberry(ctx context.Context, batchesData [][]byte) ([]byte, error)

PostSequenceElderberry provides a mock function with given fields: ctx, batchesData

type SequenceSenderElderberry_Expecter

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

func (*SequenceSenderElderberry_Expecter) PostSequenceElderberry

func (_e *SequenceSenderElderberry_Expecter) PostSequenceElderberry(ctx interface{}, batchesData interface{}) *SequenceSenderElderberry_PostSequenceElderberry_Call

PostSequenceElderberry is a helper method to define mock.On call

  • ctx context.Context
  • batchesData [][]byte

type SequenceSenderElderberry_PostSequenceElderberry_Call

type SequenceSenderElderberry_PostSequenceElderberry_Call struct {
	*mock.Call
}

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

func (*SequenceSenderElderberry_PostSequenceElderberry_Call) Return

func (*SequenceSenderElderberry_PostSequenceElderberry_Call) Run

func (*SequenceSenderElderberry_PostSequenceElderberry_Call) RunAndReturn

type SequenceSender_Expecter

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

func (*SequenceSender_Expecter) PostSequenceBanana

func (_e *SequenceSender_Expecter) PostSequenceBanana(ctx interface{}, sequence interface{}) *SequenceSender_PostSequenceBanana_Call

PostSequenceBanana is a helper method to define mock.On call

  • ctx context.Context
  • sequence etherman.SequenceBanana

func (*SequenceSender_Expecter) PostSequenceElderberry

func (_e *SequenceSender_Expecter) PostSequenceElderberry(ctx interface{}, batchesData interface{}) *SequenceSender_PostSequenceElderberry_Call

PostSequenceElderberry is a helper method to define mock.On call

  • ctx context.Context
  • batchesData [][]byte

type SequenceSender_PostSequenceBanana_Call

type SequenceSender_PostSequenceBanana_Call struct {
	*mock.Call
}

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

func (*SequenceSender_PostSequenceBanana_Call) Return

func (*SequenceSender_PostSequenceBanana_Call) Run

func (*SequenceSender_PostSequenceBanana_Call) RunAndReturn

type SequenceSender_PostSequenceElderberry_Call

type SequenceSender_PostSequenceElderberry_Call struct {
	*mock.Call
}

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

func (*SequenceSender_PostSequenceElderberry_Call) Return

func (*SequenceSender_PostSequenceElderberry_Call) Run

func (*SequenceSender_PostSequenceElderberry_Call) RunAndReturn

Jump to

Keyboard shortcuts

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