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

mock

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 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 (_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 (*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

type ExecutionState_ChunkDataPackByChunkID_Call struct {
	*mock.Call
}

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 (*ExecutionState_ChunkDataPackByChunkID_Call) Run added in v0.46.0

func (*ExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn added in v0.46.0

type ExecutionState_CreateStorageSnapshot_Call added in v0.46.0

type ExecutionState_CreateStorageSnapshot_Call struct {
	*mock.Call
}

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 (*ExecutionState_CreateStorageSnapshot_Call) Run added in v0.46.0

func (*ExecutionState_CreateStorageSnapshot_Call) RunAndReturn added in v0.46.0

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

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

type ExecutionState_GetExecutionResultID_Call struct {
	*mock.Call
}

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 (*ExecutionState_GetExecutionResultID_Call) Run added in v0.46.0

func (*ExecutionState_GetExecutionResultID_Call) RunAndReturn added in v0.46.0

type ExecutionState_GetHighestFinalizedExecuted_Call added in v0.46.0

type ExecutionState_GetHighestFinalizedExecuted_Call struct {
	*mock.Call
}

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 (*ExecutionState_GetHighestFinalizedExecuted_Call) Run added in v0.46.0

func (*ExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn added in v0.46.0

type ExecutionState_GetLastExecutedBlockID_Call added in v0.46.0

type ExecutionState_GetLastExecutedBlockID_Call struct {
	*mock.Call
}

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 (*ExecutionState_GetLastExecutedBlockID_Call) Run added in v0.46.0

func (*ExecutionState_GetLastExecutedBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionState_IsBlockExecuted_Call added in v0.46.0

type ExecutionState_IsBlockExecuted_Call struct {
	*mock.Call
}

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 (*ExecutionState_IsBlockExecuted_Call) Run added in v0.46.0

func (*ExecutionState_IsBlockExecuted_Call) RunAndReturn added in v0.46.0

type ExecutionState_NewStorageSnapshot_Call added in v0.46.0

type ExecutionState_NewStorageSnapshot_Call struct {
	*mock.Call
}

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 (*ExecutionState_NewStorageSnapshot_Call) Run added in v0.46.0

func (*ExecutionState_NewStorageSnapshot_Call) RunAndReturn added in v0.46.0

type ExecutionState_SaveExecutionResults_Call added in v0.46.0

type ExecutionState_SaveExecutionResults_Call struct {
	*mock.Call
}

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 (*ExecutionState_SaveExecutionResults_Call) Run added in v0.46.0

func (*ExecutionState_SaveExecutionResults_Call) RunAndReturn added in v0.46.0

type ExecutionState_StateCommitmentByBlockID_Call added in v0.46.0

type ExecutionState_StateCommitmentByBlockID_Call struct {
	*mock.Call
}

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 (*ExecutionState_StateCommitmentByBlockID_Call) Run added in v0.46.0

func (*ExecutionState_StateCommitmentByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionState_UpdateLastExecutedBlock_Call added in v0.46.0

type ExecutionState_UpdateLastExecutedBlock_Call struct {
	*mock.Call
}

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 (*ExecutionState_UpdateLastExecutedBlock_Call) Run added in v0.46.0

func (*ExecutionState_UpdateLastExecutedBlock_Call) RunAndReturn added in v0.46.0

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) EXPECT added in v0.46.0

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

GetHighestFinalizedExecuted is a helper method to define mock.On call

type FinalizedExecutionState_GetHighestFinalizedExecuted_Call added in v0.46.0

type FinalizedExecutionState_GetHighestFinalizedExecuted_Call struct {
	*mock.Call
}

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

func (*FinalizedExecutionState_GetHighestFinalizedExecuted_Call) Return added in v0.46.0

func (*FinalizedExecutionState_GetHighestFinalizedExecuted_Call) Run added in v0.46.0

func (*FinalizedExecutionState_GetHighestFinalizedExecuted_Call) RunAndReturn added in v0.46.0

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 (_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 (*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

type ReadOnlyExecutionState_ChunkDataPackByChunkID_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_ChunkDataPackByChunkID_Call) RunAndReturn added in v0.46.0

type ReadOnlyExecutionState_CreateStorageSnapshot_Call added in v0.46.0

type ReadOnlyExecutionState_CreateStorageSnapshot_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_CreateStorageSnapshot_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_CreateStorageSnapshot_Call) RunAndReturn added in v0.46.0

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

type ReadOnlyExecutionState_GetExecutionResultID_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_GetExecutionResultID_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_GetExecutionResultID_Call) RunAndReturn added in v0.46.0

type ReadOnlyExecutionState_GetLastExecutedBlockID_Call added in v0.46.0

type ReadOnlyExecutionState_GetLastExecutedBlockID_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_GetLastExecutedBlockID_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_GetLastExecutedBlockID_Call) RunAndReturn added in v0.46.0

type ReadOnlyExecutionState_IsBlockExecuted_Call added in v0.46.0

type ReadOnlyExecutionState_IsBlockExecuted_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_IsBlockExecuted_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_IsBlockExecuted_Call) RunAndReturn added in v0.46.0

type ReadOnlyExecutionState_NewStorageSnapshot_Call added in v0.46.0

type ReadOnlyExecutionState_NewStorageSnapshot_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_NewStorageSnapshot_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_NewStorageSnapshot_Call) RunAndReturn added in v0.46.0

type ReadOnlyExecutionState_StateCommitmentByBlockID_Call added in v0.46.0

type ReadOnlyExecutionState_StateCommitmentByBlockID_Call struct {
	*mock.Call
}

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 (*ReadOnlyExecutionState_StateCommitmentByBlockID_Call) Run added in v0.46.0

func (*ReadOnlyExecutionState_StateCommitmentByBlockID_Call) RunAndReturn added in v0.46.0

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) EXPECT added in v0.46.0

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

