Documentation
¶
Index ¶
- type ExecutionState
- func (_mock *ExecutionState) ChunkDataPackByChunkID(identifier flow.Identifier) (*flow.ChunkDataPack, error)
- func (_mock *ExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)
- func (_m *ExecutionState) EXPECT() *ExecutionState_Expecter
- func (_mock *ExecutionState) GetExecutionResultID(context1 context.Context, identifier flow.Identifier) (flow.Identifier, error)
- func (_mock *ExecutionState) GetHighestFinalizedExecuted() (uint64, error)
- func (_mock *ExecutionState) GetLastExecutedBlockID(context1 context.Context) (uint64, flow.Identifier, error)
- func (_mock *ExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_mock *ExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot
- func (_mock *ExecutionState) SaveExecutionResults(ctx context.Context, result *execution.ComputationResult) error
- func (_mock *ExecutionState) StateCommitmentByBlockID(identifier flow.Identifier) (flow.StateCommitment, error)
- func (_mock *ExecutionState) UpdateLastExecutedBlock(context1 context.Context, identifier flow.Identifier) error
- type ExecutionState_ChunkDataPackByChunkID_Call
- func (_c *ExecutionState_ChunkDataPackByChunkID_Call) Return(chunkDataPack *flow.ChunkDataPack, err error) *ExecutionState_ChunkDataPackByChunkID_Call
- func (_c *ExecutionState_ChunkDataPackByChunkID_Call) Run(run func(identifier flow.Identifier)) *ExecutionState_ChunkDataPackByChunkID_Call
- func (_c *ExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn(run func(identifier flow.Identifier) (*flow.ChunkDataPack, error)) *ExecutionState_ChunkDataPackByChunkID_Call
- type ExecutionState_CreateStorageSnapshot_Call
- func (_c *ExecutionState_CreateStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot, header *flow.Header, err error) *ExecutionState_CreateStorageSnapshot_Call
- func (_c *ExecutionState_CreateStorageSnapshot_Call) Run(run func(blockID flow.Identifier)) *ExecutionState_CreateStorageSnapshot_Call
- func (_c *ExecutionState_CreateStorageSnapshot_Call) RunAndReturn(...) *ExecutionState_CreateStorageSnapshot_Call
- type ExecutionState_Expecter
- func (_e *ExecutionState_Expecter) ChunkDataPackByChunkID(identifier interface{}) *ExecutionState_ChunkDataPackByChunkID_Call
- func (_e *ExecutionState_Expecter) CreateStorageSnapshot(blockID interface{}) *ExecutionState_CreateStorageSnapshot_Call
- func (_e *ExecutionState_Expecter) GetExecutionResultID(context1 interface{}, identifier interface{}) *ExecutionState_GetExecutionResultID_Call
- func (_e *ExecutionState_Expecter) GetHighestFinalizedExecuted() *ExecutionState_GetHighestFinalizedExecuted_Call
- func (_e *ExecutionState_Expecter) GetLastExecutedBlockID(context1 interface{}) *ExecutionState_GetLastExecutedBlockID_Call
- func (_e *ExecutionState_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *ExecutionState_IsBlockExecuted_Call
- func (_e *ExecutionState_Expecter) NewStorageSnapshot(commit interface{}, blockID interface{}, height interface{}) *ExecutionState_NewStorageSnapshot_Call
- func (_e *ExecutionState_Expecter) SaveExecutionResults(ctx interface{}, result interface{}) *ExecutionState_SaveExecutionResults_Call
- func (_e *ExecutionState_Expecter) StateCommitmentByBlockID(identifier interface{}) *ExecutionState_StateCommitmentByBlockID_Call
- func (_e *ExecutionState_Expecter) UpdateLastExecutedBlock(context1 interface{}, identifier interface{}) *ExecutionState_UpdateLastExecutedBlock_Call
- type ExecutionState_GetExecutionResultID_Call
- func (_c *ExecutionState_GetExecutionResultID_Call) Return(identifier1 flow.Identifier, err error) *ExecutionState_GetExecutionResultID_Call
- func (_c *ExecutionState_GetExecutionResultID_Call) Run(run func(context1 context.Context, identifier flow.Identifier)) *ExecutionState_GetExecutionResultID_Call
- func (_c *ExecutionState_GetExecutionResultID_Call) RunAndReturn(...) *ExecutionState_GetExecutionResultID_Call
- type ExecutionState_GetHighestFinalizedExecuted_Call
- func (_c *ExecutionState_GetHighestFinalizedExecuted_Call) Return(v uint64, err error) *ExecutionState_GetHighestFinalizedExecuted_Call
- func (_c *ExecutionState_GetHighestFinalizedExecuted_Call) Run(run func()) *ExecutionState_GetHighestFinalizedExecuted_Call
- func (_c *ExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn(run func() (uint64, error)) *ExecutionState_GetHighestFinalizedExecuted_Call
- type ExecutionState_GetLastExecutedBlockID_Call
- func (_c *ExecutionState_GetLastExecutedBlockID_Call) Return(v uint64, identifier flow.Identifier, err error) *ExecutionState_GetLastExecutedBlockID_Call
- func (_c *ExecutionState_GetLastExecutedBlockID_Call) Run(run func(context1 context.Context)) *ExecutionState_GetLastExecutedBlockID_Call
- func (_c *ExecutionState_GetLastExecutedBlockID_Call) RunAndReturn(run func(context1 context.Context) (uint64, flow.Identifier, error)) *ExecutionState_GetLastExecutedBlockID_Call
- type ExecutionState_IsBlockExecuted_Call
- func (_c *ExecutionState_IsBlockExecuted_Call) Return(b bool, err error) *ExecutionState_IsBlockExecuted_Call
- func (_c *ExecutionState_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *ExecutionState_IsBlockExecuted_Call
- func (_c *ExecutionState_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *ExecutionState_IsBlockExecuted_Call
- type ExecutionState_NewStorageSnapshot_Call
- func (_c *ExecutionState_NewStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot) *ExecutionState_NewStorageSnapshot_Call
- func (_c *ExecutionState_NewStorageSnapshot_Call) Run(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64)) *ExecutionState_NewStorageSnapshot_Call
- func (_c *ExecutionState_NewStorageSnapshot_Call) RunAndReturn(...) *ExecutionState_NewStorageSnapshot_Call
- type ExecutionState_SaveExecutionResults_Call
- func (_c *ExecutionState_SaveExecutionResults_Call) Return(err error) *ExecutionState_SaveExecutionResults_Call
- func (_c *ExecutionState_SaveExecutionResults_Call) Run(run func(ctx context.Context, result *execution.ComputationResult)) *ExecutionState_SaveExecutionResults_Call
- func (_c *ExecutionState_SaveExecutionResults_Call) RunAndReturn(run func(ctx context.Context, result *execution.ComputationResult) error) *ExecutionState_SaveExecutionResults_Call
- type ExecutionState_StateCommitmentByBlockID_Call
- func (_c *ExecutionState_StateCommitmentByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *ExecutionState_StateCommitmentByBlockID_Call
- func (_c *ExecutionState_StateCommitmentByBlockID_Call) Run(run func(identifier flow.Identifier)) *ExecutionState_StateCommitmentByBlockID_Call
- func (_c *ExecutionState_StateCommitmentByBlockID_Call) RunAndReturn(run func(identifier flow.Identifier) (flow.StateCommitment, error)) *ExecutionState_StateCommitmentByBlockID_Call
- type ExecutionState_UpdateLastExecutedBlock_Call
- func (_c *ExecutionState_UpdateLastExecutedBlock_Call) Return(err error) *ExecutionState_UpdateLastExecutedBlock_Call
- func (_c *ExecutionState_UpdateLastExecutedBlock_Call) Run(run func(context1 context.Context, identifier flow.Identifier)) *ExecutionState_UpdateLastExecutedBlock_Call
- func (_c *ExecutionState_UpdateLastExecutedBlock_Call) RunAndReturn(run func(context1 context.Context, identifier flow.Identifier) error) *ExecutionState_UpdateLastExecutedBlock_Call
- type FinalizedExecutionState
- type FinalizedExecutionState_Expecter
- type FinalizedExecutionState_GetHighestFinalizedExecuted_Call
- func (_c *FinalizedExecutionState_GetHighestFinalizedExecuted_Call) Return(v uint64, err error) *FinalizedExecutionState_GetHighestFinalizedExecuted_Call
- func (_c *FinalizedExecutionState_GetHighestFinalizedExecuted_Call) Run(run func()) *FinalizedExecutionState_GetHighestFinalizedExecuted_Call
- func (_c *FinalizedExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn(run func() (uint64, error)) *FinalizedExecutionState_GetHighestFinalizedExecuted_Call
- type ReadOnlyExecutionState
- func (_mock *ReadOnlyExecutionState) ChunkDataPackByChunkID(identifier flow.Identifier) (*flow.ChunkDataPack, error)
- func (_mock *ReadOnlyExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)
- func (_m *ReadOnlyExecutionState) EXPECT() *ReadOnlyExecutionState_Expecter
- func (_mock *ReadOnlyExecutionState) GetExecutionResultID(context1 context.Context, identifier flow.Identifier) (flow.Identifier, error)
- func (_mock *ReadOnlyExecutionState) GetLastExecutedBlockID(context1 context.Context) (uint64, flow.Identifier, error)
- func (_mock *ReadOnlyExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_mock *ReadOnlyExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot
- func (_mock *ReadOnlyExecutionState) StateCommitmentByBlockID(identifier flow.Identifier) (flow.StateCommitment, error)
- type ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
- func (_c *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Return(chunkDataPack *flow.ChunkDataPack, err error) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
- func (_c *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Run(run func(identifier flow.Identifier)) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
- func (_c *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn(run func(identifier flow.Identifier) (*flow.ChunkDataPack, error)) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
- type ReadOnlyExecutionState_CreateStorageSnapshot_Call
- func (_c *ReadOnlyExecutionState_CreateStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot, header *flow.Header, err error) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
- func (_c *ReadOnlyExecutionState_CreateStorageSnapshot_Call) Run(run func(blockID flow.Identifier)) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
- func (_c *ReadOnlyExecutionState_CreateStorageSnapshot_Call) RunAndReturn(...) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
- type ReadOnlyExecutionState_Expecter
- func (_e *ReadOnlyExecutionState_Expecter) ChunkDataPackByChunkID(identifier interface{}) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
- func (_e *ReadOnlyExecutionState_Expecter) CreateStorageSnapshot(blockID interface{}) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
- func (_e *ReadOnlyExecutionState_Expecter) GetExecutionResultID(context1 interface{}, identifier interface{}) *ReadOnlyExecutionState_GetExecutionResultID_Call
- func (_e *ReadOnlyExecutionState_Expecter) GetLastExecutedBlockID(context1 interface{}) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
- func (_e *ReadOnlyExecutionState_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *ReadOnlyExecutionState_IsBlockExecuted_Call
- func (_e *ReadOnlyExecutionState_Expecter) NewStorageSnapshot(commit interface{}, blockID interface{}, height interface{}) *ReadOnlyExecutionState_NewStorageSnapshot_Call
- func (_e *ReadOnlyExecutionState_Expecter) StateCommitmentByBlockID(identifier interface{}) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
- type ReadOnlyExecutionState_GetExecutionResultID_Call
- func (_c *ReadOnlyExecutionState_GetExecutionResultID_Call) Return(identifier1 flow.Identifier, err error) *ReadOnlyExecutionState_GetExecutionResultID_Call
- func (_c *ReadOnlyExecutionState_GetExecutionResultID_Call) Run(run func(context1 context.Context, identifier flow.Identifier)) *ReadOnlyExecutionState_GetExecutionResultID_Call
- func (_c *ReadOnlyExecutionState_GetExecutionResultID_Call) RunAndReturn(...) *ReadOnlyExecutionState_GetExecutionResultID_Call
- type ReadOnlyExecutionState_GetLastExecutedBlockID_Call
- func (_c *ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Return(v uint64, identifier flow.Identifier, err error) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
- func (_c *ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Run(run func(context1 context.Context)) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
- func (_c *ReadOnlyExecutionState_GetLastExecutedBlockID_Call) RunAndReturn(run func(context1 context.Context) (uint64, flow.Identifier, error)) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
- type ReadOnlyExecutionState_IsBlockExecuted_Call
- func (_c *ReadOnlyExecutionState_IsBlockExecuted_Call) Return(b bool, err error) *ReadOnlyExecutionState_IsBlockExecuted_Call
- func (_c *ReadOnlyExecutionState_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *ReadOnlyExecutionState_IsBlockExecuted_Call
- func (_c *ReadOnlyExecutionState_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *ReadOnlyExecutionState_IsBlockExecuted_Call
- type ReadOnlyExecutionState_NewStorageSnapshot_Call
- func (_c *ReadOnlyExecutionState_NewStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot) *ReadOnlyExecutionState_NewStorageSnapshot_Call
- func (_c *ReadOnlyExecutionState_NewStorageSnapshot_Call) Run(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64)) *ReadOnlyExecutionState_NewStorageSnapshot_Call
- func (_c *ReadOnlyExecutionState_NewStorageSnapshot_Call) RunAndReturn(...) *ReadOnlyExecutionState_NewStorageSnapshot_Call
- type ReadOnlyExecutionState_StateCommitmentByBlockID_Call
- func (_c *ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
- func (_c *ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Run(run func(identifier flow.Identifier)) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
- func (_c *ReadOnlyExecutionState_StateCommitmentByBlockID_Call) RunAndReturn(run func(identifier flow.Identifier) (flow.StateCommitment, error)) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
- type RegisterUpdatesHolder
- type RegisterUpdatesHolder_Expecter
- type RegisterUpdatesHolder_UpdatedRegisterSet_Call
- func (_c *RegisterUpdatesHolder_UpdatedRegisterSet_Call) Return(registerIDToV map[flow.RegisterID]flow.RegisterValue) *RegisterUpdatesHolder_UpdatedRegisterSet_Call
- func (_c *RegisterUpdatesHolder_UpdatedRegisterSet_Call) Run(run func()) *RegisterUpdatesHolder_UpdatedRegisterSet_Call
- func (_c *RegisterUpdatesHolder_UpdatedRegisterSet_Call) RunAndReturn(run func() map[flow.RegisterID]flow.RegisterValue) *RegisterUpdatesHolder_UpdatedRegisterSet_Call
- type RegisterUpdatesHolder_UpdatedRegisters_Call
- func (_c *RegisterUpdatesHolder_UpdatedRegisters_Call) Return(registerEntries flow.RegisterEntries) *RegisterUpdatesHolder_UpdatedRegisters_Call
- func (_c *RegisterUpdatesHolder_UpdatedRegisters_Call) Run(run func()) *RegisterUpdatesHolder_UpdatedRegisters_Call
- func (_c *RegisterUpdatesHolder_UpdatedRegisters_Call) RunAndReturn(run func() flow.RegisterEntries) *RegisterUpdatesHolder_UpdatedRegisters_Call
- type ScriptExecutionState
- func (_mock *ScriptExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)
- func (_m *ScriptExecutionState) EXPECT() *ScriptExecutionState_Expecter
- func (_mock *ScriptExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_mock *ScriptExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot
- func (_mock *ScriptExecutionState) StateCommitmentByBlockID(identifier flow.Identifier) (flow.StateCommitment, error)
- type ScriptExecutionState_CreateStorageSnapshot_Call
- func (_c *ScriptExecutionState_CreateStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot, header *flow.Header, err error) *ScriptExecutionState_CreateStorageSnapshot_Call
- func (_c *ScriptExecutionState_CreateStorageSnapshot_Call) Run(run func(blockID flow.Identifier)) *ScriptExecutionState_CreateStorageSnapshot_Call
- func (_c *ScriptExecutionState_CreateStorageSnapshot_Call) RunAndReturn(...) *ScriptExecutionState_CreateStorageSnapshot_Call
- type ScriptExecutionState_Expecter
- func (_e *ScriptExecutionState_Expecter) CreateStorageSnapshot(blockID interface{}) *ScriptExecutionState_CreateStorageSnapshot_Call
- func (_e *ScriptExecutionState_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *ScriptExecutionState_IsBlockExecuted_Call
- func (_e *ScriptExecutionState_Expecter) NewStorageSnapshot(commit interface{}, blockID interface{}, height interface{}) *ScriptExecutionState_NewStorageSnapshot_Call
- func (_e *ScriptExecutionState_Expecter) StateCommitmentByBlockID(identifier interface{}) *ScriptExecutionState_StateCommitmentByBlockID_Call
- type ScriptExecutionState_IsBlockExecuted_Call
- func (_c *ScriptExecutionState_IsBlockExecuted_Call) Return(b bool, err error) *ScriptExecutionState_IsBlockExecuted_Call
- func (_c *ScriptExecutionState_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *ScriptExecutionState_IsBlockExecuted_Call
- func (_c *ScriptExecutionState_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *ScriptExecutionState_IsBlockExecuted_Call
- type ScriptExecutionState_NewStorageSnapshot_Call
- func (_c *ScriptExecutionState_NewStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot) *ScriptExecutionState_NewStorageSnapshot_Call
- func (_c *ScriptExecutionState_NewStorageSnapshot_Call) Run(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64)) *ScriptExecutionState_NewStorageSnapshot_Call
- func (_c *ScriptExecutionState_NewStorageSnapshot_Call) RunAndReturn(...) *ScriptExecutionState_NewStorageSnapshot_Call
- type ScriptExecutionState_StateCommitmentByBlockID_Call
- func (_c *ScriptExecutionState_StateCommitmentByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *ScriptExecutionState_StateCommitmentByBlockID_Call
- func (_c *ScriptExecutionState_StateCommitmentByBlockID_Call) Run(run func(identifier flow.Identifier)) *ScriptExecutionState_StateCommitmentByBlockID_Call
- func (_c *ScriptExecutionState_StateCommitmentByBlockID_Call) RunAndReturn(run func(identifier flow.Identifier) (flow.StateCommitment, error)) *ScriptExecutionState_StateCommitmentByBlockID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionState ¶
ExecutionState is an autogenerated mock type for the ExecutionState type
func NewExecutionState ¶ added in v0.26.1
func NewExecutionState(t interface {
mock.TestingT
Cleanup(func())
}) *ExecutionState
NewExecutionState creates a new instance of ExecutionState. 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 (*ExecutionState) ChunkDataPackByChunkID ¶
func (_mock *ExecutionState) ChunkDataPackByChunkID(identifier flow.Identifier) (*flow.ChunkDataPack, error)
ChunkDataPackByChunkID provides a mock function for the type ExecutionState
func (*ExecutionState) CreateStorageSnapshot ¶ added in v0.33.1
func (_mock *ExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)
CreateStorageSnapshot provides a mock function for the type ExecutionState
func (*ExecutionState) EXPECT ¶ added in v0.46.0
func (_m *ExecutionState) EXPECT() *ExecutionState_Expecter
func (*ExecutionState) GetExecutionResultID ¶
func (_mock *ExecutionState) GetExecutionResultID(context1 context.Context, identifier flow.Identifier) (flow.Identifier, error)
GetExecutionResultID provides a mock function for the type ExecutionState
func (*ExecutionState) GetHighestFinalizedExecuted ¶ added in v0.33.1
func (_mock *ExecutionState) GetHighestFinalizedExecuted() (uint64, error)
GetHighestFinalizedExecuted provides a mock function for the type ExecutionState
func (*ExecutionState) GetLastExecutedBlockID ¶ added in v0.38.0
func (_mock *ExecutionState) GetLastExecutedBlockID(context1 context.Context) (uint64, flow.Identifier, error)
GetLastExecutedBlockID provides a mock function for the type ExecutionState
func (*ExecutionState) IsBlockExecuted ¶ added in v0.33.1
func (_mock *ExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function for the type ExecutionState
func (*ExecutionState) NewStorageSnapshot ¶ added in v0.30.0
func (_mock *ExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot
NewStorageSnapshot provides a mock function for the type ExecutionState
func (*ExecutionState) SaveExecutionResults ¶ added in v0.22.0
func (_mock *ExecutionState) SaveExecutionResults(ctx context.Context, result *execution.ComputationResult) error
SaveExecutionResults provides a mock function for the type ExecutionState
func (*ExecutionState) StateCommitmentByBlockID ¶
func (_mock *ExecutionState) StateCommitmentByBlockID(identifier flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function for the type ExecutionState
func (*ExecutionState) UpdateLastExecutedBlock ¶ added in v0.38.0
func (_mock *ExecutionState) UpdateLastExecutedBlock(context1 context.Context, identifier flow.Identifier) error
UpdateLastExecutedBlock provides a mock function for the type ExecutionState
type ExecutionState_ChunkDataPackByChunkID_Call ¶ added in v0.46.0
ExecutionState_ChunkDataPackByChunkID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChunkDataPackByChunkID'
func (*ExecutionState_ChunkDataPackByChunkID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_ChunkDataPackByChunkID_Call) Return(chunkDataPack *flow.ChunkDataPack, err error) *ExecutionState_ChunkDataPackByChunkID_Call
func (*ExecutionState_ChunkDataPackByChunkID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_ChunkDataPackByChunkID_Call) Run(run func(identifier flow.Identifier)) *ExecutionState_ChunkDataPackByChunkID_Call
func (*ExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn(run func(identifier flow.Identifier) (*flow.ChunkDataPack, error)) *ExecutionState_ChunkDataPackByChunkID_Call
type ExecutionState_CreateStorageSnapshot_Call ¶ added in v0.46.0
ExecutionState_CreateStorageSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateStorageSnapshot'
func (*ExecutionState_CreateStorageSnapshot_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_CreateStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot, header *flow.Header, err error) *ExecutionState_CreateStorageSnapshot_Call
func (*ExecutionState_CreateStorageSnapshot_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_CreateStorageSnapshot_Call) Run(run func(blockID flow.Identifier)) *ExecutionState_CreateStorageSnapshot_Call
func (*ExecutionState_CreateStorageSnapshot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_CreateStorageSnapshot_Call) RunAndReturn(run func(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)) *ExecutionState_CreateStorageSnapshot_Call
type ExecutionState_Expecter ¶ added in v0.46.0
type ExecutionState_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutionState_Expecter) ChunkDataPackByChunkID ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) ChunkDataPackByChunkID(identifier interface{}) *ExecutionState_ChunkDataPackByChunkID_Call
ChunkDataPackByChunkID is a helper method to define mock.On call
- identifier flow.Identifier
func (*ExecutionState_Expecter) CreateStorageSnapshot ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) CreateStorageSnapshot(blockID interface{}) *ExecutionState_CreateStorageSnapshot_Call
CreateStorageSnapshot is a helper method to define mock.On call
- blockID flow.Identifier
func (*ExecutionState_Expecter) GetExecutionResultID ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) GetExecutionResultID(context1 interface{}, identifier interface{}) *ExecutionState_GetExecutionResultID_Call
GetExecutionResultID is a helper method to define mock.On call
- context1 context.Context
- identifier flow.Identifier
func (*ExecutionState_Expecter) GetHighestFinalizedExecuted ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) GetHighestFinalizedExecuted() *ExecutionState_GetHighestFinalizedExecuted_Call
GetHighestFinalizedExecuted is a helper method to define mock.On call
func (*ExecutionState_Expecter) GetLastExecutedBlockID ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) GetLastExecutedBlockID(context1 interface{}) *ExecutionState_GetLastExecutedBlockID_Call
GetLastExecutedBlockID is a helper method to define mock.On call
- context1 context.Context
func (*ExecutionState_Expecter) IsBlockExecuted ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *ExecutionState_IsBlockExecuted_Call
IsBlockExecuted is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
func (*ExecutionState_Expecter) NewStorageSnapshot ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) NewStorageSnapshot(commit interface{}, blockID interface{}, height interface{}) *ExecutionState_NewStorageSnapshot_Call
NewStorageSnapshot is a helper method to define mock.On call
- commit flow.StateCommitment
- blockID flow.Identifier
- height uint64
func (*ExecutionState_Expecter) SaveExecutionResults ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) SaveExecutionResults(ctx interface{}, result interface{}) *ExecutionState_SaveExecutionResults_Call
SaveExecutionResults is a helper method to define mock.On call
- ctx context.Context
- result *execution.ComputationResult
func (*ExecutionState_Expecter) StateCommitmentByBlockID ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) StateCommitmentByBlockID(identifier interface{}) *ExecutionState_StateCommitmentByBlockID_Call
StateCommitmentByBlockID is a helper method to define mock.On call
- identifier flow.Identifier
func (*ExecutionState_Expecter) UpdateLastExecutedBlock ¶ added in v0.46.0
func (_e *ExecutionState_Expecter) UpdateLastExecutedBlock(context1 interface{}, identifier interface{}) *ExecutionState_UpdateLastExecutedBlock_Call
UpdateLastExecutedBlock is a helper method to define mock.On call
- context1 context.Context
- identifier flow.Identifier
type ExecutionState_GetExecutionResultID_Call ¶ added in v0.46.0
ExecutionState_GetExecutionResultID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionResultID'
func (*ExecutionState_GetExecutionResultID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_GetExecutionResultID_Call) Return(identifier1 flow.Identifier, err error) *ExecutionState_GetExecutionResultID_Call
func (*ExecutionState_GetExecutionResultID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_GetExecutionResultID_Call) Run(run func(context1 context.Context, identifier flow.Identifier)) *ExecutionState_GetExecutionResultID_Call
func (*ExecutionState_GetExecutionResultID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_GetExecutionResultID_Call) RunAndReturn(run func(context1 context.Context, identifier flow.Identifier) (flow.Identifier, error)) *ExecutionState_GetExecutionResultID_Call
type ExecutionState_GetHighestFinalizedExecuted_Call ¶ added in v0.46.0
ExecutionState_GetHighestFinalizedExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHighestFinalizedExecuted'
func (*ExecutionState_GetHighestFinalizedExecuted_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_GetHighestFinalizedExecuted_Call) Return(v uint64, err error) *ExecutionState_GetHighestFinalizedExecuted_Call
func (*ExecutionState_GetHighestFinalizedExecuted_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_GetHighestFinalizedExecuted_Call) Run(run func()) *ExecutionState_GetHighestFinalizedExecuted_Call
func (*ExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn(run func() (uint64, error)) *ExecutionState_GetHighestFinalizedExecuted_Call
type ExecutionState_GetLastExecutedBlockID_Call ¶ added in v0.46.0
ExecutionState_GetLastExecutedBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastExecutedBlockID'
func (*ExecutionState_GetLastExecutedBlockID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_GetLastExecutedBlockID_Call) Return(v uint64, identifier flow.Identifier, err error) *ExecutionState_GetLastExecutedBlockID_Call
func (*ExecutionState_GetLastExecutedBlockID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_GetLastExecutedBlockID_Call) Run(run func(context1 context.Context)) *ExecutionState_GetLastExecutedBlockID_Call
func (*ExecutionState_GetLastExecutedBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_GetLastExecutedBlockID_Call) RunAndReturn(run func(context1 context.Context) (uint64, flow.Identifier, error)) *ExecutionState_GetLastExecutedBlockID_Call
type ExecutionState_IsBlockExecuted_Call ¶ added in v0.46.0
ExecutionState_IsBlockExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBlockExecuted'
func (*ExecutionState_IsBlockExecuted_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_IsBlockExecuted_Call) Return(b bool, err error) *ExecutionState_IsBlockExecuted_Call
func (*ExecutionState_IsBlockExecuted_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *ExecutionState_IsBlockExecuted_Call
func (*ExecutionState_IsBlockExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *ExecutionState_IsBlockExecuted_Call
type ExecutionState_NewStorageSnapshot_Call ¶ added in v0.46.0
ExecutionState_NewStorageSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewStorageSnapshot'
func (*ExecutionState_NewStorageSnapshot_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_NewStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot) *ExecutionState_NewStorageSnapshot_Call
func (*ExecutionState_NewStorageSnapshot_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_NewStorageSnapshot_Call) Run(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64)) *ExecutionState_NewStorageSnapshot_Call
func (*ExecutionState_NewStorageSnapshot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_NewStorageSnapshot_Call) RunAndReturn(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot) *ExecutionState_NewStorageSnapshot_Call
type ExecutionState_SaveExecutionResults_Call ¶ added in v0.46.0
ExecutionState_SaveExecutionResults_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveExecutionResults'
func (*ExecutionState_SaveExecutionResults_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_SaveExecutionResults_Call) Return(err error) *ExecutionState_SaveExecutionResults_Call
func (*ExecutionState_SaveExecutionResults_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_SaveExecutionResults_Call) Run(run func(ctx context.Context, result *execution.ComputationResult)) *ExecutionState_SaveExecutionResults_Call
func (*ExecutionState_SaveExecutionResults_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_SaveExecutionResults_Call) RunAndReturn(run func(ctx context.Context, result *execution.ComputationResult) error) *ExecutionState_SaveExecutionResults_Call
type ExecutionState_StateCommitmentByBlockID_Call ¶ added in v0.46.0
ExecutionState_StateCommitmentByBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StateCommitmentByBlockID'
func (*ExecutionState_StateCommitmentByBlockID_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_StateCommitmentByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *ExecutionState_StateCommitmentByBlockID_Call
func (*ExecutionState_StateCommitmentByBlockID_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_StateCommitmentByBlockID_Call) Run(run func(identifier flow.Identifier)) *ExecutionState_StateCommitmentByBlockID_Call
func (*ExecutionState_StateCommitmentByBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_StateCommitmentByBlockID_Call) RunAndReturn(run func(identifier flow.Identifier) (flow.StateCommitment, error)) *ExecutionState_StateCommitmentByBlockID_Call
type ExecutionState_UpdateLastExecutedBlock_Call ¶ added in v0.46.0
ExecutionState_UpdateLastExecutedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastExecutedBlock'
func (*ExecutionState_UpdateLastExecutedBlock_Call) Return ¶ added in v0.46.0
func (_c *ExecutionState_UpdateLastExecutedBlock_Call) Return(err error) *ExecutionState_UpdateLastExecutedBlock_Call
func (*ExecutionState_UpdateLastExecutedBlock_Call) Run ¶ added in v0.46.0
func (_c *ExecutionState_UpdateLastExecutedBlock_Call) Run(run func(context1 context.Context, identifier flow.Identifier)) *ExecutionState_UpdateLastExecutedBlock_Call
func (*ExecutionState_UpdateLastExecutedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutionState_UpdateLastExecutedBlock_Call) RunAndReturn(run func(context1 context.Context, identifier flow.Identifier) error) *ExecutionState_UpdateLastExecutedBlock_Call
type FinalizedExecutionState ¶ added in v0.33.1
FinalizedExecutionState is an autogenerated mock type for the FinalizedExecutionState type
func NewFinalizedExecutionState ¶ added in v0.33.1
func NewFinalizedExecutionState(t interface {
mock.TestingT
Cleanup(func())
}) *FinalizedExecutionState
NewFinalizedExecutionState creates a new instance of FinalizedExecutionState. 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 (*FinalizedExecutionState) EXPECT ¶ added in v0.46.0
func (_m *FinalizedExecutionState) EXPECT() *FinalizedExecutionState_Expecter
func (*FinalizedExecutionState) GetHighestFinalizedExecuted ¶ added in v0.33.1
func (_mock *FinalizedExecutionState) GetHighestFinalizedExecuted() (uint64, error)
GetHighestFinalizedExecuted provides a mock function for the type FinalizedExecutionState
type FinalizedExecutionState_Expecter ¶ added in v0.46.0
type FinalizedExecutionState_Expecter struct {
// contains filtered or unexported fields
}
func (*FinalizedExecutionState_Expecter) GetHighestFinalizedExecuted ¶ added in v0.46.0
func (_e *FinalizedExecutionState_Expecter) GetHighestFinalizedExecuted() *FinalizedExecutionState_GetHighestFinalizedExecuted_Call
GetHighestFinalizedExecuted is a helper method to define mock.On call
type FinalizedExecutionState_GetHighestFinalizedExecuted_Call ¶ added in v0.46.0
FinalizedExecutionState_GetHighestFinalizedExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHighestFinalizedExecuted'
func (*FinalizedExecutionState_GetHighestFinalizedExecuted_Call) Run ¶ added in v0.46.0
func (_c *FinalizedExecutionState_GetHighestFinalizedExecuted_Call) Run(run func()) *FinalizedExecutionState_GetHighestFinalizedExecuted_Call
func (*FinalizedExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FinalizedExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn(run func() (uint64, error)) *FinalizedExecutionState_GetHighestFinalizedExecuted_Call
type ReadOnlyExecutionState ¶
ReadOnlyExecutionState is an autogenerated mock type for the ReadOnlyExecutionState type
func NewReadOnlyExecutionState ¶ added in v0.26.1
func NewReadOnlyExecutionState(t interface {
mock.TestingT
Cleanup(func())
}) *ReadOnlyExecutionState
NewReadOnlyExecutionState creates a new instance of ReadOnlyExecutionState. 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 (*ReadOnlyExecutionState) ChunkDataPackByChunkID ¶
func (_mock *ReadOnlyExecutionState) ChunkDataPackByChunkID(identifier flow.Identifier) (*flow.ChunkDataPack, error)
ChunkDataPackByChunkID provides a mock function for the type ReadOnlyExecutionState
func (*ReadOnlyExecutionState) CreateStorageSnapshot ¶ added in v0.33.1
func (_mock *ReadOnlyExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)
CreateStorageSnapshot provides a mock function for the type ReadOnlyExecutionState
func (*ReadOnlyExecutionState) EXPECT ¶ added in v0.46.0
func (_m *ReadOnlyExecutionState) EXPECT() *ReadOnlyExecutionState_Expecter
func (*ReadOnlyExecutionState) GetExecutionResultID ¶
func (_mock *ReadOnlyExecutionState) GetExecutionResultID(context1 context.Context, identifier flow.Identifier) (flow.Identifier, error)
GetExecutionResultID provides a mock function for the type ReadOnlyExecutionState
func (*ReadOnlyExecutionState) GetLastExecutedBlockID ¶ added in v0.38.0
func (_mock *ReadOnlyExecutionState) GetLastExecutedBlockID(context1 context.Context) (uint64, flow.Identifier, error)
GetLastExecutedBlockID provides a mock function for the type ReadOnlyExecutionState
func (*ReadOnlyExecutionState) IsBlockExecuted ¶ added in v0.33.1
func (_mock *ReadOnlyExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function for the type ReadOnlyExecutionState
func (*ReadOnlyExecutionState) NewStorageSnapshot ¶ added in v0.30.0
func (_mock *ReadOnlyExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot
NewStorageSnapshot provides a mock function for the type ReadOnlyExecutionState
func (*ReadOnlyExecutionState) StateCommitmentByBlockID ¶
func (_mock *ReadOnlyExecutionState) StateCommitmentByBlockID(identifier flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function for the type ReadOnlyExecutionState
type ReadOnlyExecutionState_ChunkDataPackByChunkID_Call ¶ added in v0.46.0
ReadOnlyExecutionState_ChunkDataPackByChunkID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChunkDataPackByChunkID'
func (*ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Return(chunkDataPack *flow.ChunkDataPack, err error) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
func (*ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Run(run func(identifier flow.Identifier)) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
func (*ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn(run func(identifier flow.Identifier) (*flow.ChunkDataPack, error)) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
type ReadOnlyExecutionState_CreateStorageSnapshot_Call ¶ added in v0.46.0
ReadOnlyExecutionState_CreateStorageSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateStorageSnapshot'
func (*ReadOnlyExecutionState_CreateStorageSnapshot_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_CreateStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot, header *flow.Header, err error) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
func (*ReadOnlyExecutionState_CreateStorageSnapshot_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_CreateStorageSnapshot_Call) Run(run func(blockID flow.Identifier)) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
func (*ReadOnlyExecutionState_CreateStorageSnapshot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_CreateStorageSnapshot_Call) RunAndReturn(run func(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
type ReadOnlyExecutionState_Expecter ¶ added in v0.46.0
type ReadOnlyExecutionState_Expecter struct {
// contains filtered or unexported fields
}
func (*ReadOnlyExecutionState_Expecter) ChunkDataPackByChunkID ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) ChunkDataPackByChunkID(identifier interface{}) *ReadOnlyExecutionState_ChunkDataPackByChunkID_Call
ChunkDataPackByChunkID is a helper method to define mock.On call
- identifier flow.Identifier
func (*ReadOnlyExecutionState_Expecter) CreateStorageSnapshot ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) CreateStorageSnapshot(blockID interface{}) *ReadOnlyExecutionState_CreateStorageSnapshot_Call
CreateStorageSnapshot is a helper method to define mock.On call
- blockID flow.Identifier
func (*ReadOnlyExecutionState_Expecter) GetExecutionResultID ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) GetExecutionResultID(context1 interface{}, identifier interface{}) *ReadOnlyExecutionState_GetExecutionResultID_Call
GetExecutionResultID is a helper method to define mock.On call
- context1 context.Context
- identifier flow.Identifier
func (*ReadOnlyExecutionState_Expecter) GetLastExecutedBlockID ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) GetLastExecutedBlockID(context1 interface{}) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
GetLastExecutedBlockID is a helper method to define mock.On call
- context1 context.Context
func (*ReadOnlyExecutionState_Expecter) IsBlockExecuted ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *ReadOnlyExecutionState_IsBlockExecuted_Call
IsBlockExecuted is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
func (*ReadOnlyExecutionState_Expecter) NewStorageSnapshot ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) NewStorageSnapshot(commit interface{}, blockID interface{}, height interface{}) *ReadOnlyExecutionState_NewStorageSnapshot_Call
NewStorageSnapshot is a helper method to define mock.On call
- commit flow.StateCommitment
- blockID flow.Identifier
- height uint64
func (*ReadOnlyExecutionState_Expecter) StateCommitmentByBlockID ¶ added in v0.46.0
func (_e *ReadOnlyExecutionState_Expecter) StateCommitmentByBlockID(identifier interface{}) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
StateCommitmentByBlockID is a helper method to define mock.On call
- identifier flow.Identifier
type ReadOnlyExecutionState_GetExecutionResultID_Call ¶ added in v0.46.0
ReadOnlyExecutionState_GetExecutionResultID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionResultID'
func (*ReadOnlyExecutionState_GetExecutionResultID_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_GetExecutionResultID_Call) Return(identifier1 flow.Identifier, err error) *ReadOnlyExecutionState_GetExecutionResultID_Call
func (*ReadOnlyExecutionState_GetExecutionResultID_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_GetExecutionResultID_Call) Run(run func(context1 context.Context, identifier flow.Identifier)) *ReadOnlyExecutionState_GetExecutionResultID_Call
func (*ReadOnlyExecutionState_GetExecutionResultID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_GetExecutionResultID_Call) RunAndReturn(run func(context1 context.Context, identifier flow.Identifier) (flow.Identifier, error)) *ReadOnlyExecutionState_GetExecutionResultID_Call
type ReadOnlyExecutionState_GetLastExecutedBlockID_Call ¶ added in v0.46.0
ReadOnlyExecutionState_GetLastExecutedBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastExecutedBlockID'
func (*ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Return(v uint64, identifier flow.Identifier, err error) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
func (*ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Run(run func(context1 context.Context)) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
func (*ReadOnlyExecutionState_GetLastExecutedBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_GetLastExecutedBlockID_Call) RunAndReturn(run func(context1 context.Context) (uint64, flow.Identifier, error)) *ReadOnlyExecutionState_GetLastExecutedBlockID_Call
type ReadOnlyExecutionState_IsBlockExecuted_Call ¶ added in v0.46.0
ReadOnlyExecutionState_IsBlockExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBlockExecuted'
func (*ReadOnlyExecutionState_IsBlockExecuted_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_IsBlockExecuted_Call) Return(b bool, err error) *ReadOnlyExecutionState_IsBlockExecuted_Call
func (*ReadOnlyExecutionState_IsBlockExecuted_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *ReadOnlyExecutionState_IsBlockExecuted_Call
func (*ReadOnlyExecutionState_IsBlockExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *ReadOnlyExecutionState_IsBlockExecuted_Call
type ReadOnlyExecutionState_NewStorageSnapshot_Call ¶ added in v0.46.0
ReadOnlyExecutionState_NewStorageSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewStorageSnapshot'
func (*ReadOnlyExecutionState_NewStorageSnapshot_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_NewStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot) *ReadOnlyExecutionState_NewStorageSnapshot_Call
func (*ReadOnlyExecutionState_NewStorageSnapshot_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_NewStorageSnapshot_Call) Run(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64)) *ReadOnlyExecutionState_NewStorageSnapshot_Call
func (*ReadOnlyExecutionState_NewStorageSnapshot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_NewStorageSnapshot_Call) RunAndReturn(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot) *ReadOnlyExecutionState_NewStorageSnapshot_Call
type ReadOnlyExecutionState_StateCommitmentByBlockID_Call ¶ added in v0.46.0
ReadOnlyExecutionState_StateCommitmentByBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StateCommitmentByBlockID'
func (*ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Return ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
func (*ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Run ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Run(run func(identifier flow.Identifier)) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
func (*ReadOnlyExecutionState_StateCommitmentByBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ReadOnlyExecutionState_StateCommitmentByBlockID_Call) RunAndReturn(run func(identifier flow.Identifier) (flow.StateCommitment, error)) *ReadOnlyExecutionState_StateCommitmentByBlockID_Call
type RegisterUpdatesHolder ¶ added in v0.16.1
RegisterUpdatesHolder is an autogenerated mock type for the RegisterUpdatesHolder type
func NewRegisterUpdatesHolder ¶ added in v0.26.1
func NewRegisterUpdatesHolder(t interface {
mock.TestingT
Cleanup(func())
}) *RegisterUpdatesHolder
NewRegisterUpdatesHolder creates a new instance of RegisterUpdatesHolder. 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 (*RegisterUpdatesHolder) EXPECT ¶ added in v0.46.0
func (_m *RegisterUpdatesHolder) EXPECT() *RegisterUpdatesHolder_Expecter
func (*RegisterUpdatesHolder) UpdatedRegisterSet ¶ added in v0.33.1
func (_mock *RegisterUpdatesHolder) UpdatedRegisterSet() map[flow.RegisterID]flow.RegisterValue
UpdatedRegisterSet provides a mock function for the type RegisterUpdatesHolder
func (*RegisterUpdatesHolder) UpdatedRegisters ¶ added in v0.30.0
func (_mock *RegisterUpdatesHolder) UpdatedRegisters() flow.RegisterEntries
UpdatedRegisters provides a mock function for the type RegisterUpdatesHolder
type RegisterUpdatesHolder_Expecter ¶ added in v0.46.0
type RegisterUpdatesHolder_Expecter struct {
// contains filtered or unexported fields
}
func (*RegisterUpdatesHolder_Expecter) UpdatedRegisterSet ¶ added in v0.46.0
func (_e *RegisterUpdatesHolder_Expecter) UpdatedRegisterSet() *RegisterUpdatesHolder_UpdatedRegisterSet_Call
UpdatedRegisterSet is a helper method to define mock.On call
func (*RegisterUpdatesHolder_Expecter) UpdatedRegisters ¶ added in v0.46.0
func (_e *RegisterUpdatesHolder_Expecter) UpdatedRegisters() *RegisterUpdatesHolder_UpdatedRegisters_Call
UpdatedRegisters is a helper method to define mock.On call
type RegisterUpdatesHolder_UpdatedRegisterSet_Call ¶ added in v0.46.0
RegisterUpdatesHolder_UpdatedRegisterSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatedRegisterSet'
func (*RegisterUpdatesHolder_UpdatedRegisterSet_Call) Return ¶ added in v0.46.0
func (_c *RegisterUpdatesHolder_UpdatedRegisterSet_Call) Return(registerIDToV map[flow.RegisterID]flow.RegisterValue) *RegisterUpdatesHolder_UpdatedRegisterSet_Call
func (*RegisterUpdatesHolder_UpdatedRegisterSet_Call) Run ¶ added in v0.46.0
func (_c *RegisterUpdatesHolder_UpdatedRegisterSet_Call) Run(run func()) *RegisterUpdatesHolder_UpdatedRegisterSet_Call
func (*RegisterUpdatesHolder_UpdatedRegisterSet_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterUpdatesHolder_UpdatedRegisterSet_Call) RunAndReturn(run func() map[flow.RegisterID]flow.RegisterValue) *RegisterUpdatesHolder_UpdatedRegisterSet_Call
type RegisterUpdatesHolder_UpdatedRegisters_Call ¶ added in v0.46.0
RegisterUpdatesHolder_UpdatedRegisters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatedRegisters'
func (*RegisterUpdatesHolder_UpdatedRegisters_Call) Return ¶ added in v0.46.0
func (_c *RegisterUpdatesHolder_UpdatedRegisters_Call) Return(registerEntries flow.RegisterEntries) *RegisterUpdatesHolder_UpdatedRegisters_Call
func (*RegisterUpdatesHolder_UpdatedRegisters_Call) Run ¶ added in v0.46.0
func (_c *RegisterUpdatesHolder_UpdatedRegisters_Call) Run(run func()) *RegisterUpdatesHolder_UpdatedRegisters_Call
func (*RegisterUpdatesHolder_UpdatedRegisters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterUpdatesHolder_UpdatedRegisters_Call) RunAndReturn(run func() flow.RegisterEntries) *RegisterUpdatesHolder_UpdatedRegisters_Call
type ScriptExecutionState ¶ added in v0.32.0
ScriptExecutionState is an autogenerated mock type for the ScriptExecutionState type
func NewScriptExecutionState ¶ added in v0.32.0
func NewScriptExecutionState(t interface {
mock.TestingT
Cleanup(func())
}) *ScriptExecutionState
NewScriptExecutionState creates a new instance of ScriptExecutionState. 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 (*ScriptExecutionState) CreateStorageSnapshot ¶ added in v0.33.1
func (_mock *ScriptExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)
CreateStorageSnapshot provides a mock function for the type ScriptExecutionState
func (*ScriptExecutionState) EXPECT ¶ added in v0.46.0
func (_m *ScriptExecutionState) EXPECT() *ScriptExecutionState_Expecter
func (*ScriptExecutionState) IsBlockExecuted ¶ added in v0.33.1
func (_mock *ScriptExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function for the type ScriptExecutionState
func (*ScriptExecutionState) NewStorageSnapshot ¶ added in v0.32.0
func (_mock *ScriptExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot
NewStorageSnapshot provides a mock function for the type ScriptExecutionState
func (*ScriptExecutionState) StateCommitmentByBlockID ¶ added in v0.32.0
func (_mock *ScriptExecutionState) StateCommitmentByBlockID(identifier flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function for the type ScriptExecutionState
type ScriptExecutionState_CreateStorageSnapshot_Call ¶ added in v0.46.0
ScriptExecutionState_CreateStorageSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateStorageSnapshot'
func (*ScriptExecutionState_CreateStorageSnapshot_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutionState_CreateStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot, header *flow.Header, err error) *ScriptExecutionState_CreateStorageSnapshot_Call
func (*ScriptExecutionState_CreateStorageSnapshot_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutionState_CreateStorageSnapshot_Call) Run(run func(blockID flow.Identifier)) *ScriptExecutionState_CreateStorageSnapshot_Call
func (*ScriptExecutionState_CreateStorageSnapshot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutionState_CreateStorageSnapshot_Call) RunAndReturn(run func(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)) *ScriptExecutionState_CreateStorageSnapshot_Call
type ScriptExecutionState_Expecter ¶ added in v0.46.0
type ScriptExecutionState_Expecter struct {
// contains filtered or unexported fields
}
func (*ScriptExecutionState_Expecter) CreateStorageSnapshot ¶ added in v0.46.0
func (_e *ScriptExecutionState_Expecter) CreateStorageSnapshot(blockID interface{}) *ScriptExecutionState_CreateStorageSnapshot_Call
CreateStorageSnapshot is a helper method to define mock.On call
- blockID flow.Identifier
func (*ScriptExecutionState_Expecter) IsBlockExecuted ¶ added in v0.46.0
func (_e *ScriptExecutionState_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *ScriptExecutionState_IsBlockExecuted_Call
IsBlockExecuted is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
func (*ScriptExecutionState_Expecter) NewStorageSnapshot ¶ added in v0.46.0
func (_e *ScriptExecutionState_Expecter) NewStorageSnapshot(commit interface{}, blockID interface{}, height interface{}) *ScriptExecutionState_NewStorageSnapshot_Call
NewStorageSnapshot is a helper method to define mock.On call
- commit flow.StateCommitment
- blockID flow.Identifier
- height uint64
func (*ScriptExecutionState_Expecter) StateCommitmentByBlockID ¶ added in v0.46.0
func (_e *ScriptExecutionState_Expecter) StateCommitmentByBlockID(identifier interface{}) *ScriptExecutionState_StateCommitmentByBlockID_Call
StateCommitmentByBlockID is a helper method to define mock.On call
- identifier flow.Identifier
type ScriptExecutionState_IsBlockExecuted_Call ¶ added in v0.46.0
ScriptExecutionState_IsBlockExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBlockExecuted'
func (*ScriptExecutionState_IsBlockExecuted_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutionState_IsBlockExecuted_Call) Return(b bool, err error) *ScriptExecutionState_IsBlockExecuted_Call
func (*ScriptExecutionState_IsBlockExecuted_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutionState_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *ScriptExecutionState_IsBlockExecuted_Call
func (*ScriptExecutionState_IsBlockExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutionState_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *ScriptExecutionState_IsBlockExecuted_Call
type ScriptExecutionState_NewStorageSnapshot_Call ¶ added in v0.46.0
ScriptExecutionState_NewStorageSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewStorageSnapshot'
func (*ScriptExecutionState_NewStorageSnapshot_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutionState_NewStorageSnapshot_Call) Return(storageSnapshot snapshot.StorageSnapshot) *ScriptExecutionState_NewStorageSnapshot_Call
func (*ScriptExecutionState_NewStorageSnapshot_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutionState_NewStorageSnapshot_Call) Run(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64)) *ScriptExecutionState_NewStorageSnapshot_Call
func (*ScriptExecutionState_NewStorageSnapshot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutionState_NewStorageSnapshot_Call) RunAndReturn(run func(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot) *ScriptExecutionState_NewStorageSnapshot_Call
type ScriptExecutionState_StateCommitmentByBlockID_Call ¶ added in v0.46.0
ScriptExecutionState_StateCommitmentByBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StateCommitmentByBlockID'
func (*ScriptExecutionState_StateCommitmentByBlockID_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutionState_StateCommitmentByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *ScriptExecutionState_StateCommitmentByBlockID_Call
func (*ScriptExecutionState_StateCommitmentByBlockID_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutionState_StateCommitmentByBlockID_Call) Run(run func(identifier flow.Identifier)) *ScriptExecutionState_StateCommitmentByBlockID_Call
func (*ScriptExecutionState_StateCommitmentByBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutionState_StateCommitmentByBlockID_Call) RunAndReturn(run func(identifier flow.Identifier) (flow.StateCommitment, error)) *ScriptExecutionState_StateCommitmentByBlockID_Call