mocks

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mocks provides mock implementations for testing. This file contains a manual mock that combines Executor and HeightProvider interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBatch

type MockBatch struct {
	mock.Mock
}

MockBatch is an autogenerated mock type for the Batch type

func NewMockBatch

func NewMockBatch(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBatch

NewMockBatch creates a new instance of MockBatch. 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 (*MockBatch) Commit

func (_mock *MockBatch) Commit() error

Commit provides a mock function for the type MockBatch

func (*MockBatch) Delete

func (_mock *MockBatch) Delete(key datastore.Key) error

Delete provides a mock function for the type MockBatch

func (*MockBatch) EXPECT

func (_m *MockBatch) EXPECT() *MockBatch_Expecter

func (*MockBatch) Put

func (_mock *MockBatch) Put(key datastore.Key, value []byte) error

Put provides a mock function for the type MockBatch

func (*MockBatch) SaveBlockData

func (_mock *MockBatch) SaveBlockData(header *types.SignedHeader, data *types.Data, signature *types.Signature) error

SaveBlockData provides a mock function for the type MockBatch

func (*MockBatch) SetHeight

func (_mock *MockBatch) SetHeight(height uint64) error

SetHeight provides a mock function for the type MockBatch

func (*MockBatch) UpdateState

func (_mock *MockBatch) UpdateState(state types.State) error

UpdateState provides a mock function for the type MockBatch

type MockBatch_Commit_Call

type MockBatch_Commit_Call struct {
	*mock.Call
}

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

func (*MockBatch_Commit_Call) Return

func (*MockBatch_Commit_Call) Run

func (_c *MockBatch_Commit_Call) Run(run func()) *MockBatch_Commit_Call

func (*MockBatch_Commit_Call) RunAndReturn

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

type MockBatch_Delete_Call

type MockBatch_Delete_Call struct {
	*mock.Call
}

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

func (*MockBatch_Delete_Call) Return

func (*MockBatch_Delete_Call) Run

func (_c *MockBatch_Delete_Call) Run(run func(key datastore.Key)) *MockBatch_Delete_Call

func (*MockBatch_Delete_Call) RunAndReturn

func (_c *MockBatch_Delete_Call) RunAndReturn(run func(key datastore.Key) error) *MockBatch_Delete_Call

type MockBatch_Expecter

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

func (*MockBatch_Expecter) Commit

Commit is a helper method to define mock.On call

func (*MockBatch_Expecter) Delete

func (_e *MockBatch_Expecter) Delete(key interface{}) *MockBatch_Delete_Call

Delete is a helper method to define mock.On call

  • key datastore.Key

func (*MockBatch_Expecter) Put

func (_e *MockBatch_Expecter) Put(key interface{}, value interface{}) *MockBatch_Put_Call

Put is a helper method to define mock.On call

  • key datastore.Key
  • value []byte

func (*MockBatch_Expecter) SaveBlockData

func (_e *MockBatch_Expecter) SaveBlockData(header interface{}, data interface{}, signature interface{}) *MockBatch_SaveBlockData_Call

SaveBlockData is a helper method to define mock.On call

  • header *types.SignedHeader
  • data *types.Data
  • signature *types.Signature

func (*MockBatch_Expecter) SetHeight

func (_e *MockBatch_Expecter) SetHeight(height interface{}) *MockBatch_SetHeight_Call

SetHeight is a helper method to define mock.On call

  • height uint64

func (*MockBatch_Expecter) UpdateState

func (_e *MockBatch_Expecter) UpdateState(state interface{}) *MockBatch_UpdateState_Call

UpdateState is a helper method to define mock.On call

  • state types.State

type MockBatch_Put_Call

type MockBatch_Put_Call struct {
	*mock.Call
}

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

func (*MockBatch_Put_Call) Return

func (_c *MockBatch_Put_Call) Return(err error) *MockBatch_Put_Call

func (*MockBatch_Put_Call) Run

func (_c *MockBatch_Put_Call) Run(run func(key datastore.Key, value []byte)) *MockBatch_Put_Call

func (*MockBatch_Put_Call) RunAndReturn

func (_c *MockBatch_Put_Call) RunAndReturn(run func(key datastore.Key, value []byte) error) *MockBatch_Put_Call

type MockBatch_SaveBlockData_Call

type MockBatch_SaveBlockData_Call struct {
	*mock.Call
}

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

func (*MockBatch_SaveBlockData_Call) Return

func (*MockBatch_SaveBlockData_Call) Run

func (*MockBatch_SaveBlockData_Call) RunAndReturn

func (_c *MockBatch_SaveBlockData_Call) RunAndReturn(run func(header *types.SignedHeader, data *types.Data, signature *types.Signature) error) *MockBatch_SaveBlockData_Call

type MockBatch_SetHeight_Call

type MockBatch_SetHeight_Call struct {
	*mock.Call
}

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

func (*MockBatch_SetHeight_Call) Return

func (*MockBatch_SetHeight_Call) Run

func (_c *MockBatch_SetHeight_Call) Run(run func(height uint64)) *MockBatch_SetHeight_Call

func (*MockBatch_SetHeight_Call) RunAndReturn

func (_c *MockBatch_SetHeight_Call) RunAndReturn(run func(height uint64) error) *MockBatch_SetHeight_Call

type MockBatch_UpdateState_Call

type MockBatch_UpdateState_Call struct {
	*mock.Call
}

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

func (*MockBatch_UpdateState_Call) Return

func (*MockBatch_UpdateState_Call) Run

func (*MockBatch_UpdateState_Call) RunAndReturn

func (_c *MockBatch_UpdateState_Call) RunAndReturn(run func(state types.State) error) *MockBatch_UpdateState_Call

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

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

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) Get