UpdatedRegisterSet is a helper method to define mock.On call

func (*RegisterUpdatesHolder_Expecter) UpdatedRegisters added in v0.46.0

UpdatedRegisters is a helper method to define mock.On call

type RegisterUpdatesHolder_UpdatedRegisterSet_Call added in v0.46.0

type RegisterUpdatesHolder_UpdatedRegisterSet_Call struct {
	*mock.Call
}

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 (*RegisterUpdatesHolder_UpdatedRegisterSet_Call) Run added in v0.46.0

func (*RegisterUpdatesHolder_UpdatedRegisterSet_Call) RunAndReturn added in v0.46.0

type RegisterUpdatesHolder_UpdatedRegisters_Call added in v0.46.0

type RegisterUpdatesHolder_UpdatedRegisters_Call struct {
	*mock.Call
}

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 (*RegisterUpdatesHolder_UpdatedRegisters_Call) Run added in v0.46.0

func (*RegisterUpdatesHolder_UpdatedRegisters_Call) RunAndReturn added in v0.46.0

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 (_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 (*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

type ScriptExecutionState_CreateStorageSnapshot_Call struct {
	*mock.Call
}

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 (*ScriptExecutionState_CreateStorageSnapshot_Call) Run added in v0.46.0

func (*ScriptExecutionState_CreateStorageSnapshot_Call) RunAndReturn added in v0.46.0

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

type ScriptExecutionState_IsBlockExecuted_Call struct {
	*mock.Call
}

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 (*ScriptExecutionState_IsBlockExecuted_Call) Run added in v0.46.0

func (*ScriptExecutionState_IsBlockExecuted_Call) RunAndReturn added in v0.46.0

type ScriptExecutionState_NewStorageSnapshot_Call added in v0.46.0

type ScriptExecutionState_NewStorageSnapshot_Call struct {
	*mock.Call
}

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 (*ScriptExecutionState_NewStorageSnapshot_Call) Run added in v0.46.0

func (*ScriptExecutionState_NewStorageSnapshot_Call) RunAndReturn added in v0.46.0

type ScriptExecutionState_StateCommitmentByBlockID_Call added in v0.46.0

type ScriptExecutionState_StateCommitmentByBlockID_Call struct {
	*mock.Call
}

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 (*ScriptExecutionState_StateCommitmentByBlockID_Call) Run added in v0.46.0

func (*ScriptExecutionState_StateCommitmentByBlockID_Call) RunAndReturn added in v0.46.0

Jump to

Keyboard shortcuts

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