mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVStoreAPI

type KVStoreAPI struct {
	mock.Mock
}

KVStoreAPI is an autogenerated mock type for the KVStoreAPI type

func NewKVStoreAPI

func NewKVStoreAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *KVStoreAPI

NewKVStoreAPI creates a new instance of KVStoreAPI. 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 (*KVStoreAPI) EXPECT added in v0.46.0

func (_m *KVStoreAPI) EXPECT() *KVStoreAPI_Expecter

func (*KVStoreAPI) GetCadenceComponentVersion added in v0.41.0

func (_mock *KVStoreAPI) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)

GetCadenceComponentVersion provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetCadenceComponentVersionUpgrade added in v0.41.0

func (_mock *KVStoreAPI) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]

GetCadenceComponentVersionUpgrade provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetEpochExtensionViewCount added in v0.37.1

func (_mock *KVStoreAPI) GetEpochExtensionViewCount() uint64

GetEpochExtensionViewCount provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetEpochStateID

func (_mock *KVStoreAPI) GetEpochStateID() flow.Identifier

GetEpochStateID provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetExecutionComponentVersion added in v0.41.0

func (_mock *KVStoreAPI) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)

GetExecutionComponentVersion provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetExecutionComponentVersionUpgrade added in v0.41.0

func (_mock *KVStoreAPI) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]

GetExecutionComponentVersionUpgrade provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetExecutionMeteringParameters added in v0.41.0

func (_mock *KVStoreAPI) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)

GetExecutionMeteringParameters provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetExecutionMeteringParametersUpgrade added in v0.41.0

func (_mock *KVStoreAPI) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]

GetExecutionMeteringParametersUpgrade provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetFinalizationSafetyThreshold added in v0.39.0

func (_mock *KVStoreAPI) GetFinalizationSafetyThreshold() uint64

GetFinalizationSafetyThreshold provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetProtocolStateVersion

func (_mock *KVStoreAPI) GetProtocolStateVersion() uint64

GetProtocolStateVersion provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) GetVersionUpgrade

func (_mock *KVStoreAPI) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]

GetVersionUpgrade provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) ID

func (_mock *KVStoreAPI) ID() flow.Identifier

ID provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) Replicate

func (_mock *KVStoreAPI) Replicate(protocolVersion uint64) (protocol_state.KVStoreMutator, error)

Replicate provides a mock function for the type KVStoreAPI

func (*KVStoreAPI) VersionedEncode

func (_mock *KVStoreAPI) VersionedEncode() (uint64, []byte, error)

VersionedEncode provides a mock function for the type KVStoreAPI

type KVStoreAPI_Expecter added in v0.46.0

type KVStoreAPI_Expecter struct {
	// contains filtered or unexported fields
}

func (*KVStoreAPI_Expecter) GetCadenceComponentVersion added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetCadenceComponentVersion() *KVStoreAPI_GetCadenceComponentVersion_Call

GetCadenceComponentVersion is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetCadenceComponentVersionUpgrade added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetCadenceComponentVersionUpgrade() *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call

GetCadenceComponentVersionUpgrade is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetEpochExtensionViewCount added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetEpochExtensionViewCount() *KVStoreAPI_GetEpochExtensionViewCount_Call

GetEpochExtensionViewCount is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetEpochStateID added in v0.46.0

GetEpochStateID is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetExecutionComponentVersion added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetExecutionComponentVersion() *KVStoreAPI_GetExecutionComponentVersion_Call

GetExecutionComponentVersion is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetExecutionComponentVersionUpgrade added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetExecutionComponentVersionUpgrade() *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call

GetExecutionComponentVersionUpgrade is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetExecutionMeteringParameters added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetExecutionMeteringParameters() *KVStoreAPI_GetExecutionMeteringParameters_Call

GetExecutionMeteringParameters is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetExecutionMeteringParametersUpgrade added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetExecutionMeteringParametersUpgrade() *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call

GetExecutionMeteringParametersUpgrade is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetFinalizationSafetyThreshold added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetFinalizationSafetyThreshold() *KVStoreAPI_GetFinalizationSafetyThreshold_Call

GetFinalizationSafetyThreshold is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetProtocolStateVersion added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetProtocolStateVersion() *KVStoreAPI_GetProtocolStateVersion_Call

GetProtocolStateVersion is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) GetVersionUpgrade added in v0.46.0

func (_e *KVStoreAPI_Expecter) GetVersionUpgrade() *KVStoreAPI_GetVersionUpgrade_Call

GetVersionUpgrade is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) ID added in v0.46.0

ID is a helper method to define mock.On call

func (*KVStoreAPI_Expecter) Replicate added in v0.46.0