func (_mock *MockClient) Get(ctx context.Context, ids []da.ID, namespace []byte) ([]da.Blob, error)

Get provides a mock function for the type MockClient

func (*MockClient) GetDataNamespace

func (_mock *MockClient) GetDataNamespace() []byte

GetDataNamespace provides a mock function for the type MockClient

func (*MockClient) GetForcedInclusionNamespace

func (_mock *MockClient) GetForcedInclusionNamespace() []byte

GetForcedInclusionNamespace provides a mock function for the type MockClient

func (*MockClient) GetHeaderNamespace

func (_mock *MockClient) GetHeaderNamespace() []byte

GetHeaderNamespace provides a mock function for the type MockClient

func (*MockClient) HasForcedInclusionNamespace

func (_mock *MockClient) HasForcedInclusionNamespace() bool

HasForcedInclusionNamespace provides a mock function for the type MockClient

func (*MockClient) Retrieve

func (_mock *MockClient) Retrieve(ctx context.Context, height uint64, namespace []byte) da.ResultRetrieve

Retrieve provides a mock function for the type MockClient

func (*MockClient) Submit

func (_mock *MockClient) Submit(ctx context.Context, data [][]byte, gasPrice float64, namespace []byte, options []byte) da.ResultSubmit

Submit provides a mock function for the type MockClient

type MockClient_Expecter

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

func (*MockClient_Expecter) Get

func (_e *MockClient_Expecter) Get(ctx interface{}, ids interface{}, namespace interface{}) *MockClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • ids []da.ID
  • namespace []byte

func (*MockClient_Expecter) GetDataNamespace

func (_e *MockClient_Expecter) GetDataNamespace() *MockClient_GetDataNamespace_Call

GetDataNamespace is a helper method to define mock.On call

func (*MockClient_Expecter) GetForcedInclusionNamespace

func (_e *MockClient_Expecter) GetForcedInclusionNamespace() *MockClient_GetForcedInclusionNamespace_Call

GetForcedInclusionNamespace is a helper method to define mock.On call

func (*MockClient_Expecter) GetHeaderNamespace

func (_e *MockClient_Expecter) GetHeaderNamespace() *MockClient_GetHeaderNamespace_Call

GetHeaderNamespace is a helper method to define mock.On call

func (*MockClient_Expecter) HasForcedInclusionNamespace

func (_e *MockClient_Expecter) HasForcedInclusionNamespace() *MockClient_HasForcedInclusionNamespace_Call

HasForcedInclusionNamespace is a helper method to define mock.On call

func (*MockClient_Expecter) Retrieve

func (_e *MockClient_Expecter) Retrieve(ctx interface{}, height interface{}, namespace interface{}) *MockClient_Retrieve_Call

Retrieve is a helper method to define mock.On call

  • ctx context.Context
  • height uint64
  • namespace []byte

func (*MockClient_Expecter) Submit

func (_e *MockClient_Expecter) Submit(ctx interface{}, data interface{}, gasPrice interface{}, namespace interface{}, options interface{}) *MockClient_Submit_Call

Submit is a helper method to define mock.On call

  • ctx context.Context
  • data [][]byte
  • gasPrice float64
  • namespace []byte
  • options []byte

type MockClient_GetDataNamespace_Call

type MockClient_GetDataNamespace_Call struct {
	*mock.Call
}

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

func (*MockClient_GetDataNamespace_Call) Return

func (*MockClient_GetDataNamespace_Call) Run

func (*MockClient_GetDataNamespace_Call) RunAndReturn

type MockClient_GetForcedInclusionNamespace_Call

type MockClient_GetForcedInclusionNamespace_Call struct {
	*mock.Call
}

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

func (*MockClient_GetForcedInclusionNamespace_Call) Return

func (*MockClient_GetForcedInclusionNamespace_Call) Run

func (*MockClient_GetForcedInclusionNamespace_Call) RunAndReturn

type MockClient_GetHeaderNamespace_Call

type MockClient_GetHeaderNamespace_Call struct {
	*mock.Call
}

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

func (*MockClient_GetHeaderNamespace_Call) Return

func (*MockClient_GetHeaderNamespace_Call) Run

func (*MockClient_GetHeaderNamespace_Call) RunAndReturn

type MockClient_Get_Call

type MockClient_Get_Call struct {
	*mock.Call
}

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

func (*MockClient_Get_Call) Return

func (_c *MockClient_Get_Call) Return(vs []da.Blob, err error) *MockClient_Get_Call

func (*MockClient_Get_Call) Run

func (_c *MockClient_Get_Call) Run(run func(ctx context.Context, ids []da.ID, namespace []byte)) *MockClient_Get_Call

func (*MockClient_Get_Call) RunAndReturn

