Documentation ¶
Index ¶
- type ExecutionState
- func (_m *ExecutionState) ChunkDataPackByChunkID(_a0 flow.Identifier) (*flow.ChunkDataPack, error)
- func (_m *ExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
- func (_m *ExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
- func (_m *ExecutionState) HasState(_a0 flow.StateCommitment) bool
- func (_m *ExecutionState) NewStorageSnapshot(_a0 flow.StateCommitment) snapshot.StorageSnapshot
- func (_m *ExecutionState) SaveExecutionResults(ctx context.Context, result *execution.ComputationResult) error
- func (_m *ExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
- func (_m *ExecutionState) UpdateHighestExecutedBlockIfHigher(_a0 context.Context, _a1 *flow.Header) error
- type ReadOnlyExecutionState
- func (_m *ReadOnlyExecutionState) ChunkDataPackByChunkID(_a0 flow.Identifier) (*flow.ChunkDataPack, error)
- func (_m *ReadOnlyExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
- func (_m *ReadOnlyExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
- func (_m *ReadOnlyExecutionState) HasState(_a0 flow.StateCommitment) bool
- func (_m *ReadOnlyExecutionState) NewStorageSnapshot(_a0 flow.StateCommitment) snapshot.StorageSnapshot
- func (_m *ReadOnlyExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
- type RegisterUpdatesHolder
- type ScriptExecutionState
- func (_m *ScriptExecutionState) HasState(_a0 flow.StateCommitment) bool
- func (_m *ScriptExecutionState) NewStorageSnapshot(_a0 flow.StateCommitment) snapshot.StorageSnapshot
- func (_m *ScriptExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
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 mockConstructorTestingTNewExecutionState) *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.
func (*ExecutionState) ChunkDataPackByChunkID ¶
func (_m *ExecutionState) ChunkDataPackByChunkID(_a0 flow.Identifier) (*flow.ChunkDataPack, error)
ChunkDataPackByChunkID provides a mock function with given fields: _a0
func (*ExecutionState) GetExecutionResultID ¶
func (_m *ExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
GetExecutionResultID provides a mock function with given fields: _a0, _a1
func (*ExecutionState) GetHighestExecutedBlockID ¶
func (_m *ExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
GetHighestExecutedBlockID provides a mock function with given fields: _a0
func (*ExecutionState) HasState ¶ added in v0.26.16
func (_m *ExecutionState) HasState(_a0 flow.StateCommitment) bool
HasState provides a mock function with given fields: _a0
func (*ExecutionState) NewStorageSnapshot ¶ added in v0.30.0
func (_m *ExecutionState) NewStorageSnapshot(_a0 flow.StateCommitment) snapshot.StorageSnapshot
NewStorageSnapshot provides a mock function with given fields: _a0
func (*ExecutionState) SaveExecutionResults ¶ added in v0.22.0
func (_m *ExecutionState) SaveExecutionResults(ctx context.Context, result *execution.ComputationResult) error
SaveExecutionResults provides a mock function with given fields: ctx, result
func (*ExecutionState) StateCommitmentByBlockID ¶
func (_m *ExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1
func (*ExecutionState) UpdateHighestExecutedBlockIfHigher ¶
func (_m *ExecutionState) UpdateHighestExecutedBlockIfHigher(_a0 context.Context, _a1 *flow.Header) error
UpdateHighestExecutedBlockIfHigher provides a mock function with given fields: _a0, _a1
type ReadOnlyExecutionState ¶
ReadOnlyExecutionState is an autogenerated mock type for the ReadOnlyExecutionState type
func NewReadOnlyExecutionState ¶ added in v0.26.1
func NewReadOnlyExecutionState(t mockConstructorTestingTNewReadOnlyExecutionState) *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.
func (*ReadOnlyExecutionState) ChunkDataPackByChunkID ¶
func (_m *ReadOnlyExecutionState) ChunkDataPackByChunkID(_a0 flow.Identifier) (*flow.ChunkDataPack, error)
ChunkDataPackByChunkID provides a mock function with given fields: _a0
func (*ReadOnlyExecutionState) GetExecutionResultID ¶
func (_m *ReadOnlyExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)
GetExecutionResultID provides a mock function with given fields: _a0, _a1
func (*ReadOnlyExecutionState) GetHighestExecutedBlockID ¶
func (_m *ReadOnlyExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)
GetHighestExecutedBlockID provides a mock function with given fields: _a0
func (*ReadOnlyExecutionState) HasState ¶ added in v0.26.16
func (_m *ReadOnlyExecutionState) HasState(_a0 flow.StateCommitment) bool
HasState provides a mock function with given fields: _a0
func (*ReadOnlyExecutionState) NewStorageSnapshot ¶ added in v0.30.0
func (_m *ReadOnlyExecutionState) NewStorageSnapshot(_a0 flow.StateCommitment) snapshot.StorageSnapshot
NewStorageSnapshot provides a mock function with given fields: _a0
func (*ReadOnlyExecutionState) StateCommitmentByBlockID ¶
func (_m *ReadOnlyExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1
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 mockConstructorTestingTNewRegisterUpdatesHolder) *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.
func (*RegisterUpdatesHolder) UpdatedRegisters ¶ added in v0.30.0
func (_m *RegisterUpdatesHolder) UpdatedRegisters() flow.RegisterEntries
UpdatedRegisters provides a mock function with given fields:
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 mockConstructorTestingTNewScriptExecutionState) *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.
func (*ScriptExecutionState) HasState ¶ added in v0.32.0
func (_m *ScriptExecutionState) HasState(_a0 flow.StateCommitment) bool
HasState provides a mock function with given fields: _a0
func (*ScriptExecutionState) NewStorageSnapshot ¶ added in v0.32.0
func (_m *ScriptExecutionState) NewStorageSnapshot(_a0 flow.StateCommitment) snapshot.StorageSnapshot
NewStorageSnapshot provides a mock function with given fields: _a0
func (*ScriptExecutionState) StateCommitmentByBlockID ¶ added in v0.32.0
func (_m *ScriptExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) (flow.StateCommitment, error)
StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1