func (_e *KVStoreAPI_Expecter) Replicate(protocolVersion interface{}) *KVStoreAPI_Replicate_Call

Replicate is a helper method to define mock.On call

  • protocolVersion uint64

func (*KVStoreAPI_Expecter) VersionedEncode added in v0.46.0

VersionedEncode is a helper method to define mock.On call

type KVStoreAPI_GetCadenceComponentVersionUpgrade_Call added in v0.46.0

type KVStoreAPI_GetCadenceComponentVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetCadenceComponentVersion_Call added in v0.46.0

type KVStoreAPI_GetCadenceComponentVersion_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetCadenceComponentVersion_Call) Return added in v0.46.0

func (*KVStoreAPI_GetCadenceComponentVersion_Call) Run added in v0.46.0

func (*KVStoreAPI_GetCadenceComponentVersion_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetEpochExtensionViewCount_Call added in v0.46.0

type KVStoreAPI_GetEpochExtensionViewCount_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetEpochExtensionViewCount_Call) Return added in v0.46.0

func (*KVStoreAPI_GetEpochExtensionViewCount_Call) Run added in v0.46.0

func (*KVStoreAPI_GetEpochExtensionViewCount_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetEpochStateID_Call added in v0.46.0

type KVStoreAPI_GetEpochStateID_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetEpochStateID_Call) Return added in v0.46.0

func (*KVStoreAPI_GetEpochStateID_Call) Run added in v0.46.0

func (*KVStoreAPI_GetEpochStateID_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetExecutionComponentVersionUpgrade_Call added in v0.46.0

type KVStoreAPI_GetExecutionComponentVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetExecutionComponentVersion_Call added in v0.46.0

type KVStoreAPI_GetExecutionComponentVersion_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetExecutionComponentVersion_Call) Return added in v0.46.0

func (*KVStoreAPI_GetExecutionComponentVersion_Call) Run added in v0.46.0

func (*KVStoreAPI_GetExecutionComponentVersion_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call added in v0.46.0

type KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Return added in v0.46.0

func (*KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Run added in v0.46.0

func (*KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetExecutionMeteringParameters_Call added in v0.46.0

type KVStoreAPI_GetExecutionMeteringParameters_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetExecutionMeteringParameters_Call) Return added in v0.46.0

func (*KVStoreAPI_GetExecutionMeteringParameters_Call) Run added in v0.46.0

func (*KVStoreAPI_GetExecutionMeteringParameters_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetFinalizationSafetyThreshold_Call added in v0.46.0

type KVStoreAPI_GetFinalizationSafetyThreshold_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetFinalizationSafetyThreshold_Call) Return added in v0.46.0

func (*KVStoreAPI_GetFinalizationSafetyThreshold_Call) Run added in v0.46.0

func (*KVStoreAPI_GetFinalizationSafetyThreshold_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetProtocolStateVersion_Call added in v0.46.0

type KVStoreAPI_GetProtocolStateVersion_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetProtocolStateVersion_Call) Return added in v0.46.0

func (*KVStoreAPI_GetProtocolStateVersion_Call) Run added in v0.46.0

func (*KVStoreAPI_GetProtocolStateVersion_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_GetVersionUpgrade_Call added in v0.46.0

type KVStoreAPI_GetVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_GetVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreAPI_GetVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreAPI_GetVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreAPI_ID_Call added in v0.46.0

type KVStoreAPI_ID_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_ID_Call) Return added in v0.46.0

func (_c *KVStoreAPI_ID_Call) Return(identifier flow.Identifier) *KVStoreAPI_ID_Call

func (*KVStoreAPI_ID_Call) Run added in v0.46.0

func (_c *KVStoreAPI_ID_Call) Run(run func()) *KVStoreAPI_ID_Call

func (*KVStoreAPI_ID_Call) RunAndReturn added in v0.46.0

func (_c *KVStoreAPI_ID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreAPI_ID_Call

type KVStoreAPI_Replicate_Call added in v0.46.0

type KVStoreAPI_Replicate_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_Replicate_Call) Return added in v0.46.0

func (*KVStoreAPI_Replicate_Call) Run added in v0.46.0

func (_c *KVStoreAPI_Replicate_Call) Run(run func(protocolVersion uint64)) *KVStoreAPI_Replicate_Call

func (*KVStoreAPI_Replicate_Call) RunAndReturn added in v0.46.0

func (_c *KVStoreAPI_Replicate_Call) RunAndReturn(run func(protocolVersion uint64) (protocol_state.KVStoreMutator, error)) *KVStoreAPI_Replicate_Call

type KVStoreAPI_VersionedEncode_Call added in v0.46.0

type KVStoreAPI_VersionedEncode_Call struct {
	*mock.Call
}

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

func (*KVStoreAPI_VersionedEncode_Call) Return added in v0.46.0

func (*KVStoreAPI_VersionedEncode_Call) Run added in v0.46.0

func (*KVStoreAPI_VersionedEncode_Call) RunAndReturn added in v0.46.0

type KVStoreMutator

type KVStoreMutator struct {
	mock.Mock
}

KVStoreMutator is an autogenerated mock type for the KVStoreMutator type

func NewKVStoreMutator

func NewKVStoreMutator(t interface {
	mock.TestingT
	Cleanup(func())
}) *KVStoreMutator

NewKVStoreMutator creates a new instance of KVStoreMutator. 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 (*KVStoreMutator) EXPECT added in v0.46.0

func (*KVStoreMutator) GetCadenceComponentVersion added in v0.41.0

func (_mock *KVStoreMutator) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)

GetCadenceComponentVersion provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetCadenceComponentVersionUpgrade added in v0.41.0

func (_mock *KVStoreMutator) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]