func (_c *MockClient_Get_Call) RunAndReturn(run func(ctx context.Context, ids []da.ID, namespace []byte) ([]da.Blob, error)) *MockClient_Get_Call

type MockClient_HasForcedInclusionNamespace_Call

type MockClient_HasForcedInclusionNamespace_Call struct {
	*mock.Call
}

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

func (*MockClient_HasForcedInclusionNamespace_Call) Return

func (*MockClient_HasForcedInclusionNamespace_Call) Run

func (*MockClient_HasForcedInclusionNamespace_Call) RunAndReturn

type MockClient_Retrieve_Call

type MockClient_Retrieve_Call struct {
	*mock.Call
}

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

func (*MockClient_Retrieve_Call) Return

func (_c *MockClient_Retrieve_Call) Return(resultRetrieve da.ResultRetrieve) *MockClient_Retrieve_Call

func (*MockClient_Retrieve_Call) Run

func (_c *MockClient_Retrieve_Call) Run(run func(ctx context.Context, height uint64, namespace []byte)) *MockClient_Retrieve_Call

func (*MockClient_Retrieve_Call) RunAndReturn

func (_c *MockClient_Retrieve_Call) RunAndReturn(run func(ctx context.Context, height uint64, namespace []byte) da.ResultRetrieve) *MockClient_Retrieve_Call

type MockClient_Submit_Call

type MockClient_Submit_Call struct {
	*mock.Call
}

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

func (*MockClient_Submit_Call) Return

func (_c *MockClient_Submit_Call) Return(resultSubmit da.ResultSubmit) *MockClient_Submit_Call

func (*MockClient_Submit_Call) Run

func (_c *MockClient_Submit_Call) Run(run func(ctx context.Context, data [][]byte, gasPrice float64, namespace []byte, options []byte)) *MockClient_Submit_Call

func (*MockClient_Submit_Call) RunAndReturn

func (_c *MockClient_Submit_Call) RunAndReturn(run func(ctx context.Context, data [][]byte, gasPrice float64, namespace []byte, options []byte) da.ResultSubmit) *MockClient_Submit_Call

type MockExecutor

type MockExecutor struct {
	mock.Mock
}

MockExecutor is an autogenerated mock type for the Executor type

func NewMockExecutor

func NewMockExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExecutor

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

func (_m *MockExecutor) EXPECT() *MockExecutor_Expecter

func (*MockExecutor) ExecuteTxs

func (_mock *MockExecutor) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte) ([]byte, error)

ExecuteTxs provides a mock function for the type MockExecutor

func (*MockExecutor) FilterTxs

func (_mock *MockExecutor) FilterTxs(ctx context.Context, txs [][]byte, maxBytes uint64, maxGas uint64, hasForceIncludedTransaction bool) ([]execution.FilterStatus, error)

FilterTxs provides a mock function for the type MockExecutor

func (*MockExecutor) GetExecutionInfo

func (_mock *MockExecutor) GetExecutionInfo(ctx context.Context) (execution.ExecutionInfo, error)

GetExecutionInfo provides a mock function for the type MockExecutor

func (*MockExecutor) GetTxs

func (_mock *MockExecutor) GetTxs(ctx context.Context) ([][]byte, error)

GetTxs provides a mock function for the type MockExecutor

func (*MockExecutor) InitChain

func (_mock *MockExecutor) InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, chainID string) ([]byte, error)

InitChain provides a mock function for the type MockExecutor

func (*MockExecutor) SetFinal

func (_mock *MockExecutor) SetFinal(ctx context.Context, blockHeight uint64) error

SetFinal provides a mock function for the type MockExecutor

type MockExecutor_ExecuteTxs_Call

type MockExecutor_ExecuteTxs_Call struct {
	*mock.Call
}

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

func (*MockExecutor_ExecuteTxs_Call) Return

func (_c *MockExecutor_ExecuteTxs_Call) Return(updatedStateRoot []byte, err error) *MockExecutor_ExecuteTxs_Call

func (*MockExecutor_ExecuteTxs_Call) Run

func (_c *MockExecutor_ExecuteTxs_Call) Run(run func(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte)) *MockExecutor_ExecuteTxs_Call

func (*MockExecutor_ExecuteTxs_Call) RunAndReturn

func (_c *MockExecutor_ExecuteTxs_Call) RunAndReturn(run func(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte) ([]byte, error)) *MockExecutor_ExecuteTxs_Call

type MockExecutor_Expecter

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

func (*MockExecutor_Expecter) ExecuteTxs

func (_e *MockExecutor_Expecter) ExecuteTxs(ctx interface{}, txs interface{}, blockHeight interface{}, timestamp interface{}, prevStateRoot interface{}) *MockExecutor_ExecuteTxs_Call

ExecuteTxs is a helper method to define mock.On call

  • ctx context.Context
  • txs [][]byte
  • blockHeight uint64
  • timestamp time.Time
  • prevStateRoot []byte

func (*MockExecutor_Expecter) FilterTxs

func (_e *MockExecutor_Expecter) FilterTxs(ctx interface{}, txs interface{}, maxBytes interface{}, maxGas interface{}, hasForceIncludedTransaction interface{}) *MockExecutor_FilterTxs_Call

