Documentation
¶
Overview ¶
Package mocks provides mock implementations for testing. This file contains a manual mock that combines Executor and HeightProvider interfaces.
Index ¶
- type MockBatch
- func (_mock *MockBatch) Commit() error
- func (_mock *MockBatch) Delete(key datastore.Key) error
- func (_m *MockBatch) EXPECT() *MockBatch_Expecter
- func (_mock *MockBatch) Put(key datastore.Key, value []byte) error
- func (_mock *MockBatch) SaveBlockData(header *types.SignedHeader, data *types.Data, signature *types.Signature) error
- func (_mock *MockBatch) SetHeight(height uint64) error
- func (_mock *MockBatch) UpdateState(state types.State) error
- type MockBatch_Commit_Call
- type MockBatch_Delete_Call
- type MockBatch_Expecter
- func (_e *MockBatch_Expecter) Commit() *MockBatch_Commit_Call
- func (_e *MockBatch_Expecter) Delete(key interface{}) *MockBatch_Delete_Call
- func (_e *MockBatch_Expecter) Put(key interface{}, value interface{}) *MockBatch_Put_Call
- func (_e *MockBatch_Expecter) SaveBlockData(header interface{}, data interface{}, signature interface{}) *MockBatch_SaveBlockData_Call
- func (_e *MockBatch_Expecter) SetHeight(height interface{}) *MockBatch_SetHeight_Call
- func (_e *MockBatch_Expecter) UpdateState(state interface{}) *MockBatch_UpdateState_Call
- type MockBatch_Put_Call
- type MockBatch_SaveBlockData_Call
- type MockBatch_SetHeight_Call
- type MockBatch_UpdateState_Call
- type MockClient
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_mock *MockClient) Get(ctx context.Context, ids []da.ID, namespace []byte) ([]da.Blob, error)
- func (_mock *MockClient) GetDataNamespace() []byte
- func (_mock *MockClient) GetForcedInclusionNamespace() []byte
- func (_mock *MockClient) GetHeaderNamespace() []byte
- func (_mock *MockClient) HasForcedInclusionNamespace() bool
- func (_mock *MockClient) Retrieve(ctx context.Context, height uint64, namespace []byte) da.ResultRetrieve
- func (_mock *MockClient) Submit(ctx context.Context, data [][]byte, gasPrice float64, namespace []byte, ...) da.ResultSubmit
- type MockClient_Expecter
- func (_e *MockClient_Expecter) Get(ctx interface{}, ids interface{}, namespace interface{}) *MockClient_Get_Call
- func (_e *MockClient_Expecter) GetDataNamespace() *MockClient_GetDataNamespace_Call
- func (_e *MockClient_Expecter) GetForcedInclusionNamespace() *MockClient_GetForcedInclusionNamespace_Call
- func (_e *MockClient_Expecter) GetHeaderNamespace() *MockClient_GetHeaderNamespace_Call
- func (_e *MockClient_Expecter) HasForcedInclusionNamespace() *MockClient_HasForcedInclusionNamespace_Call
- func (_e *MockClient_Expecter) Retrieve(ctx interface{}, height interface{}, namespace interface{}) *MockClient_Retrieve_Call
- func (_e *MockClient_Expecter) Submit(ctx interface{}, data interface{}, gasPrice interface{}, namespace interface{}, ...) *MockClient_Submit_Call
- type MockClient_GetDataNamespace_Call
- func (_c *MockClient_GetDataNamespace_Call) Return(bytes []byte) *MockClient_GetDataNamespace_Call
- func (_c *MockClient_GetDataNamespace_Call) Run(run func()) *MockClient_GetDataNamespace_Call
- func (_c *MockClient_GetDataNamespace_Call) RunAndReturn(run func() []byte) *MockClient_GetDataNamespace_Call
- type MockClient_GetForcedInclusionNamespace_Call
- func (_c *MockClient_GetForcedInclusionNamespace_Call) Return(bytes []byte) *MockClient_GetForcedInclusionNamespace_Call
- func (_c *MockClient_GetForcedInclusionNamespace_Call) Run(run func()) *MockClient_GetForcedInclusionNamespace_Call
- func (_c *MockClient_GetForcedInclusionNamespace_Call) RunAndReturn(run func() []byte) *MockClient_GetForcedInclusionNamespace_Call
- type MockClient_GetHeaderNamespace_Call
- func (_c *MockClient_GetHeaderNamespace_Call) Return(bytes []byte) *MockClient_GetHeaderNamespace_Call
- func (_c *MockClient_GetHeaderNamespace_Call) Run(run func()) *MockClient_GetHeaderNamespace_Call
- func (_c *MockClient_GetHeaderNamespace_Call) RunAndReturn(run func() []byte) *MockClient_GetHeaderNamespace_Call
- type MockClient_Get_Call
- type MockClient_HasForcedInclusionNamespace_Call
- func (_c *MockClient_HasForcedInclusionNamespace_Call) Return(b bool) *MockClient_HasForcedInclusionNamespace_Call
- func (_c *MockClient_HasForcedInclusionNamespace_Call) Run(run func()) *MockClient_HasForcedInclusionNamespace_Call
- func (_c *MockClient_HasForcedInclusionNamespace_Call) RunAndReturn(run func() bool) *MockClient_HasForcedInclusionNamespace_Call
- type MockClient_Retrieve_Call
- func (_c *MockClient_Retrieve_Call) Return(resultRetrieve da.ResultRetrieve) *MockClient_Retrieve_Call
- func (_c *MockClient_Retrieve_Call) Run(run func(ctx context.Context, height uint64, namespace []byte)) *MockClient_Retrieve_Call
- func (_c *MockClient_Retrieve_Call) RunAndReturn(...) *MockClient_Retrieve_Call
- type MockClient_Submit_Call
- type MockExecutor
- func (_m *MockExecutor) EXPECT() *MockExecutor_Expecter
- func (_mock *MockExecutor) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, ...) ([]byte, error)
- func (_mock *MockExecutor) FilterTxs(ctx context.Context, txs [][]byte, maxBytes uint64, maxGas uint64, ...) ([]execution.FilterStatus, error)
- func (_mock *MockExecutor) GetExecutionInfo(ctx context.Context) (execution.ExecutionInfo, error)
- func (_mock *MockExecutor) GetTxs(ctx context.Context) ([][]byte, error)
- func (_mock *MockExecutor) InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, ...) ([]byte, error)
- func (_mock *MockExecutor) SetFinal(ctx context.Context, blockHeight uint64) error
- type MockExecutor_ExecuteTxs_Call
- type MockExecutor_Expecter
- func (_e *MockExecutor_Expecter) ExecuteTxs(ctx interface{}, txs interface{}, blockHeight interface{}, ...) *MockExecutor_ExecuteTxs_Call
- func (_e *MockExecutor_Expecter) FilterTxs(ctx interface{}, txs interface{}, maxBytes interface{}, maxGas interface{}, ...) *MockExecutor_FilterTxs_Call
- func (_e *MockExecutor_Expecter) GetExecutionInfo(ctx interface{}) *MockExecutor_GetExecutionInfo_Call
- func (_e *MockExecutor_Expecter) GetTxs(ctx interface{}) *MockExecutor_GetTxs_Call
- func (_e *MockExecutor_Expecter) InitChain(ctx interface{}, genesisTime interface{}, initialHeight interface{}, ...) *MockExecutor_InitChain_Call
- func (_e *MockExecutor_Expecter) SetFinal(ctx interface{}, blockHeight interface{}) *MockExecutor_SetFinal_Call
- type MockExecutor_FilterTxs_Call
- type MockExecutor_GetExecutionInfo_Call
- func (_c *MockExecutor_GetExecutionInfo_Call) Return(executionInfo execution.ExecutionInfo, err error) *MockExecutor_GetExecutionInfo_Call
- func (_c *MockExecutor_GetExecutionInfo_Call) Run(run func(ctx context.Context)) *MockExecutor_GetExecutionInfo_Call
- func (_c *MockExecutor_GetExecutionInfo_Call) RunAndReturn(run func(ctx context.Context) (execution.ExecutionInfo, error)) *MockExecutor_GetExecutionInfo_Call
- type MockExecutor_GetTxs_Call
- func (_c *MockExecutor_GetTxs_Call) Return(bytess [][]byte, err error) *MockExecutor_GetTxs_Call
- func (_c *MockExecutor_GetTxs_Call) Run(run func(ctx context.Context)) *MockExecutor_GetTxs_Call
- func (_c *MockExecutor_GetTxs_Call) RunAndReturn(run func(ctx context.Context) ([][]byte, error)) *MockExecutor_GetTxs_Call
- type MockExecutor_InitChain_Call
- type MockExecutor_SetFinal_Call
- func (_c *MockExecutor_SetFinal_Call) Return(err error) *MockExecutor_SetFinal_Call
- func (_c *MockExecutor_SetFinal_Call) Run(run func(ctx context.Context, blockHeight uint64)) *MockExecutor_SetFinal_Call
- func (_c *MockExecutor_SetFinal_Call) RunAndReturn(run func(ctx context.Context, blockHeight uint64) error) *MockExecutor_SetFinal_Call
- type MockHeightAwareExecutor
- func (m *MockHeightAwareExecutor) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight uint64, timestamp time.Time, ...) ([]byte, error)
- func (m *MockHeightAwareExecutor) FilterTxs(ctx context.Context, txs [][]byte, maxBytes, maxGas uint64, ...) ([]execution.FilterStatus, error)
- func (m *MockHeightAwareExecutor) GetExecutionInfo(ctx context.Context) (execution.ExecutionInfo, error)
- func (m *MockHeightAwareExecutor) GetLatestHeight(ctx context.Context) (uint64, error)
- func (m *MockHeightAwareExecutor) GetTxs(ctx context.Context) ([][]byte, error)
- func (m *MockHeightAwareExecutor) InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, ...) ([]byte, error)
- func (m *MockHeightAwareExecutor) SetFinal(ctx context.Context, blockHeight uint64) error
- type MockP2PRPC
- type MockP2PRPC_Expecter
- type MockP2PRPC_GetNetworkInfo_Call
- func (_c *MockP2PRPC_GetNetworkInfo_Call) Return(networkInfo p2p.NetworkInfo, err error) *MockP2PRPC_GetNetworkInfo_Call
- func (_c *MockP2PRPC_GetNetworkInfo_Call) Run(run func()) *MockP2PRPC_GetNetworkInfo_Call
- func (_c *MockP2PRPC_GetNetworkInfo_Call) RunAndReturn(run func() (p2p.NetworkInfo, error)) *MockP2PRPC_GetNetworkInfo_Call
- type MockP2PRPC_GetPeers_Call
- type MockSequencer
- func (_m *MockSequencer) EXPECT() *MockSequencer_Expecter
- func (_mock *MockSequencer) GetDAHeight() uint64
- func (_mock *MockSequencer) GetNextBatch(ctx context.Context, req sequencer.GetNextBatchRequest) (*sequencer.GetNextBatchResponse, error)
- func (_mock *MockSequencer) SetDAHeight(height uint64)
- func (_mock *MockSequencer) SubmitBatchTxs(ctx context.Context, req sequencer.SubmitBatchTxsRequest) (*sequencer.SubmitBatchTxsResponse, error)
- func (_mock *MockSequencer) VerifyBatch(ctx context.Context, req sequencer.VerifyBatchRequest) (*sequencer.VerifyBatchResponse, error)
- type MockSequencer_Expecter
- func (_e *MockSequencer_Expecter) GetDAHeight() *MockSequencer_GetDAHeight_Call
- func (_e *MockSequencer_Expecter) GetNextBatch(ctx interface{}, req interface{}) *MockSequencer_GetNextBatch_Call
- func (_e *MockSequencer_Expecter) SetDAHeight(height interface{}) *MockSequencer_SetDAHeight_Call
- func (_e *MockSequencer_Expecter) SubmitBatchTxs(ctx interface{}, req interface{}) *MockSequencer_SubmitBatchTxs_Call
- func (_e *MockSequencer_Expecter) VerifyBatch(ctx interface{}, req interface{}) *MockSequencer_VerifyBatch_Call
- type MockSequencer_GetDAHeight_Call
- type MockSequencer_GetNextBatch_Call
- func (_c *MockSequencer_GetNextBatch_Call) Return(getNextBatchResponse *sequencer.GetNextBatchResponse, err error) *MockSequencer_GetNextBatch_Call
- func (_c *MockSequencer_GetNextBatch_Call) Run(run func(ctx context.Context, req sequencer.GetNextBatchRequest)) *MockSequencer_GetNextBatch_Call
- func (_c *MockSequencer_GetNextBatch_Call) RunAndReturn(...) *MockSequencer_GetNextBatch_Call
- type MockSequencer_SetDAHeight_Call
- type MockSequencer_SubmitBatchTxs_Call
- func (_c *MockSequencer_SubmitBatchTxs_Call) Return(submitBatchTxsResponse *sequencer.SubmitBatchTxsResponse, err error) *MockSequencer_SubmitBatchTxs_Call
- func (_c *MockSequencer_SubmitBatchTxs_Call) Run(run func(ctx context.Context, req sequencer.SubmitBatchTxsRequest)) *MockSequencer_SubmitBatchTxs_Call
- func (_c *MockSequencer_SubmitBatchTxs_Call) RunAndReturn(...) *MockSequencer_SubmitBatchTxs_Call
- type MockSequencer_VerifyBatch_Call
- func (_c *MockSequencer_VerifyBatch_Call) Return(verifyBatchResponse *sequencer.VerifyBatchResponse, err error) *MockSequencer_VerifyBatch_Call
- func (_c *MockSequencer_VerifyBatch_Call) Run(run func(ctx context.Context, req sequencer.VerifyBatchRequest)) *MockSequencer_VerifyBatch_Call
- func (_c *MockSequencer_VerifyBatch_Call) RunAndReturn(...) *MockSequencer_VerifyBatch_Call
- type MockStore
- func (_mock *MockStore) Close() error
- func (_m *MockStore) EXPECT() *MockStore_Expecter
- func (_mock *MockStore) GetBlockByHash(ctx context.Context, hash []byte) (*types.SignedHeader, *types.Data, error)
- func (_mock *MockStore) GetBlockData(ctx context.Context, height uint64) (*types.SignedHeader, *types.Data, error)
- func (_mock *MockStore) GetHeader(ctx context.Context, height uint64) (*types.SignedHeader, error)
- func (_mock *MockStore) GetMetadata(ctx context.Context, key string) ([]byte, error)
- func (_mock *MockStore) GetSignature(ctx context.Context, height uint64) (*types.Signature, error)
- func (_mock *MockStore) GetSignatureByHash(ctx context.Context, hash []byte) (*types.Signature, error)
- func (_mock *MockStore) GetState(ctx context.Context) (types.State, error)
- func (_mock *MockStore) GetStateAtHeight(ctx context.Context, height uint64) (types.State, error)
- func (_mock *MockStore) Height(ctx context.Context) (uint64, error)
- func (_mock *MockStore) NewBatch(ctx context.Context) (store.Batch, error)
- func (_mock *MockStore) Rollback(ctx context.Context, height uint64, aggregator bool) error
- func (_mock *MockStore) SetMetadata(ctx context.Context, key string, value []byte) error
- type MockStore_Close_Call
- type MockStore_Expecter
- func (_e *MockStore_Expecter) Close() *MockStore_Close_Call
- func (_e *MockStore_Expecter) GetBlockByHash(ctx interface{}, hash interface{}) *MockStore_GetBlockByHash_Call
- func (_e *MockStore_Expecter) GetBlockData(ctx interface{}, height interface{}) *MockStore_GetBlockData_Call
- func (_e *MockStore_Expecter) GetHeader(ctx interface{}, height interface{}) *MockStore_GetHeader_Call
- func (_e *MockStore_Expecter) GetMetadata(ctx interface{}, key interface{}) *MockStore_GetMetadata_Call
- func (_e *MockStore_Expecter) GetSignature(ctx interface{}, height interface{}) *MockStore_GetSignature_Call
- func (_e *MockStore_Expecter) GetSignatureByHash(ctx interface{}, hash interface{}) *MockStore_GetSignatureByHash_Call
- func (_e *MockStore_Expecter) GetState(ctx interface{}) *MockStore_GetState_Call
- func (_e *MockStore_Expecter) GetStateAtHeight(ctx interface{}, height interface{}) *MockStore_GetStateAtHeight_Call
- func (_e *MockStore_Expecter) Height(ctx interface{}) *MockStore_Height_Call
- func (_e *MockStore_Expecter) NewBatch(ctx interface{}) *MockStore_NewBatch_Call
- func (_e *MockStore_Expecter) Rollback(ctx interface{}, height interface{}, aggregator interface{}) *MockStore_Rollback_Call
- func (_e *MockStore_Expecter) SetMetadata(ctx interface{}, key interface{}, value interface{}) *MockStore_SetMetadata_Call
- func (_e *MockStore_Expecter) Sync(ctx interface{}) *MockStore_Sync_Call
- type MockStore_GetBlockByHash_Call
- func (_c *MockStore_GetBlockByHash_Call) Return(signedHeader *types.SignedHeader, data *types.Data, err error) *MockStore_GetBlockByHash_Call
- func (_c *MockStore_GetBlockByHash_Call) Run(run func(ctx context.Context, hash []byte)) *MockStore_GetBlockByHash_Call
- func (_c *MockStore_GetBlockByHash_Call) RunAndReturn(...) *MockStore_GetBlockByHash_Call
- type MockStore_GetBlockData_Call
- func (_c *MockStore_GetBlockData_Call) Return(signedHeader *types.SignedHeader, data *types.Data, err error) *MockStore_GetBlockData_Call
- func (_c *MockStore_GetBlockData_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetBlockData_Call
- func (_c *MockStore_GetBlockData_Call) RunAndReturn(...) *MockStore_GetBlockData_Call
- type MockStore_GetHeader_Call
- func (_c *MockStore_GetHeader_Call) Return(signedHeader *types.SignedHeader, err error) *MockStore_GetHeader_Call
- func (_c *MockStore_GetHeader_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetHeader_Call
- func (_c *MockStore_GetHeader_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.SignedHeader, error)) *MockStore_GetHeader_Call
- type MockStore_GetMetadata_Call
- func (_c *MockStore_GetMetadata_Call) Return(bytes []byte, err error) *MockStore_GetMetadata_Call
- func (_c *MockStore_GetMetadata_Call) Run(run func(ctx context.Context, key string)) *MockStore_GetMetadata_Call
- func (_c *MockStore_GetMetadata_Call) RunAndReturn(run func(ctx context.Context, key string) ([]byte, error)) *MockStore_GetMetadata_Call
- type MockStore_GetSignatureByHash_Call
- func (_c *MockStore_GetSignatureByHash_Call) Return(signature *types.Signature, err error) *MockStore_GetSignatureByHash_Call
- func (_c *MockStore_GetSignatureByHash_Call) Run(run func(ctx context.Context, hash []byte)) *MockStore_GetSignatureByHash_Call
- func (_c *MockStore_GetSignatureByHash_Call) RunAndReturn(run func(ctx context.Context, hash []byte) (*types.Signature, error)) *MockStore_GetSignatureByHash_Call
- type MockStore_GetSignature_Call
- func (_c *MockStore_GetSignature_Call) Return(signature *types.Signature, err error) *MockStore_GetSignature_Call
- func (_c *MockStore_GetSignature_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetSignature_Call
- func (_c *MockStore_GetSignature_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.Signature, error)) *MockStore_GetSignature_Call
- type MockStore_GetStateAtHeight_Call
- func (_c *MockStore_GetStateAtHeight_Call) Return(state types.State, err error) *MockStore_GetStateAtHeight_Call
- func (_c *MockStore_GetStateAtHeight_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetStateAtHeight_Call
- func (_c *MockStore_GetStateAtHeight_Call) RunAndReturn(run func(ctx context.Context, height uint64) (types.State, error)) *MockStore_GetStateAtHeight_Call
- type MockStore_GetState_Call
- func (_c *MockStore_GetState_Call) Return(state types.State, err error) *MockStore_GetState_Call
- func (_c *MockStore_GetState_Call) Run(run func(ctx context.Context)) *MockStore_GetState_Call
- func (_c *MockStore_GetState_Call) RunAndReturn(run func(ctx context.Context) (types.State, error)) *MockStore_GetState_Call
- type MockStore_Height_Call
- type MockStore_NewBatch_Call
- func (_c *MockStore_NewBatch_Call) Return(batch store.Batch, err error) *MockStore_NewBatch_Call
- func (_c *MockStore_NewBatch_Call) Run(run func(ctx context.Context)) *MockStore_NewBatch_Call
- func (_c *MockStore_NewBatch_Call) RunAndReturn(run func(ctx context.Context) (store.Batch, error)) *MockStore_NewBatch_Call
- type MockStore_Rollback_Call
- func (_c *MockStore_Rollback_Call) Return(err error) *MockStore_Rollback_Call
- func (_c *MockStore_Rollback_Call) Run(run func(ctx context.Context, height uint64, aggregator bool)) *MockStore_Rollback_Call
- func (_c *MockStore_Rollback_Call) RunAndReturn(run func(ctx context.Context, height uint64, aggregator bool) error) *MockStore_Rollback_Call
- type MockStore_SetMetadata_Call
- func (_c *MockStore_SetMetadata_Call) Return(err error) *MockStore_SetMetadata_Call
- func (_c *MockStore_SetMetadata_Call) Run(run func(ctx context.Context, key string, value []byte)) *MockStore_SetMetadata_Call
- func (_c *MockStore_SetMetadata_Call) RunAndReturn(run func(ctx context.Context, key string, value []byte) error) *MockStore_SetMetadata_Call
- type MockStore_Sync_Call
- type MockVerifier
- type MockVerifier_Expecter
- type MockVerifier_GetProofs_Call
- func (_c *MockVerifier_GetProofs_Call) Return(vs []da.Proof, err error) *MockVerifier_GetProofs_Call
- func (_c *MockVerifier_GetProofs_Call) Run(run func(ctx context.Context, ids []da.ID, namespace []byte)) *MockVerifier_GetProofs_Call
- func (_c *MockVerifier_GetProofs_Call) RunAndReturn(...) *MockVerifier_GetProofs_Call
- type MockVerifier_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBatch ¶
MockBatch is an autogenerated mock type for the Batch type
func NewMockBatch ¶
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) EXPECT ¶
func (_m *MockBatch) EXPECT() *MockBatch_Expecter
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
type MockBatch_Commit_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 (_c *MockBatch_Commit_Call) Return(err error) *MockBatch_Commit_Call
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 ¶
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 (_c *MockBatch_Delete_Call) Return(err error) *MockBatch_Delete_Call
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 ¶
func (_e *MockBatch_Expecter) Commit() *MockBatch_Commit_Call
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 ¶
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 ¶
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 (_c *MockBatch_SaveBlockData_Call) Return(err error) *MockBatch_SaveBlockData_Call
func (*MockBatch_SaveBlockData_Call) Run ¶
func (_c *MockBatch_SaveBlockData_Call) Run(run func(header *types.SignedHeader, data *types.Data, signature *types.Signature)) *MockBatch_SaveBlockData_Call
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 ¶
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 (_c *MockBatch_SetHeight_Call) Return(err error) *MockBatch_SetHeight_Call
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 ¶
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 (_c *MockBatch_UpdateState_Call) Return(err error) *MockBatch_UpdateState_Call
func (*MockBatch_UpdateState_Call) Run ¶
func (_c *MockBatch_UpdateState_Call) Run(run func(state types.State)) *MockBatch_UpdateState_Call
func (*MockBatch_UpdateState_Call) RunAndReturn ¶
func (_c *MockBatch_UpdateState_Call) RunAndReturn(run func(state types.State) error) *MockBatch_UpdateState_Call
type MockClient ¶
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
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 ¶
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 (_c *MockClient_GetDataNamespace_Call) Return(bytes []byte) *MockClient_GetDataNamespace_Call
func (*MockClient_GetDataNamespace_Call) Run ¶
func (_c *MockClient_GetDataNamespace_Call) Run(run func()) *MockClient_GetDataNamespace_Call
func (*MockClient_GetDataNamespace_Call) RunAndReturn ¶
func (_c *MockClient_GetDataNamespace_Call) RunAndReturn(run func() []byte) *MockClient_GetDataNamespace_Call
type MockClient_GetForcedInclusionNamespace_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 (_c *MockClient_GetForcedInclusionNamespace_Call) Return(bytes []byte) *MockClient_GetForcedInclusionNamespace_Call
func (*MockClient_GetForcedInclusionNamespace_Call) Run ¶
func (_c *MockClient_GetForcedInclusionNamespace_Call) Run(run func()) *MockClient_GetForcedInclusionNamespace_Call
func (*MockClient_GetForcedInclusionNamespace_Call) RunAndReturn ¶
func (_c *MockClient_GetForcedInclusionNamespace_Call) RunAndReturn(run func() []byte) *MockClient_GetForcedInclusionNamespace_Call
type MockClient_GetHeaderNamespace_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 (_c *MockClient_GetHeaderNamespace_Call) Return(bytes []byte) *MockClient_GetHeaderNamespace_Call
func (*MockClient_GetHeaderNamespace_Call) Run ¶
func (_c *MockClient_GetHeaderNamespace_Call) Run(run func()) *MockClient_GetHeaderNamespace_Call
func (*MockClient_GetHeaderNamespace_Call) RunAndReturn ¶
func (_c *MockClient_GetHeaderNamespace_Call) RunAndReturn(run func() []byte) *MockClient_GetHeaderNamespace_Call
type MockClient_Get_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 ¶
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 (_c *MockClient_HasForcedInclusionNamespace_Call) Return(b bool) *MockClient_HasForcedInclusionNamespace_Call
func (*MockClient_HasForcedInclusionNamespace_Call) Run ¶
func (_c *MockClient_HasForcedInclusionNamespace_Call) Run(run func()) *MockClient_HasForcedInclusionNamespace_Call
func (*MockClient_HasForcedInclusionNamespace_Call) RunAndReturn ¶
func (_c *MockClient_HasForcedInclusionNamespace_Call) RunAndReturn(run func() bool) *MockClient_HasForcedInclusionNamespace_Call
type MockClient_Retrieve_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 ¶
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 ¶
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
type MockExecutor_ExecuteTxs_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 ¶
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 ¶
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 (_c *MockExecutor_FilterTxs_Call) Return(filterStatuss []execution.FilterStatus, err error) *MockExecutor_FilterTxs_Call
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 ¶
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 (_c *MockExecutor_GetExecutionInfo_Call) Return(executionInfo execution.ExecutionInfo, err error) *MockExecutor_GetExecutionInfo_Call
func (*MockExecutor_GetExecutionInfo_Call) Run ¶
func (_c *MockExecutor_GetExecutionInfo_Call) Run(run func(ctx context.Context)) *MockExecutor_GetExecutionInfo_Call
func (*MockExecutor_GetExecutionInfo_Call) RunAndReturn ¶
func (_c *MockExecutor_GetExecutionInfo_Call) RunAndReturn(run func(ctx context.Context) (execution.ExecutionInfo, error)) *MockExecutor_GetExecutionInfo_Call
type MockExecutor_GetTxs_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 (_c *MockExecutor_GetTxs_Call) Run(run func(ctx context.Context)) *MockExecutor_GetTxs_Call
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 ¶
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 ¶
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 (_c *MockExecutor_SetFinal_Call) Return(err error) *MockExecutor_SetFinal_Call
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 ¶
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 ¶
func (m *MockHeightAwareExecutor) GetExecutionInfo(ctx context.Context) (execution.ExecutionInfo, error)
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.
type MockP2PRPC ¶
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
type MockP2PRPC_Expecter ¶
type MockP2PRPC_Expecter struct {
// contains filtered or unexported fields
}
func (*MockP2PRPC_Expecter) GetNetworkInfo ¶
func (_e *MockP2PRPC_Expecter) GetNetworkInfo() *MockP2PRPC_GetNetworkInfo_Call
GetNetworkInfo is a helper method to define mock.On call
func (*MockP2PRPC_Expecter) GetPeers ¶
func (_e *MockP2PRPC_Expecter) GetPeers() *MockP2PRPC_GetPeers_Call
GetPeers is a helper method to define mock.On call
type MockP2PRPC_GetNetworkInfo_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 (_c *MockP2PRPC_GetNetworkInfo_Call) Return(networkInfo p2p.NetworkInfo, err error) *MockP2PRPC_GetNetworkInfo_Call
func (*MockP2PRPC_GetNetworkInfo_Call) Run ¶
func (_c *MockP2PRPC_GetNetworkInfo_Call) Run(run func()) *MockP2PRPC_GetNetworkInfo_Call
func (*MockP2PRPC_GetNetworkInfo_Call) RunAndReturn ¶
func (_c *MockP2PRPC_GetNetworkInfo_Call) RunAndReturn(run func() (p2p.NetworkInfo, error)) *MockP2PRPC_GetNetworkInfo_Call
type MockP2PRPC_GetPeers_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 (_c *MockP2PRPC_GetPeers_Call) Return(addrInfos []peer.AddrInfo, err error) *MockP2PRPC_GetPeers_Call
func (*MockP2PRPC_GetPeers_Call) Run ¶
func (_c *MockP2PRPC_GetPeers_Call) Run(run func()) *MockP2PRPC_GetPeers_Call
func (*MockP2PRPC_GetPeers_Call) RunAndReturn ¶
func (_c *MockP2PRPC_GetPeers_Call) RunAndReturn(run func() ([]peer.AddrInfo, error)) *MockP2PRPC_GetPeers_Call
type MockSequencer ¶
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 ¶
func (_mock *MockSequencer) GetNextBatch(ctx context.Context, req sequencer.GetNextBatchRequest) (*sequencer.GetNextBatchResponse, error)
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 ¶
func (_mock *MockSequencer) SubmitBatchTxs(ctx context.Context, req sequencer.SubmitBatchTxsRequest) (*sequencer.SubmitBatchTxsResponse, error)
SubmitBatchTxs provides a mock function for the type MockSequencer
func (*MockSequencer) VerifyBatch ¶
func (_mock *MockSequencer) VerifyBatch(ctx context.Context, req sequencer.VerifyBatchRequest) (*sequencer.VerifyBatchResponse, error)
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 ¶
func (_e *MockSequencer_Expecter) GetDAHeight() *MockSequencer_GetDAHeight_Call
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 ¶
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 (_c *MockSequencer_GetDAHeight_Call) Return(v uint64) *MockSequencer_GetDAHeight_Call
func (*MockSequencer_GetDAHeight_Call) Run ¶
func (_c *MockSequencer_GetDAHeight_Call) Run(run func()) *MockSequencer_GetDAHeight_Call
func (*MockSequencer_GetDAHeight_Call) RunAndReturn ¶
func (_c *MockSequencer_GetDAHeight_Call) RunAndReturn(run func() uint64) *MockSequencer_GetDAHeight_Call
type MockSequencer_GetNextBatch_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 (_c *MockSequencer_GetNextBatch_Call) Return(getNextBatchResponse *sequencer.GetNextBatchResponse, err error) *MockSequencer_GetNextBatch_Call
func (*MockSequencer_GetNextBatch_Call) Run ¶
func (_c *MockSequencer_GetNextBatch_Call) Run(run func(ctx context.Context, req sequencer.GetNextBatchRequest)) *MockSequencer_GetNextBatch_Call
func (*MockSequencer_GetNextBatch_Call) RunAndReturn ¶
func (_c *MockSequencer_GetNextBatch_Call) RunAndReturn(run func(ctx context.Context, req sequencer.GetNextBatchRequest) (*sequencer.GetNextBatchResponse, error)) *MockSequencer_GetNextBatch_Call
type MockSequencer_SetDAHeight_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 (_c *MockSequencer_SetDAHeight_Call) Return() *MockSequencer_SetDAHeight_Call
func (*MockSequencer_SetDAHeight_Call) Run ¶
func (_c *MockSequencer_SetDAHeight_Call) Run(run func(height uint64)) *MockSequencer_SetDAHeight_Call
func (*MockSequencer_SetDAHeight_Call) RunAndReturn ¶
func (_c *MockSequencer_SetDAHeight_Call) RunAndReturn(run func(height uint64)) *MockSequencer_SetDAHeight_Call
type MockSequencer_SubmitBatchTxs_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 (_c *MockSequencer_SubmitBatchTxs_Call) Return(submitBatchTxsResponse *sequencer.SubmitBatchTxsResponse, err error) *MockSequencer_SubmitBatchTxs_Call
func (*MockSequencer_SubmitBatchTxs_Call) Run ¶
func (_c *MockSequencer_SubmitBatchTxs_Call) Run(run func(ctx context.Context, req sequencer.SubmitBatchTxsRequest)) *MockSequencer_SubmitBatchTxs_Call
func (*MockSequencer_SubmitBatchTxs_Call) RunAndReturn ¶
func (_c *MockSequencer_SubmitBatchTxs_Call) RunAndReturn(run func(ctx context.Context, req sequencer.SubmitBatchTxsRequest) (*sequencer.SubmitBatchTxsResponse, error)) *MockSequencer_SubmitBatchTxs_Call
type MockSequencer_VerifyBatch_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 (_c *MockSequencer_VerifyBatch_Call) Return(verifyBatchResponse *sequencer.VerifyBatchResponse, err error) *MockSequencer_VerifyBatch_Call
func (*MockSequencer_VerifyBatch_Call) Run ¶
func (_c *MockSequencer_VerifyBatch_Call) Run(run func(ctx context.Context, req sequencer.VerifyBatchRequest)) *MockSequencer_VerifyBatch_Call
func (*MockSequencer_VerifyBatch_Call) RunAndReturn ¶
func (_c *MockSequencer_VerifyBatch_Call) RunAndReturn(run func(ctx context.Context, req sequencer.VerifyBatchRequest) (*sequencer.VerifyBatchResponse, error)) *MockSequencer_VerifyBatch_Call
type MockStore ¶
MockStore is an autogenerated mock type for the Store type
func NewMockStore ¶
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) 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) GetMetadata ¶
GetMetadata provides a mock function for the type MockStore
func (*MockStore) GetSignature ¶
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) GetStateAtHeight ¶
GetStateAtHeight provides a mock function for the type MockStore
type MockStore_Close_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 (_c *MockStore_Close_Call) Return(err error) *MockStore_Close_Call
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 ¶
func (_e *MockStore_Expecter) Close() *MockStore_Close_Call
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 ¶
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 (_c *MockStore_GetBlockByHash_Call) Return(signedHeader *types.SignedHeader, data *types.Data, err error) *MockStore_GetBlockByHash_Call
func (*MockStore_GetBlockByHash_Call) Run ¶
func (_c *MockStore_GetBlockByHash_Call) Run(run func(ctx context.Context, hash []byte)) *MockStore_GetBlockByHash_Call
func (*MockStore_GetBlockByHash_Call) RunAndReturn ¶
func (_c *MockStore_GetBlockByHash_Call) RunAndReturn(run func(ctx context.Context, hash []byte) (*types.SignedHeader, *types.Data, error)) *MockStore_GetBlockByHash_Call
type MockStore_GetBlockData_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 (_c *MockStore_GetBlockData_Call) Return(signedHeader *types.SignedHeader, data *types.Data, err error) *MockStore_GetBlockData_Call
func (*MockStore_GetBlockData_Call) Run ¶
func (_c *MockStore_GetBlockData_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetBlockData_Call
func (*MockStore_GetBlockData_Call) RunAndReturn ¶
func (_c *MockStore_GetBlockData_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.SignedHeader, *types.Data, error)) *MockStore_GetBlockData_Call
type MockStore_GetHeader_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 (_c *MockStore_GetHeader_Call) Return(signedHeader *types.SignedHeader, err error) *MockStore_GetHeader_Call
func (*MockStore_GetHeader_Call) Run ¶
func (_c *MockStore_GetHeader_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetHeader_Call
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 ¶
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 (_c *MockStore_GetMetadata_Call) Return(bytes []byte, err error) *MockStore_GetMetadata_Call
func (*MockStore_GetMetadata_Call) Run ¶
func (_c *MockStore_GetMetadata_Call) Run(run func(ctx context.Context, key string)) *MockStore_GetMetadata_Call
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 ¶
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 (_c *MockStore_GetSignatureByHash_Call) Return(signature *types.Signature, err error) *MockStore_GetSignatureByHash_Call
func (*MockStore_GetSignatureByHash_Call) Run ¶
func (_c *MockStore_GetSignatureByHash_Call) Run(run func(ctx context.Context, hash []byte)) *MockStore_GetSignatureByHash_Call
func (*MockStore_GetSignatureByHash_Call) RunAndReturn ¶
func (_c *MockStore_GetSignatureByHash_Call) RunAndReturn(run func(ctx context.Context, hash []byte) (*types.Signature, error)) *MockStore_GetSignatureByHash_Call
type MockStore_GetSignature_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 (_c *MockStore_GetSignature_Call) Return(signature *types.Signature, err error) *MockStore_GetSignature_Call
func (*MockStore_GetSignature_Call) Run ¶
func (_c *MockStore_GetSignature_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetSignature_Call
func (*MockStore_GetSignature_Call) RunAndReturn ¶
func (_c *MockStore_GetSignature_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.Signature, error)) *MockStore_GetSignature_Call
type MockStore_GetStateAtHeight_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 (_c *MockStore_GetStateAtHeight_Call) Return(state types.State, err error) *MockStore_GetStateAtHeight_Call
func (*MockStore_GetStateAtHeight_Call) Run ¶
func (_c *MockStore_GetStateAtHeight_Call) Run(run func(ctx context.Context, height uint64)) *MockStore_GetStateAtHeight_Call
func (*MockStore_GetStateAtHeight_Call) RunAndReturn ¶
func (_c *MockStore_GetStateAtHeight_Call) RunAndReturn(run func(ctx context.Context, height uint64) (types.State, error)) *MockStore_GetStateAtHeight_Call
type MockStore_GetState_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 (_c *MockStore_GetState_Call) Return(state types.State, err error) *MockStore_GetState_Call
func (*MockStore_GetState_Call) Run ¶
func (_c *MockStore_GetState_Call) Run(run func(ctx context.Context)) *MockStore_GetState_Call
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 ¶
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 (_c *MockStore_Height_Call) Return(v uint64, err error) *MockStore_Height_Call
func (*MockStore_Height_Call) Run ¶
func (_c *MockStore_Height_Call) Run(run func(ctx context.Context)) *MockStore_Height_Call
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 ¶
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 (_c *MockStore_NewBatch_Call) Return(batch store.Batch, err error) *MockStore_NewBatch_Call
func (*MockStore_NewBatch_Call) Run ¶
func (_c *MockStore_NewBatch_Call) Run(run func(ctx context.Context)) *MockStore_NewBatch_Call
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 ¶
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 (_c *MockStore_Rollback_Call) Return(err error) *MockStore_Rollback_Call
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 ¶
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 (_c *MockStore_SetMetadata_Call) Return(err error) *MockStore_SetMetadata_Call
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 ¶
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 (_c *MockStore_Sync_Call) Return(err error) *MockStore_Sync_Call
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 ¶
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
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 ¶
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 ¶
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 (_c *MockVerifier_Validate_Call) Return(bools []bool, err error) *MockVerifier_Validate_Call
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