GetCadenceComponentVersionUpgrade provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetEpochExtensionViewCount added in v0.37.1

func (_mock *KVStoreMutator) GetEpochExtensionViewCount() uint64

GetEpochExtensionViewCount provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetEpochStateID

func (_mock *KVStoreMutator) GetEpochStateID() flow.Identifier

GetEpochStateID provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetExecutionComponentVersion added in v0.41.0

func (_mock *KVStoreMutator) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)

GetExecutionComponentVersion provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetExecutionComponentVersionUpgrade added in v0.41.0

func (_mock *KVStoreMutator) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]

GetExecutionComponentVersionUpgrade provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetExecutionMeteringParameters added in v0.41.0

func (_mock *KVStoreMutator) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)

GetExecutionMeteringParameters provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetExecutionMeteringParametersUpgrade added in v0.41.0

func (_mock *KVStoreMutator) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]

GetExecutionMeteringParametersUpgrade provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetFinalizationSafetyThreshold added in v0.39.0

func (_mock *KVStoreMutator) GetFinalizationSafetyThreshold() uint64

GetFinalizationSafetyThreshold provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetProtocolStateVersion

func (_mock *KVStoreMutator) GetProtocolStateVersion() uint64

GetProtocolStateVersion provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) GetVersionUpgrade

func (_mock *KVStoreMutator) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]

GetVersionUpgrade provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) ID

func (_mock *KVStoreMutator) ID() flow.Identifier

ID provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) SetEpochExtensionViewCount added in v0.37.1

func (_mock *KVStoreMutator) SetEpochExtensionViewCount(viewCount uint64) error

SetEpochExtensionViewCount provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) SetEpochStateID

func (_mock *KVStoreMutator) SetEpochStateID(stateID flow.Identifier)

SetEpochStateID provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) SetVersionUpgrade

func (_mock *KVStoreMutator) SetVersionUpgrade(version *protocol.ViewBasedActivator[uint64])

SetVersionUpgrade provides a mock function for the type KVStoreMutator

func (*KVStoreMutator) VersionedEncode

func (_mock *KVStoreMutator) VersionedEncode() (uint64, []byte, error)

VersionedEncode provides a mock function for the type KVStoreMutator

type KVStoreMutator_Expecter added in v0.46.0

type KVStoreMutator_Expecter struct {
	// contains filtered or unexported fields
}

func (*KVStoreMutator_Expecter) GetCadenceComponentVersion added in v0.46.0

GetCadenceComponentVersion is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetCadenceComponentVersionUpgrade added in v0.46.0

func (_e *KVStoreMutator_Expecter) GetCadenceComponentVersionUpgrade() *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call

GetCadenceComponentVersionUpgrade is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetEpochExtensionViewCount added in v0.46.0

GetEpochExtensionViewCount is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetEpochStateID added in v0.46.0

GetEpochStateID is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetExecutionComponentVersion added in v0.46.0

GetExecutionComponentVersion is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetExecutionComponentVersionUpgrade added in v0.46.0

func (_e *KVStoreMutator_Expecter) GetExecutionComponentVersionUpgrade() *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call

GetExecutionComponentVersionUpgrade is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetExecutionMeteringParameters added in v0.46.0

GetExecutionMeteringParameters is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetExecutionMeteringParametersUpgrade added in v0.46.0

func (_e *KVStoreMutator_Expecter) GetExecutionMeteringParametersUpgrade() *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call

GetExecutionMeteringParametersUpgrade is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetFinalizationSafetyThreshold added in v0.46.0