FilterTxs is a helper method to define mock.On call

  • ctx context.Context
  • txs [][]byte
  • maxBytes uint64
  • maxGas uint64
  • hasForceIncludedTransaction bool

func (*MockExecutor_Expecter) GetExecutionInfo

func (_e *MockExecutor_Expecter) GetExecutionInfo(ctx interface{}) *MockExecutor_GetExecutionInfo_Call

GetExecutionInfo is a helper method to define mock.On call

  • ctx context.Context

func (*MockExecutor_Expecter) GetTxs

func (_e *MockExecutor_Expecter) GetTxs(ctx interface{}) *MockExecutor_GetTxs_Call

GetTxs is a helper method to define mock.On call

  • ctx context.Context

func (*MockExecutor_Expecter) InitChain

func (_e *MockExecutor_Expecter) InitChain(ctx interface{}, genesisTime interface{}, initialHeight interface{}, chainID interface{}) *MockExecutor_InitChain_Call

InitChain is a helper method to define mock.On call

  • ctx context.Context
  • genesisTime time.Time
  • initialHeight uint64
  • chainID string

func (*MockExecutor_Expecter) SetFinal

func (_e *MockExecutor_Expecter) SetFinal(ctx interface{}, blockHeight interface{}) *MockExecutor_SetFinal_Call

SetFinal is a helper method to define mock.On call

  • ctx context.Context
  • blockHeight uint64

type MockExecutor_FilterTxs_Call

type MockExecutor_FilterTxs_Call struct {
	*mock.Call
}

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

func (*MockExecutor_FilterTxs_Call) Return

func (*MockExecutor_FilterTxs_Call) Run

func (_c *MockExecutor_FilterTxs_Call) Run(run func(ctx context.Context, txs [][]byte, maxBytes uint64, maxGas uint64, hasForceIncludedTransaction bool)) *MockExecutor_FilterTxs_Call

func (*MockExecutor_FilterTxs_Call) RunAndReturn

func (_c *MockExecutor_FilterTxs_Call) RunAndReturn(run func(ctx context.Context, txs [][]byte, maxBytes uint64, maxGas uint64, hasForceIncludedTransaction bool) ([]execution.FilterStatus, error)) *MockExecutor_FilterTxs_Call

type MockExecutor_GetExecutionInfo_Call

type MockExecutor_GetExecutionInfo_Call struct {
	*mock.Call
}

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

func (*MockExecutor_GetExecutionInfo_Call) Return

func (*MockExecutor_GetExecutionInfo_Call) Run

func (*MockExecutor_GetExecutionInfo_Call) RunAndReturn

type MockExecutor_GetTxs_Call

type MockExecutor_GetTxs_Call struct {
	*mock.Call
}

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

func (*MockExecutor_GetTxs_Call) Return

func (_c *MockExecutor_GetTxs_Call) Return(bytess [][]byte, err error) *MockExecutor_GetTxs_Call

func (*MockExecutor_GetTxs_Call) Run

func (*MockExecutor_GetTxs_Call) RunAndReturn

func (_c *MockExecutor_GetTxs_Call) RunAndReturn(run func(ctx context.Context) ([][]byte, error)) *MockExecutor_GetTxs_Call

type MockExecutor_InitChain_Call

type MockExecutor_InitChain_Call struct {
	*mock.Call
}

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

func (*MockExecutor_InitChain_Call) Return

func (_c *MockExecutor_InitChain_Call) Return(stateRoot []byte, err error) *MockExecutor_InitChain_Call

func (*MockExecutor_InitChain_Call) Run

func (_c *MockExecutor_InitChain_Call) Run(run func(ctx context.Context, genesisTime time.Time, initialHeight uint64, chainID string)) *MockExecutor_InitChain_Call

func (*MockExecutor_InitChain_Call) RunAndReturn

func (_c *MockExecutor_InitChain_Call) RunAndReturn(run func(ctx context.Context, genesisTime time.Time, initialHeight uint64, chainID string) ([]byte, error)) *MockExecutor_InitChain_Call

type MockExecutor_SetFinal_Call

type MockExecutor_SetFinal_Call struct {
	*mock.Call
}

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

func (*MockExecutor_SetFinal_Call) Return

func (*MockExecutor_SetFinal_Call) Run

func (_c *MockExecutor_SetFinal_Call) Run(run func(ctx context.Context, blockHeight uint64)) *MockExecutor_SetFinal_Call

func (*MockExecutor_SetFinal_Call) RunAndReturn

func (_c *MockExecutor_SetFinal_Call) RunAndReturn(run func(ctx context.Context, blockHeight uint64) error) *MockExecutor_SetFinal_Call

type MockHeightAwareExecutor

type MockHeightAwareExecutor struct {
	mock.Mock
}

MockHeightAwareExecutor is a mock that implements Executor and HeightProvider interfaces. This allows testing code that needs an executor with height awareness capability.

func NewMockHeightAwareExecutor

func NewMockHeightAwareExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHeightAwareExecutor

NewMockHeightAwareExecutor creates a new instance of MockHeightAwareExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockHeightAwareExecutor) ExecuteTxs

func (m *MockHeightAwareExecutor) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, prevStateRoot []byte) ([]byte, error)

