Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.41.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionState

type ExecutionState struct {
	mock.Mock
}

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 (_m *ExecutionState) ChunkDataPackByChunkID(_a0 flow.Identifier) (*flow.ChunkDataPack, error)

ChunkDataPackByChunkID provides a mock function with given fields: _a0

func (*ExecutionState) CreateStorageSnapshot added in v0.33.1

func (_m *ExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)

CreateStorageSnapshot provides a mock function with given fields: blockID

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) GetHighestFinalizedExecuted added in v0.33.1

func (_m *ExecutionState) GetHighestFinalizedExecuted() (uint64, error)

GetHighestFinalizedExecuted provides a mock function with no fields

func (*ExecutionState) GetLastExecutedBlockID added in v0.38.0

func (_m *ExecutionState) GetLastExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)

GetLastExecutedBlockID provides a mock function with given fields: _a0

func (*ExecutionState) IsBlockExecuted added in v0.33.1

func (_m *ExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)

IsBlockExecuted provides a mock function with given fields: height, blockID

func (*ExecutionState) NewStorageSnapshot added in v0.30.0

func (_m *ExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot

NewStorageSnapshot provides a mock function with given fields: commit, blockID, height

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 flow.Identifier) (flow.StateCommitment, error)

StateCommitmentByBlockID provides a mock function with given fields: _a0

func (*ExecutionState) UpdateLastExecutedBlock added in v0.38.0

func (_m *ExecutionState) UpdateLastExecutedBlock(_a0 context.Context, _a1 flow.Identifier) error

UpdateLastExecutedBlock provides a mock function with given fields: _a0, _a1

type FinalizedExecutionState added in v0.33.1

type FinalizedExecutionState struct {
	mock.Mock
}

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) GetHighestFinalizedExecuted added in v0.33.1

func (_m *FinalizedExecutionState) GetHighestFinalizedExecuted() (uint64, error)

GetHighestFinalizedExecuted provides a mock function with no fields

type ReadOnlyExecutionState

type ReadOnlyExecutionState struct {
	mock.Mock
}

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 (_m *ReadOnlyExecutionState) ChunkDataPackByChunkID(_a0 flow.Identifier) (*flow.ChunkDataPack, error)

ChunkDataPackByChunkID provides a mock function with given fields: _a0

func (*ReadOnlyExecutionState) CreateStorageSnapshot added in v0.33.1

func (_m *ReadOnlyExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)

CreateStorageSnapshot provides a mock function with given fields: blockID

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) GetLastExecutedBlockID added in v0.38.0

func (_m *ReadOnlyExecutionState) GetLastExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)

GetLastExecutedBlockID provides a mock function with given fields: _a0

func (*ReadOnlyExecutionState) IsBlockExecuted added in v0.33.1

func (_m *ReadOnlyExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)

IsBlockExecuted provides a mock function with given fields: height, blockID

func (*ReadOnlyExecutionState) NewStorageSnapshot added in v0.30.0

func (_m *ReadOnlyExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot

NewStorageSnapshot provides a mock function with given fields: commit, blockID, height

func (*ReadOnlyExecutionState) StateCommitmentByBlockID

func (_m *ReadOnlyExecutionState) StateCommitmentByBlockID(_a0 flow.Identifier) (flow.StateCommitment, error)

StateCommitmentByBlockID provides a mock function with given fields: _a0

type RegisterUpdatesHolder added in v0.16.1

type RegisterUpdatesHolder struct {
	mock.Mock
}

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) UpdatedRegisterSet added in v0.33.1

func (_m *RegisterUpdatesHolder) UpdatedRegisterSet() map[flow.RegisterID][]byte

UpdatedRegisterSet provides a mock function with no fields

func (*RegisterUpdatesHolder) UpdatedRegisters added in v0.30.0

func (_m *RegisterUpdatesHolder) UpdatedRegisters() flow.RegisterEntries

UpdatedRegisters provides a mock function with no fields

type ScriptExecutionState added in v0.32.0

type ScriptExecutionState struct {
	mock.Mock
}

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 (_m *ScriptExecutionState) CreateStorageSnapshot(blockID flow.Identifier) (snapshot.StorageSnapshot, *flow.Header, error)

CreateStorageSnapshot provides a mock function with given fields: blockID

func (*ScriptExecutionState) IsBlockExecuted added in v0.33.1

func (_m *ScriptExecutionState) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)

IsBlockExecuted provides a mock function with given fields: height, blockID

func (*ScriptExecutionState) NewStorageSnapshot added in v0.32.0

func (_m *ScriptExecutionState) NewStorageSnapshot(commit flow.StateCommitment, blockID flow.Identifier, height uint64) snapshot.StorageSnapshot

NewStorageSnapshot provides a mock function with given fields: commit, blockID, height

func (*ScriptExecutionState) StateCommitmentByBlockID added in v0.32.0

func (_m *ScriptExecutionState) StateCommitmentByBlockID(_a0 flow.Identifier) (flow.StateCommitment, error)

StateCommitmentByBlockID provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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