GetFinalizationSafetyThreshold is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetProtocolStateVersion added in v0.46.0

GetProtocolStateVersion is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) GetVersionUpgrade added in v0.46.0

GetVersionUpgrade is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) ID added in v0.46.0

ID is a helper method to define mock.On call

func (*KVStoreMutator_Expecter) SetEpochExtensionViewCount added in v0.46.0

func (_e *KVStoreMutator_Expecter) SetEpochExtensionViewCount(viewCount interface{}) *KVStoreMutator_SetEpochExtensionViewCount_Call

SetEpochExtensionViewCount is a helper method to define mock.On call

  • viewCount uint64

func (*KVStoreMutator_Expecter) SetEpochStateID added in v0.46.0

func (_e *KVStoreMutator_Expecter) SetEpochStateID(stateID interface{}) *KVStoreMutator_SetEpochStateID_Call

SetEpochStateID is a helper method to define mock.On call

  • stateID flow.Identifier

func (*KVStoreMutator_Expecter) SetVersionUpgrade added in v0.46.0

func (_e *KVStoreMutator_Expecter) SetVersionUpgrade(version interface{}) *KVStoreMutator_SetVersionUpgrade_Call

SetVersionUpgrade is a helper method to define mock.On call

  • version *protocol.ViewBasedActivator[uint64]

func (*KVStoreMutator_Expecter) VersionedEncode added in v0.46.0

VersionedEncode is a helper method to define mock.On call

type KVStoreMutator_GetCadenceComponentVersionUpgrade_Call added in v0.46.0

type KVStoreMutator_GetCadenceComponentVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetCadenceComponentVersion_Call added in v0.46.0

type KVStoreMutator_GetCadenceComponentVersion_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetCadenceComponentVersion_Call) Return added in v0.46.0

func (*KVStoreMutator_GetCadenceComponentVersion_Call) Run added in v0.46.0

func (*KVStoreMutator_GetCadenceComponentVersion_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetEpochExtensionViewCount_Call added in v0.46.0

type KVStoreMutator_GetEpochExtensionViewCount_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetEpochExtensionViewCount_Call) Return added in v0.46.0

func (*KVStoreMutator_GetEpochExtensionViewCount_Call) Run added in v0.46.0

func (*KVStoreMutator_GetEpochExtensionViewCount_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetEpochStateID_Call added in v0.46.0

type KVStoreMutator_GetEpochStateID_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetEpochStateID_Call) Return added in v0.46.0

func (*KVStoreMutator_GetEpochStateID_Call) Run added in v0.46.0

func (*KVStoreMutator_GetEpochStateID_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetExecutionComponentVersionUpgrade_Call added in v0.46.0

type KVStoreMutator_GetExecutionComponentVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetExecutionComponentVersion_Call added in v0.46.0

type KVStoreMutator_GetExecutionComponentVersion_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetExecutionComponentVersion_Call) Return added in v0.46.0

func (*KVStoreMutator_GetExecutionComponentVersion_Call) Run added in v0.46.0