ExecuteTxs implements the Executor interface.

func (*MockHeightAwareExecutor) FilterTxs

func (m *MockHeightAwareExecutor) FilterTxs(ctx context.Context, txs [][]byte, maxBytes, maxGas uint64, hasForceIncludedTransaction bool) ([]execution.FilterStatus, error)

FilterTxs implements the Executor interface.

func (*MockHeightAwareExecutor) GetExecutionInfo

GetExecutionInfo implements the Executor interface.

func (*MockHeightAwareExecutor) GetLatestHeight

func (m *MockHeightAwareExecutor) GetLatestHeight(ctx context.Context) (uint64, error)

GetLatestHeight implements the HeightProvider interface.

func (*MockHeightAwareExecutor) GetTxs

func (m *MockHeightAwareExecutor) GetTxs(ctx context.Context) ([][]byte, error)

GetTxs implements the Executor interface.

func (*MockHeightAwareExecutor) InitChain

func (m *MockHeightAwareExecutor) InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, chainID string) ([]byte, error)

InitChain implements the Executor interface.

func (*MockHeightAwareExecutor) SetFinal

func (m *MockHeightAwareExecutor) SetFinal(ctx context.Context, blockHeight uint64) error

SetFinal implements the Executor interface.

type MockP2PRPC

type MockP2PRPC struct {
	mock.Mock
}

MockP2PRPC is an autogenerated mock type for the P2PRPC type

func NewMockP2PRPC