func (*KVStoreMutator_GetExecutionComponentVersion_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call added in v0.46.0

type KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Return added in v0.46.0

func (*KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Run added in v0.46.0

func (*KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetExecutionMeteringParameters_Call added in v0.46.0

type KVStoreMutator_GetExecutionMeteringParameters_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetExecutionMeteringParameters_Call) Return added in v0.46.0

func (*KVStoreMutator_GetExecutionMeteringParameters_Call) Run added in v0.46.0

func (*KVStoreMutator_GetExecutionMeteringParameters_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetFinalizationSafetyThreshold_Call added in v0.46.0

type KVStoreMutator_GetFinalizationSafetyThreshold_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetFinalizationSafetyThreshold_Call) Return added in v0.46.0

func (*KVStoreMutator_GetFinalizationSafetyThreshold_Call) Run added in v0.46.0

func (*KVStoreMutator_GetFinalizationSafetyThreshold_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetProtocolStateVersion_Call added in v0.46.0

type KVStoreMutator_GetProtocolStateVersion_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetProtocolStateVersion_Call) Return added in v0.46.0

func (*KVStoreMutator_GetProtocolStateVersion_Call) Run added in v0.46.0

func (*KVStoreMutator_GetProtocolStateVersion_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_GetVersionUpgrade_Call added in v0.46.0

type KVStoreMutator_GetVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_GetVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreMutator_GetVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreMutator_GetVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_ID_Call added in v0.46.0

type KVStoreMutator_ID_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_ID_Call) Return added in v0.46.0

func (*KVStoreMutator_ID_Call) Run added in v0.46.0

func (_c *KVStoreMutator_ID_Call) Run(run func()) *KVStoreMutator_ID_Call

func (*KVStoreMutator_ID_Call) RunAndReturn added in v0.46.0

func (_c *KVStoreMutator_ID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreMutator_ID_Call

type KVStoreMutator_SetEpochExtensionViewCount_Call added in v0.46.0

type KVStoreMutator_SetEpochExtensionViewCount_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_SetEpochExtensionViewCount_Call) Return added in v0.46.0

func (*KVStoreMutator_SetEpochExtensionViewCount_Call) Run added in v0.46.0

func (*KVStoreMutator_SetEpochExtensionViewCount_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_SetEpochStateID_Call added in v0.46.0

type KVStoreMutator_SetEpochStateID_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_SetEpochStateID_Call) Return added in v0.46.0

func (*KVStoreMutator_SetEpochStateID_Call) Run added in v0.46.0

func (*KVStoreMutator_SetEpochStateID_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_SetVersionUpgrade_Call added in v0.46.0

type KVStoreMutator_SetVersionUpgrade_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_SetVersionUpgrade_Call) Return added in v0.46.0

func (*KVStoreMutator_SetVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreMutator_SetVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreMutator_VersionedEncode_Call added in v0.46.0

type KVStoreMutator_VersionedEncode_Call struct {
	*mock.Call
}

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

func (*KVStoreMutator_VersionedEncode_Call) Return added in v0.46.0

func (*KVStoreMutator_VersionedEncode_Call) Run added in v0.46.0

func (*KVStoreMutator_VersionedEncode_Call) RunAndReturn added in v0.46.0

type KeyValueStoreStateMachine added in v0.41.0

type KeyValueStoreStateMachine struct {
	mock.Mock
}

KeyValueStoreStateMachine is an autogenerated mock type for the KeyValueStoreStateMachine type

func NewKeyValueStoreStateMachine added in v0.41.0

func NewKeyValueStoreStateMachine(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyValueStoreStateMachine

NewKeyValueStoreStateMachine creates a new instance of KeyValueStoreStateMachine. 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 (*KeyValueStoreStateMachine) Build added in v0.41.0

Build provides a mock function for the type KeyValueStoreStateMachine

func (*KeyValueStoreStateMachine) EXPECT added in v0.46.0

func (*KeyValueStoreStateMachine) EvolveState added in v0.41.0

func (_mock *KeyValueStoreStateMachine) EvolveState(sealedServiceEvents []flow.ServiceEvent) error

EvolveState provides a mock function for the type KeyValueStoreStateMachine

func (*KeyValueStoreStateMachine) ParentState added in v0.41.0

func (_mock *KeyValueStoreStateMachine) ParentState() protocol.KVStoreReader

ParentState provides a mock function for the type KeyValueStoreStateMachine

func (*KeyValueStoreStateMachine) View added in v0.41.0

func (_mock *KeyValueStoreStateMachine) View() uint64

View provides a mock function for the type KeyValueStoreStateMachine

type KeyValueStoreStateMachineFactory

type KeyValueStoreStateMachineFactory struct {
	mock.Mock
}

KeyValueStoreStateMachineFactory is an autogenerated mock type for the KeyValueStoreStateMachineFactory type

func NewKeyValueStoreStateMachineFactory

func NewKeyValueStoreStateMachineFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyValueStoreStateMachineFactory

NewKeyValueStoreStateMachineFactory creates a new instance of KeyValueStoreStateMachineFactory. 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 (*KeyValueStoreStateMachineFactory) Create

Create provides a mock function for the type KeyValueStoreStateMachineFactory

func (*KeyValueStoreStateMachineFactory) EXPECT added in v0.46.0

type KeyValueStoreStateMachineFactory_Create_Call added in v0.46.0

type KeyValueStoreStateMachineFactory_Create_Call struct {
	*mock.Call
}

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

func (*KeyValueStoreStateMachineFactory_Create_Call) Return added in v0.46.0

func (*KeyValueStoreStateMachineFactory_Create_Call) Run added in v0.46.0

func (*KeyValueStoreStateMachineFactory_Create_Call) RunAndReturn added in v0.46.0

type KeyValueStoreStateMachineFactory_Expecter added in v0.46.0

type KeyValueStoreStateMachineFactory_Expecter struct {
	// contains filtered or unexported fields
}

func (*KeyValueStoreStateMachineFactory_Expecter) Create added in v0.46.0

func (_e *KeyValueStoreStateMachineFactory_Expecter) Create(candidateView interface{}, parentID interface{}, parentState interface{}, mutator interface{}) *KeyValueStoreStateMachineFactory_Create_Call

Create is a helper method to define mock.On call

  • candidateView uint64
  • parentID flow.Identifier
  • parentState protocol.KVStoreReader
  • mutator protocol_state.KVStoreMutator

type KeyValueStoreStateMachine_Build_Call added in v0.46.0

type KeyValueStoreStateMachine_Build_Call struct {
	*mock.Call
}

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

func (*KeyValueStoreStateMachine_Build_Call) Return added in v0.46.0

func (*KeyValueStoreStateMachine_Build_Call) Run added in v0.46.0

func (*KeyValueStoreStateMachine_Build_Call) RunAndReturn added in v0.46.0

type KeyValueStoreStateMachine_EvolveState_Call added in v0.46.0

type KeyValueStoreStateMachine_EvolveState_Call struct {
	*mock.Call
}

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

func (*KeyValueStoreStateMachine_EvolveState_Call) Return added in v0.46.0

func (*KeyValueStoreStateMachine_EvolveState_Call) Run added in v0.46.0

func (*KeyValueStoreStateMachine_EvolveState_Call) RunAndReturn added in v0.46.0

type KeyValueStoreStateMachine_Expecter added in v0.46.0

type KeyValueStoreStateMachine_Expecter struct {
	// contains filtered or unexported fields
}

func (*KeyValueStoreStateMachine_Expecter) Build added in v0.46.0

Build is a helper method to define mock.On call

func (*KeyValueStoreStateMachine_Expecter) EvolveState added in v0.46.0

func (_e *KeyValueStoreStateMachine_Expecter) EvolveState(sealedServiceEvents interface{}) *KeyValueStoreStateMachine_EvolveState_Call

EvolveState is a helper method to define mock.On call

  • sealedServiceEvents []flow.ServiceEvent

func (*KeyValueStoreStateMachine_Expecter) ParentState added in v0.46.0

ParentState is a helper method to define mock.On call

func (*KeyValueStoreStateMachine_Expecter) View added in v0.46.0

View is a helper method to define mock.On call

type KeyValueStoreStateMachine_ParentState_Call added in v0.46.0

type KeyValueStoreStateMachine_ParentState_Call struct {
	*mock.Call
}

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

func (*KeyValueStoreStateMachine_ParentState_Call) Return added in v0.46.0

func (*KeyValueStoreStateMachine_ParentState_Call) Run added in v0.46.0

func (*KeyValueStoreStateMachine_ParentState_Call) RunAndReturn added in v0.46.0

type KeyValueStoreStateMachine_View_Call added in v0.46.0

type KeyValueStoreStateMachine_View_Call struct {
	*mock.Call
}

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

func (*KeyValueStoreStateMachine_View_Call) Return added in v0.46.0

func (*KeyValueStoreStateMachine_View_Call) Run added in v0.46.0

func (*KeyValueStoreStateMachine_View_Call) RunAndReturn added in v0.46.0

type OrthogonalStoreStateMachine

type OrthogonalStoreStateMachine[P any] struct {
	mock.Mock
}

OrthogonalStoreStateMachine is an autogenerated mock type for the OrthogonalStoreStateMachine type

func NewOrthogonalStoreStateMachine

func NewOrthogonalStoreStateMachine[P any](t interface {
	mock.TestingT
	Cleanup(func())
}) *OrthogonalStoreStateMachine[P]

NewOrthogonalStoreStateMachine creates a new instance of OrthogonalStoreStateMachine. 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 (*OrthogonalStoreStateMachine[P]) Build

Build provides a mock function for the type OrthogonalStoreStateMachine

func (*OrthogonalStoreStateMachine[P]) EXPECT added in v0.46.0

func (*OrthogonalStoreStateMachine[P]) EvolveState

func (_mock *OrthogonalStoreStateMachine[P]) EvolveState(sealedServiceEvents []flow.ServiceEvent) error

EvolveState provides a mock function for the type OrthogonalStoreStateMachine

func (*OrthogonalStoreStateMachine[P]) ParentState

func (_mock *OrthogonalStoreStateMachine[P]) ParentState() P

ParentState provides a mock function for the type OrthogonalStoreStateMachine

func (*OrthogonalStoreStateMachine[P]) View

func (_mock *OrthogonalStoreStateMachine[P]) View() uint64

View provides a mock function for the type OrthogonalStoreStateMachine

type OrthogonalStoreStateMachine_Build_Call added in v0.46.0

type OrthogonalStoreStateMachine_Build_Call[P any] struct {
	*mock.Call
}

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

func (*OrthogonalStoreStateMachine_Build_Call[P]) Return added in v0.46.0

func (*OrthogonalStoreStateMachine_Build_Call[P]) Run added in v0.46.0

func (*OrthogonalStoreStateMachine_Build_Call[P]) RunAndReturn added in v0.46.0

type OrthogonalStoreStateMachine_EvolveState_Call added in v0.46.0

type OrthogonalStoreStateMachine_EvolveState_Call[P any] struct {
	*mock.Call
}

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

func (*OrthogonalStoreStateMachine_EvolveState_Call[P]) Return added in v0.46.0

func (*OrthogonalStoreStateMachine_EvolveState_Call[P]) Run added in v0.46.0

func (*OrthogonalStoreStateMachine_EvolveState_Call[P]) RunAndReturn added in v0.46.0

type OrthogonalStoreStateMachine_Expecter added in v0.46.0

type OrthogonalStoreStateMachine_Expecter[P any] struct {
	// contains filtered or unexported fields
}

func (*OrthogonalStoreStateMachine_Expecter[P]) Build added in v0.46.0

Build is a helper method to define mock.On call

func (*OrthogonalStoreStateMachine_Expecter[P]) EvolveState added in v0.46.0

func (_e *OrthogonalStoreStateMachine_Expecter[P]) EvolveState(sealedServiceEvents interface{}) *OrthogonalStoreStateMachine_EvolveState_Call[P]

EvolveState is a helper method to define mock.On call

  • sealedServiceEvents []flow.ServiceEvent

func (*OrthogonalStoreStateMachine_Expecter[P]) ParentState added in v0.46.0

ParentState is a helper method to define mock.On call

func (*OrthogonalStoreStateMachine_Expecter[P]) View added in v0.46.0

View is a helper method to define mock.On call

type OrthogonalStoreStateMachine_ParentState_Call added in v0.46.0

type OrthogonalStoreStateMachine_ParentState_Call[P any] struct {
	*mock.Call
}

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

func (*OrthogonalStoreStateMachine_ParentState_Call[P]) Return added in v0.46.0

func (*OrthogonalStoreStateMachine_ParentState_Call[P]) Run added in v0.46.0

func (*OrthogonalStoreStateMachine_ParentState_Call[P]) RunAndReturn added in v0.46.0

type OrthogonalStoreStateMachine_View_Call added in v0.46.0

type OrthogonalStoreStateMachine_View_Call[P any] struct {
	*mock.Call
}

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

func (*OrthogonalStoreStateMachine_View_Call[P]) Return added in v0.46.0

func (*OrthogonalStoreStateMachine_View_Call[P]) Run added in v0.46.0

func (*OrthogonalStoreStateMachine_View_Call[P]) RunAndReturn added in v0.46.0

type ProtocolKVStore

type ProtocolKVStore struct {
	mock.Mock
}

ProtocolKVStore is an autogenerated mock type for the ProtocolKVStore type

func NewProtocolKVStore

func NewProtocolKVStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProtocolKVStore

NewProtocolKVStore creates a new instance of ProtocolKVStore. 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 (*ProtocolKVStore) BatchIndex added in v0.43.0

func (_mock *ProtocolKVStore) BatchIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, stateID flow.Identifier) error

BatchIndex provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) BatchStore added in v0.43.0

func (_mock *ProtocolKVStore) BatchStore(rw storage.ReaderBatchWriter, stateID flow.Identifier, kvStore protocol.KVStoreReader) error

BatchStore provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) ByBlockID

func (_mock *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (protocol_state.KVStoreAPI, error)

ByBlockID provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) ByID

ByID provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) EXPECT added in v0.46.0