func NewMockP2PRPC(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockP2PRPC

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

func (_m *MockP2PRPC) EXPECT() *MockP2PRPC_Expecter

func (*MockP2PRPC) GetNetworkInfo

func (_mock *MockP2PRPC) GetNetworkInfo() (p2p.NetworkInfo, error)

GetNetworkInfo provides a mock function for the type MockP2PRPC

func (*MockP2PRPC) GetPeers

func (_mock *MockP2PRPC) GetPeers() ([]peer.AddrInfo, error)

GetPeers provides a mock function for the type MockP2PRPC

type MockP2PRPC_Expecter

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

func (*MockP2PRPC_Expecter) GetNetworkInfo

GetNetworkInfo is a helper method to define mock.On call

func (*MockP2PRPC_Expecter) GetPeers

GetPeers is a helper method to define mock.On call

type MockP2PRPC_GetNetworkInfo_Call

type MockP2PRPC_GetNetworkInfo_Call struct {
	*mock.Call
}

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

func (*MockP2PRPC_GetNetworkInfo_Call) Return

func (*MockP2PRPC_GetNetworkInfo_Call) Run

func (*MockP2PRPC_GetNetworkInfo_Call) RunAndReturn

type MockP2PRPC_GetPeers_Call

type MockP2PRPC_GetPeers_Call struct {
	*mock.Call
}

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

func (*MockP2PRPC_GetPeers_Call) Return

func (*MockP2PRPC_GetPeers_Call) Run

func (*MockP2PRPC_GetPeers_Call) RunAndReturn

func (_c *MockP2PRPC_GetPeers_Call) RunAndReturn(run func() ([]peer.AddrInfo, error)) *MockP2PRPC_GetPeers_Call

type MockSequencer

type MockSequencer struct {
	mock.Mock
}

MockSequencer is an autogenerated mock type for the Sequencer type

func NewMockSequencer

func NewMockSequencer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSequencer

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

func (_m *MockSequencer) EXPECT() *MockSequencer_Expecter

func (*MockSequencer) GetDAHeight

func (_mock *MockSequencer) GetDAHeight() uint64

GetDAHeight provides a mock function for the type MockSequencer

func (*MockSequencer) GetNextBatch

GetNextBatch provides a mock function for the type MockSequencer

func (*MockSequencer) SetDAHeight

func (_mock *MockSequencer) SetDAHeight(height uint64)

SetDAHeight provides a mock function for the type MockSequencer

func (*MockSequencer) SubmitBatchTxs

SubmitBatchTxs provides a mock function for the type MockSequencer

func (*MockSequencer) VerifyBatch

VerifyBatch provides a mock function for the type MockSequencer

type MockSequencer_Expecter

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

func (*MockSequencer_Expecter) GetDAHeight

GetDAHeight is a helper method to define mock.On call

func (*MockSequencer_Expecter) GetNextBatch

func (_e *MockSequencer_Expecter) GetNextBatch(ctx interface{}, req interface{}) *MockSequencer_GetNextBatch_Call

GetNextBatch is a helper method to define mock.On call

  • ctx context.Context
  • req sequencer.GetNextBatchRequest

func (*MockSequencer_Expecter) SetDAHeight

func (_e *MockSequencer_Expecter) SetDAHeight(height interface{}) *MockSequencer_SetDAHeight_Call

SetDAHeight is a helper method to define mock.On call

  • height uint64

func (*MockSequencer_Expecter) SubmitBatchTxs

func (_e *MockSequencer_Expecter) SubmitBatchTxs(ctx interface{}, req interface{}) *MockSequencer_SubmitBatchTxs_Call

SubmitBatchTxs is a helper method to define mock.On call

  • ctx context.Context
  • req sequencer.SubmitBatchTxsRequest

func (*MockSequencer_Expecter) VerifyBatch

func (_e *MockSequencer_Expecter) VerifyBatch(ctx interface{}, req interface{}) *MockSequencer_VerifyBatch_Call

VerifyBatch is a helper method to define mock.On call

  • ctx context.Context
  • req sequencer.VerifyBatchRequest

type MockSequencer_GetDAHeight_Call

type MockSequencer_GetDAHeight_Call struct {
	*mock.Call
}

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

func (*MockSequencer_GetDAHeight_Call) Return

func (*MockSequencer_GetDAHeight_Call) Run

func (*MockSequencer_GetDAHeight_Call) RunAndReturn

type MockSequencer_GetNextBatch_Call

type MockSequencer_GetNextBatch_Call struct {
	*mock.Call
}

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

func (*MockSequencer_GetNextBatch_Call) Return

func (*MockSequencer_GetNextBatch_Call) Run

type MockSequencer_SetDAHeight_Call

type MockSequencer_SetDAHeight_Call struct {
	*mock.Call
}

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

func (*MockSequencer_SetDAHeight_Call) Return

func (*MockSequencer_SetDAHeight_Call) Run

func (*MockSequencer_SetDAHeight_Call) RunAndReturn

func (_c *MockSequencer_SetDAHeight_Call) RunAndReturn(run func(height uint64)) *MockSequencer_SetDAHeight_Call

type MockSequencer_SubmitBatchTxs_Call

type MockSequencer_SubmitBatchTxs_Call struct {
	*mock.Call
}

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

func (*MockSequencer_SubmitBatchTxs_Call) Return

func (*MockSequencer_SubmitBatchTxs_Call) Run

type MockSequencer_VerifyBatch_Call

type MockSequencer_VerifyBatch_Call struct {
	*mock.Call
}

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

func (*MockSequencer_VerifyBatch_Call) Return

func (*MockSequencer_VerifyBatch_Call) Run

func (*MockSequencer_VerifyBatch_Call) RunAndReturn

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStore

NewMockStore creates a new instance of MockStore. 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 (*MockStore) Close

func (_mock *MockStore) Close() error

Close provides a mock function for the type MockStore

func (*MockStore) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

func (*MockStore) GetBlockByHash

func (_mock *MockStore) GetBlockByHash(ctx context.Context, hash []byte) (*types.SignedHeader, *types.Data, error)

GetBlockByHash provides a mock function for the type MockStore

func (*MockStore) GetBlockData

func (_mock *MockStore) GetBlockData(ctx context.Context, height uint64) (*types.SignedHeader, *types.Data, error)

GetBlockData provides a mock function for the type MockStore

func (*MockStore) GetHeader

func (_mock *MockStore) GetHeader(ctx context.Context, height uint64) (*types.SignedHeader, error)

GetHeader provides a mock function for the type MockStore

func (*MockStore) GetMetadata

func (_mock *MockStore) GetMetadata(ctx context.Context, key string) ([]byte, error)

GetMetadata provides a mock function for the type MockStore

func (*MockStore) GetSignature

func (_mock *MockStore) GetSignature(ctx context.Context, height uint64) (*types.Signature, error)

GetSignature provides a mock function for the type MockStore

func (*MockStore) GetSignatureByHash

func (_mock *MockStore) GetSignatureByHash(ctx context.Context, hash []byte) (*types.Signature, error)

GetSignatureByHash provides a mock function for the type MockStore

func (*MockStore) GetState

func (_mock *MockStore) GetState(ctx context.Context) (types.State, error)

GetState provides a mock function for the type MockStore

func (*MockStore) GetStateAtHeight

func (_mock *MockStore) GetStateAtHeight(ctx context.Context, height uint64) (types.State, error)

GetStateAtHeight provides a mock function for the type MockStore

func (*MockStore) Height

func (_mock *MockStore) Height(ctx context.Context) (uint64, error)

Height provides a mock function for the type MockStore

func (*MockStore) NewBatch

func (_mock *MockStore) NewBatch(ctx context.Context) (store.Batch, error)

NewBatch provides a mock function for the type MockStore

func (*MockStore) Rollback

func (_mock *MockStore) Rollback(ctx context.Context, height uint64, aggregator bool) error

Rollback provides a mock function for the type MockStore

func (*MockStore) SetMetadata

func (_mock *MockStore) SetMetadata(ctx context.Context, key string, value []byte) error

SetMetadata provides a mock function for the type MockStore

type MockStore_Close_Call

type MockStore_Close_Call struct {
	*mock.Call
}

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

func (*MockStore_Close_Call) Return

func (*MockStore_Close_Call) Run

func (_c *MockStore_Close_Call) Run(run func()) *MockStore_Close_Call

func (*MockStore_Close_Call) RunAndReturn

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

type MockStore_Expecter

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

func (*MockStore_Expecter) Close

Close is a helper method to define mock.On call

func (*MockStore_Expecter) GetBlockByHash

func (_e *MockStore_Expecter) GetBlockByHash(ctx interface{}, hash interface{}) *MockStore_GetBlockByHash_Call

GetBlockByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash []byte

func (*MockStore_Expecter) GetBlockData

func (_e *MockStore_Expecter) GetBlockData(ctx interface{}, height interface{}) *MockStore_GetBlockData_Call

GetBlockData is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*MockStore_Expecter) GetHeader