type ProtocolKVStore_BatchIndex_Call added in v0.46.0

type ProtocolKVStore_BatchIndex_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_BatchIndex_Call) Return added in v0.46.0

func (*ProtocolKVStore_BatchIndex_Call) Run added in v0.46.0

func (*ProtocolKVStore_BatchIndex_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_BatchStore_Call added in v0.46.0

type ProtocolKVStore_BatchStore_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_BatchStore_Call) Return added in v0.46.0

func (*ProtocolKVStore_BatchStore_Call) Run added in v0.46.0

func (*ProtocolKVStore_BatchStore_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_ByBlockID_Call added in v0.46.0

type ProtocolKVStore_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_ByBlockID_Call) Return added in v0.46.0

func (*ProtocolKVStore_ByBlockID_Call) Run added in v0.46.0

func (*ProtocolKVStore_ByBlockID_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_ByID_Call added in v0.46.0

type ProtocolKVStore_ByID_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_ByID_Call) Return added in v0.46.0

func (*ProtocolKVStore_ByID_Call) Run added in v0.46.0

func (*ProtocolKVStore_ByID_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_Expecter added in v0.46.0

type ProtocolKVStore_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProtocolKVStore_Expecter) BatchIndex added in v0.46.0

func (_e *ProtocolKVStore_Expecter) BatchIndex(lctx interface{}, rw interface{}, blockID interface{}, stateID interface{}) *ProtocolKVStore_BatchIndex_Call

BatchIndex is a helper method to define mock.On call

  • lctx lockctx.Proof
  • rw storage.ReaderBatchWriter
  • blockID flow.Identifier
  • stateID flow.Identifier

func (*ProtocolKVStore_Expecter) BatchStore added in v0.46.0

func (_e *ProtocolKVStore_Expecter) BatchStore(rw interface{}, stateID interface{}, kvStore interface{}) *ProtocolKVStore_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • rw storage.ReaderBatchWriter
  • stateID flow.Identifier
  • kvStore protocol.KVStoreReader

func (*ProtocolKVStore_Expecter) ByBlockID added in v0.46.0

func (_e *ProtocolKVStore_Expecter) ByBlockID(blockID interface{}) *ProtocolKVStore_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ProtocolKVStore_Expecter) ByID added in v0.46.0

func (_e *ProtocolKVStore_Expecter) ByID(id interface{}) *ProtocolKVStore_ByID_Call

ByID is a helper method to define mock.On call

  • id flow.Identifier

type StateMachineTelemetryConsumer added in v0.37.1

type StateMachineTelemetryConsumer struct {
	mock.Mock
}

StateMachineTelemetryConsumer is an autogenerated mock type for the StateMachineTelemetryConsumer type

func NewStateMachineTelemetryConsumer added in v0.37.1

func NewStateMachineTelemetryConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateMachineTelemetryConsumer

NewStateMachineTelemetryConsumer creates a new instance of StateMachineTelemetryConsumer. 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 (*StateMachineTelemetryConsumer) EXPECT added in v0.46.0

func (*StateMachineTelemetryConsumer) OnInvalidServiceEvent added in v0.37.1

func (_mock *StateMachineTelemetryConsumer) OnInvalidServiceEvent(event flow.ServiceEvent, err error)

OnInvalidServiceEvent provides a mock function for the type StateMachineTelemetryConsumer

func (*StateMachineTelemetryConsumer) OnServiceEventProcessed added in v0.37.1

func (_mock *StateMachineTelemetryConsumer) OnServiceEventProcessed(event flow.ServiceEvent)

OnServiceEventProcessed provides a mock function for the type StateMachineTelemetryConsumer

func (*StateMachineTelemetryConsumer) OnServiceEventReceived added in v0.37.1

func (_mock *StateMachineTelemetryConsumer) OnServiceEventReceived(event flow.ServiceEvent)

OnServiceEventReceived provides a mock function for the type StateMachineTelemetryConsumer

type StateMachineTelemetryConsumer_Expecter added in v0.46.0

type StateMachineTelemetryConsumer_Expecter struct {
	// contains filtered or unexported fields
}

func (*StateMachineTelemetryConsumer_Expecter) OnInvalidServiceEvent added in v0.46.0

func (_e *StateMachineTelemetryConsumer_Expecter) OnInvalidServiceEvent(event interface{}, err interface{}) *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call

OnInvalidServiceEvent is a helper method to define mock.On call

  • event flow.ServiceEvent
  • err error

func (*StateMachineTelemetryConsumer_Expecter) OnServiceEventProcessed added in v0.46.0

OnServiceEventProcessed is a helper method to define mock.On call

  • event flow.ServiceEvent

func (*StateMachineTelemetryConsumer_Expecter) OnServiceEventReceived added in v0.46.0

OnServiceEventReceived is a helper method to define mock.On call

  • event flow.ServiceEvent

type StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call added in v0.46.0

type StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call struct {
	*mock.Call
}

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

func (*StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) Return added in v0.46.0

func (*StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) Run added in v0.46.0

func (*StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) RunAndReturn added in v0.46.0

type StateMachineTelemetryConsumer_OnServiceEventProcessed_Call added in v0.46.0

type StateMachineTelemetryConsumer_OnServiceEventProcessed_Call struct {
	*mock.Call
}

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

func (*StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) Return added in v0.46.0

func (*StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) Run added in v0.46.0

func (*StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) RunAndReturn added in v0.46.0

type StateMachineTelemetryConsumer_OnServiceEventReceived_Call added in v0.46.0

type StateMachineTelemetryConsumer_OnServiceEventReceived_Call struct {
	*mock.Call
}

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

func (*StateMachineTelemetryConsumer_OnServiceEventReceived_Call) Return added in v0.46.0

func (*StateMachineTelemetryConsumer_OnServiceEventReceived_Call) Run added in v0.46.0

func (*StateMachineTelemetryConsumer_OnServiceEventReceived_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