func (_e *MockStore_Expecter) GetHeader(ctx interface{}, height interface{}) *MockStore_GetHeader_Call

GetHeader is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*MockStore_Expecter) GetMetadata

func (_e *MockStore_Expecter) GetMetadata(ctx interface{}, key interface{}) *MockStore_GetMetadata_Call

GetMetadata is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*MockStore_Expecter) GetSignature

func (_e *MockStore_Expecter) GetSignature(ctx interface{}, height interface{}) *MockStore_GetSignature_Call

GetSignature is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*MockStore_Expecter) GetSignatureByHash

func (_e *MockStore_Expecter) GetSignatureByHash(ctx interface{}, hash interface{}) *MockStore_GetSignatureByHash_Call

GetSignatureByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash []byte

func (*MockStore_Expecter) GetState

func (_e *MockStore_Expecter) GetState(ctx interface{}) *MockStore_GetState_Call

GetState is a helper method to define mock.On call

  • ctx context.Context

func (*MockStore_Expecter) GetStateAtHeight

func (_e *MockStore_Expecter) GetStateAtHeight(ctx interface{}, height interface{}) *MockStore_GetStateAtHeight_Call

GetStateAtHeight is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*MockStore_Expecter) Height

func (_e *MockStore_Expecter) Height(ctx interface{}) *MockStore_Height_Call

Height is a helper method to define mock.On call

  • ctx context.Context

func (*MockStore_Expecter) NewBatch

func (_e *MockStore_Expecter) NewBatch(ctx interface{}) *MockStore_NewBatch_Call

NewBatch is a helper method to define mock.On call

  • ctx context.Context

func (*MockStore_Expecter) Rollback

func (_e *MockStore_Expecter) Rollback(ctx interface{}, height interface{}, aggregator interface{}) *MockStore_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • height uint64
  • aggregator bool

func (*MockStore_Expecter) SetMetadata

func (_e *MockStore_Expecter) SetMetadata(ctx interface{}, key interface{}, value interface{}) *MockStore_SetMetadata_Call

SetMetadata is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value []byte

func (*MockStore_Expecter) Sync

func (_e *MockStore_Expecter) Sync(ctx interface{}) *MockStore_Sync_Call

Sync is a helper method to define mock.On call

  • ctx context.Context

type MockStore_GetBlockByHash_Call

type MockStore_GetBlockByHash_Call struct {
	*mock.Call
}

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

func (*MockStore_GetBlockByHash_Call) Return

func (*MockStore_GetBlockByHash_Call) Run

func (*MockStore_GetBlockByHash_Call) RunAndReturn

type MockStore_GetBlockData_Call

type MockStore_GetBlockData_Call struct {
	*mock.Call
}

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

func (*MockStore_GetBlockData_Call) Return

func (*MockStore_GetBlockData_Call) Run

func (*MockStore_GetBlockData_Call) RunAndReturn

type MockStore_GetHeader_Call

type MockStore_GetHeader_Call struct {
	*mock.Call
}

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

func (*MockStore_GetHeader_Call) Return

func (*MockStore_GetHeader_Call) Run

func (*MockStore_GetHeader_Call) RunAndReturn

func (_c *MockStore_GetHeader_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.SignedHeader, error)) *MockStore_GetHeader_Call

type MockStore_GetMetadata_Call

type MockStore_GetMetadata_Call struct {
	*mock.Call
}

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

func (*MockStore_GetMetadata_Call) Return

func (*MockStore_GetMetadata_Call) Run

func (*MockStore_GetMetadata_Call) RunAndReturn

func (_c *MockStore_GetMetadata_Call) RunAndReturn(run func(ctx context.Context, key string) ([]byte, error)) *MockStore_GetMetadata_Call

type MockStore_GetSignatureByHash_Call

type MockStore_GetSignatureByHash_Call struct {
	*mock.Call
}

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

func (*MockStore_GetSignatureByHash_Call) Return

func (*MockStore_GetSignatureByHash_Call) Run

func (*MockStore_GetSignatureByHash_Call) RunAndReturn

type MockStore_GetSignature_Call

type MockStore_GetSignature_Call struct {
	*mock.Call
}

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

func (*MockStore_GetSignature_Call) Return

func (*MockStore_GetSignature_Call) Run

func (*MockStore_GetSignature_Call) RunAndReturn

type MockStore_GetStateAtHeight_Call

type MockStore_GetStateAtHeight_Call struct {
	*mock.Call
}

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

func (*MockStore_GetStateAtHeight_Call) Return

func (*MockStore_GetStateAtHeight_Call) Run

func (*MockStore_GetStateAtHeight_Call) RunAndReturn

type MockStore_GetState_Call

type MockStore_GetState_Call struct {
	*mock.Call
}

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

func (*MockStore_GetState_Call) Return

func (*MockStore_GetState_Call) Run

func (*MockStore_GetState_Call) RunAndReturn

func (_c *MockStore_GetState_Call) RunAndReturn(run func(ctx context.Context) (types.State, error)) *MockStore_GetState_Call

type MockStore_Height_Call

type MockStore_Height_Call struct {
	*mock.Call
}

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

func (*MockStore_Height_Call) Return

func (*MockStore_Height_Call) Run

func (*MockStore_Height_Call) RunAndReturn

func (_c *MockStore_Height_Call) RunAndReturn(run func(ctx context.Context) (uint64, error)) *MockStore_Height_Call

type MockStore_NewBatch_Call

type MockStore_NewBatch_Call struct {
	*mock.Call
}

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

func (*MockStore_NewBatch_Call) Return

func (*MockStore_NewBatch_Call) Run

func (*MockStore_NewBatch_Call) RunAndReturn

func (_c *MockStore_NewBatch_Call) RunAndReturn(run func(ctx context.Context) (store.Batch, error)) *MockStore_NewBatch_Call

type MockStore_Rollback_Call

type MockStore_Rollback_Call struct {
	*mock.Call
}

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

func (*MockStore_Rollback_Call) Return

func (*MockStore_Rollback_Call) Run

func (_c *MockStore_Rollback_Call) Run(run func(ctx context.Context, height uint64, aggregator bool)) *MockStore_Rollback_Call

func (*MockStore_Rollback_Call) RunAndReturn

func (_c *MockStore_Rollback_Call) RunAndReturn(run func(ctx context.Context, height uint64, aggregator bool) error) *MockStore_Rollback_Call

type MockStore_SetMetadata_Call

type MockStore_SetMetadata_Call struct {
	*mock.Call
}

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

func (*MockStore_SetMetadata_Call) Return

func (*MockStore_SetMetadata_Call) Run

func (_c *MockStore_SetMetadata_Call) Run(run func(ctx context.Context, key string, value []byte)) *MockStore_SetMetadata_Call

func (*MockStore_SetMetadata_Call) RunAndReturn

func (_c *MockStore_SetMetadata_Call) RunAndReturn(run func(ctx context.Context, key string, value []byte) error) *MockStore_SetMetadata_Call

type MockStore_Sync_Call

type MockStore_Sync_Call struct {
	*mock.Call
}

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

func (*MockStore_Sync_Call) Return

func (*MockStore_Sync_Call) Run

func (_c *MockStore_Sync_Call) Run(run func(ctx context.Context)) *MockStore_Sync_Call

func (*MockStore_Sync_Call) RunAndReturn

func (_c *MockStore_Sync_Call) RunAndReturn(run func(ctx context.Context) error) *MockStore_Sync_Call

type MockVerifier

type MockVerifier struct {
	mock.Mock
}

MockVerifier is an autogenerated mock type for the Verifier type

func NewMockVerifier

func NewMockVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVerifier

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

func (_m *MockVerifier) EXPECT() *MockVerifier_Expecter

func (*MockVerifier) GetProofs

func (_mock *MockVerifier) GetProofs(ctx context.Context, ids []da.ID, namespace []byte) ([]da.Proof, error)

GetProofs provides a mock function for the type MockVerifier

func (*MockVerifier) Validate

func (_mock *MockVerifier) Validate(ctx context.Context, ids []da.ID, proofs []da.Proof, namespace []byte) ([]bool, error)

Validate provides a mock function for the type MockVerifier

type MockVerifier_Expecter

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

func (*MockVerifier_Expecter) GetProofs

func (_e *MockVerifier_Expecter) GetProofs(ctx interface{}, ids interface{}, namespace interface{}) *MockVerifier_GetProofs_Call

GetProofs is a helper method to define mock.On call

  • ctx context.Context
  • ids []da.ID
  • namespace []byte

func (*MockVerifier_Expecter) Validate

func (_e *MockVerifier_Expecter) Validate(ctx interface{}, ids interface{}, proofs interface{}, namespace interface{}) *MockVerifier_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • ids []da.ID
  • proofs []da.Proof
  • namespace []byte

type MockVerifier_GetProofs_Call

type MockVerifier_GetProofs_Call struct {
	*mock.Call
}

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

func (*MockVerifier_GetProofs_Call) Return

func (_c *MockVerifier_GetProofs_Call) Return(vs []da.Proof, err error) *MockVerifier_GetProofs_Call

func (*MockVerifier_GetProofs_Call) Run

func (_c *MockVerifier_GetProofs_Call) Run(run func(ctx context.Context, ids []da.ID, namespace []byte)) *MockVerifier_GetProofs_Call

func (*MockVerifier_GetProofs_Call) RunAndReturn

func (_c *MockVerifier_GetProofs_Call) RunAndReturn(run func(ctx context.Context, ids []da.ID, namespace []byte) ([]da.Proof, error)) *MockVerifier_GetProofs_Call

type MockVerifier_Validate_Call

type MockVerifier_Validate_Call struct {
	*mock.Call
}

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

func (*MockVerifier_Validate_Call) Return

func (*MockVerifier_Validate_Call) Run

func (_c *MockVerifier_Validate_Call) Run(run func(ctx context.Context, ids []da.ID, proofs []da.Proof, namespace []byte)) *MockVerifier_Validate_Call

func (*MockVerifier_Validate_Call) RunAndReturn

func (_c *MockVerifier_Validate_Call) RunAndReturn(run func(ctx context.Context, ids []da.ID, proofs []da.Proof, namespace []byte) ([]bool, error)) *MockVerifier_Validate_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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