Documentation
¶
Index ¶
- type KVStoreAPI
- func (_m *KVStoreAPI) EXPECT() *KVStoreAPI_Expecter
- func (_mock *KVStoreAPI) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
- func (_mock *KVStoreAPI) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_mock *KVStoreAPI) GetEpochExtensionViewCount() uint64
- func (_mock *KVStoreAPI) GetEpochStateID() flow.Identifier
- func (_mock *KVStoreAPI) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
- func (_mock *KVStoreAPI) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_mock *KVStoreAPI) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
- func (_mock *KVStoreAPI) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
- func (_mock *KVStoreAPI) GetFinalizationSafetyThreshold() uint64
- func (_mock *KVStoreAPI) GetProtocolStateVersion() uint64
- func (_mock *KVStoreAPI) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
- func (_mock *KVStoreAPI) ID() flow.Identifier
- func (_mock *KVStoreAPI) Replicate(protocolVersion uint64) (protocol_state.KVStoreMutator, error)
- func (_mock *KVStoreAPI) VersionedEncode() (uint64, []byte, error)
- type KVStoreAPI_Expecter
- func (_e *KVStoreAPI_Expecter) GetCadenceComponentVersion() *KVStoreAPI_GetCadenceComponentVersion_Call
- func (_e *KVStoreAPI_Expecter) GetCadenceComponentVersionUpgrade() *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
- func (_e *KVStoreAPI_Expecter) GetEpochExtensionViewCount() *KVStoreAPI_GetEpochExtensionViewCount_Call
- func (_e *KVStoreAPI_Expecter) GetEpochStateID() *KVStoreAPI_GetEpochStateID_Call
- func (_e *KVStoreAPI_Expecter) GetExecutionComponentVersion() *KVStoreAPI_GetExecutionComponentVersion_Call
- func (_e *KVStoreAPI_Expecter) GetExecutionComponentVersionUpgrade() *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
- func (_e *KVStoreAPI_Expecter) GetExecutionMeteringParameters() *KVStoreAPI_GetExecutionMeteringParameters_Call
- func (_e *KVStoreAPI_Expecter) GetExecutionMeteringParametersUpgrade() *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
- func (_e *KVStoreAPI_Expecter) GetFinalizationSafetyThreshold() *KVStoreAPI_GetFinalizationSafetyThreshold_Call
- func (_e *KVStoreAPI_Expecter) GetProtocolStateVersion() *KVStoreAPI_GetProtocolStateVersion_Call
- func (_e *KVStoreAPI_Expecter) GetVersionUpgrade() *KVStoreAPI_GetVersionUpgrade_Call
- func (_e *KVStoreAPI_Expecter) ID() *KVStoreAPI_ID_Call
- func (_e *KVStoreAPI_Expecter) Replicate(protocolVersion interface{}) *KVStoreAPI_Replicate_Call
- func (_e *KVStoreAPI_Expecter) VersionedEncode() *KVStoreAPI_VersionedEncode_Call
- type KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Run(run func()) *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
- type KVStoreAPI_GetCadenceComponentVersion_Call
- func (_c *KVStoreAPI_GetCadenceComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreAPI_GetCadenceComponentVersion_Call
- func (_c *KVStoreAPI_GetCadenceComponentVersion_Call) Run(run func()) *KVStoreAPI_GetCadenceComponentVersion_Call
- func (_c *KVStoreAPI_GetCadenceComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreAPI_GetCadenceComponentVersion_Call
- type KVStoreAPI_GetEpochExtensionViewCount_Call
- func (_c *KVStoreAPI_GetEpochExtensionViewCount_Call) Return(v uint64) *KVStoreAPI_GetEpochExtensionViewCount_Call
- func (_c *KVStoreAPI_GetEpochExtensionViewCount_Call) Run(run func()) *KVStoreAPI_GetEpochExtensionViewCount_Call
- func (_c *KVStoreAPI_GetEpochExtensionViewCount_Call) RunAndReturn(run func() uint64) *KVStoreAPI_GetEpochExtensionViewCount_Call
- type KVStoreAPI_GetEpochStateID_Call
- func (_c *KVStoreAPI_GetEpochStateID_Call) Return(identifier flow.Identifier) *KVStoreAPI_GetEpochStateID_Call
- func (_c *KVStoreAPI_GetEpochStateID_Call) Run(run func()) *KVStoreAPI_GetEpochStateID_Call
- func (_c *KVStoreAPI_GetEpochStateID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreAPI_GetEpochStateID_Call
- type KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Run(run func()) *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
- type KVStoreAPI_GetExecutionComponentVersion_Call
- func (_c *KVStoreAPI_GetExecutionComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreAPI_GetExecutionComponentVersion_Call
- func (_c *KVStoreAPI_GetExecutionComponentVersion_Call) Run(run func()) *KVStoreAPI_GetExecutionComponentVersion_Call
- func (_c *KVStoreAPI_GetExecutionComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreAPI_GetExecutionComponentVersion_Call
- type KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Return(...) *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Run(run func()) *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
- type KVStoreAPI_GetExecutionMeteringParameters_Call
- func (_c *KVStoreAPI_GetExecutionMeteringParameters_Call) Return(executionMeteringParameters protocol.ExecutionMeteringParameters, err error) *KVStoreAPI_GetExecutionMeteringParameters_Call
- func (_c *KVStoreAPI_GetExecutionMeteringParameters_Call) Run(run func()) *KVStoreAPI_GetExecutionMeteringParameters_Call
- func (_c *KVStoreAPI_GetExecutionMeteringParameters_Call) RunAndReturn(run func() (protocol.ExecutionMeteringParameters, error)) *KVStoreAPI_GetExecutionMeteringParameters_Call
- type KVStoreAPI_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreAPI_GetFinalizationSafetyThreshold_Call) Return(v uint64) *KVStoreAPI_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreAPI_GetFinalizationSafetyThreshold_Call) Run(run func()) *KVStoreAPI_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreAPI_GetFinalizationSafetyThreshold_Call) RunAndReturn(run func() uint64) *KVStoreAPI_GetFinalizationSafetyThreshold_Call
- type KVStoreAPI_GetProtocolStateVersion_Call
- func (_c *KVStoreAPI_GetProtocolStateVersion_Call) Return(v uint64) *KVStoreAPI_GetProtocolStateVersion_Call
- func (_c *KVStoreAPI_GetProtocolStateVersion_Call) Run(run func()) *KVStoreAPI_GetProtocolStateVersion_Call
- func (_c *KVStoreAPI_GetProtocolStateVersion_Call) RunAndReturn(run func() uint64) *KVStoreAPI_GetProtocolStateVersion_Call
- type KVStoreAPI_GetVersionUpgrade_Call
- func (_c *KVStoreAPI_GetVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[uint64]) *KVStoreAPI_GetVersionUpgrade_Call
- func (_c *KVStoreAPI_GetVersionUpgrade_Call) Run(run func()) *KVStoreAPI_GetVersionUpgrade_Call
- func (_c *KVStoreAPI_GetVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[uint64]) *KVStoreAPI_GetVersionUpgrade_Call
- type KVStoreAPI_ID_Call
- type KVStoreAPI_Replicate_Call
- func (_c *KVStoreAPI_Replicate_Call) Return(kVStoreMutator protocol_state.KVStoreMutator, err error) *KVStoreAPI_Replicate_Call
- func (_c *KVStoreAPI_Replicate_Call) Run(run func(protocolVersion uint64)) *KVStoreAPI_Replicate_Call
- func (_c *KVStoreAPI_Replicate_Call) RunAndReturn(run func(protocolVersion uint64) (protocol_state.KVStoreMutator, error)) *KVStoreAPI_Replicate_Call
- type KVStoreAPI_VersionedEncode_Call
- func (_c *KVStoreAPI_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *KVStoreAPI_VersionedEncode_Call
- func (_c *KVStoreAPI_VersionedEncode_Call) Run(run func()) *KVStoreAPI_VersionedEncode_Call
- func (_c *KVStoreAPI_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *KVStoreAPI_VersionedEncode_Call
- type KVStoreMutator
- func (_m *KVStoreMutator) EXPECT() *KVStoreMutator_Expecter
- func (_mock *KVStoreMutator) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
- func (_mock *KVStoreMutator) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_mock *KVStoreMutator) GetEpochExtensionViewCount() uint64
- func (_mock *KVStoreMutator) GetEpochStateID() flow.Identifier
- func (_mock *KVStoreMutator) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
- func (_mock *KVStoreMutator) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_mock *KVStoreMutator) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
- func (_mock *KVStoreMutator) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
- func (_mock *KVStoreMutator) GetFinalizationSafetyThreshold() uint64
- func (_mock *KVStoreMutator) GetProtocolStateVersion() uint64
- func (_mock *KVStoreMutator) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
- func (_mock *KVStoreMutator) ID() flow.Identifier
- func (_mock *KVStoreMutator) SetEpochExtensionViewCount(viewCount uint64) error
- func (_mock *KVStoreMutator) SetEpochStateID(stateID flow.Identifier)
- func (_mock *KVStoreMutator) SetVersionUpgrade(version *protocol.ViewBasedActivator[uint64])
- func (_mock *KVStoreMutator) VersionedEncode() (uint64, []byte, error)
- type KVStoreMutator_Expecter
- func (_e *KVStoreMutator_Expecter) GetCadenceComponentVersion() *KVStoreMutator_GetCadenceComponentVersion_Call
- func (_e *KVStoreMutator_Expecter) GetCadenceComponentVersionUpgrade() *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
- func (_e *KVStoreMutator_Expecter) GetEpochExtensionViewCount() *KVStoreMutator_GetEpochExtensionViewCount_Call
- func (_e *KVStoreMutator_Expecter) GetEpochStateID() *KVStoreMutator_GetEpochStateID_Call
- func (_e *KVStoreMutator_Expecter) GetExecutionComponentVersion() *KVStoreMutator_GetExecutionComponentVersion_Call
- func (_e *KVStoreMutator_Expecter) GetExecutionComponentVersionUpgrade() *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
- func (_e *KVStoreMutator_Expecter) GetExecutionMeteringParameters() *KVStoreMutator_GetExecutionMeteringParameters_Call
- func (_e *KVStoreMutator_Expecter) GetExecutionMeteringParametersUpgrade() *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
- func (_e *KVStoreMutator_Expecter) GetFinalizationSafetyThreshold() *KVStoreMutator_GetFinalizationSafetyThreshold_Call
- func (_e *KVStoreMutator_Expecter) GetProtocolStateVersion() *KVStoreMutator_GetProtocolStateVersion_Call
- func (_e *KVStoreMutator_Expecter) GetVersionUpgrade() *KVStoreMutator_GetVersionUpgrade_Call
- func (_e *KVStoreMutator_Expecter) ID() *KVStoreMutator_ID_Call
- func (_e *KVStoreMutator_Expecter) SetEpochExtensionViewCount(viewCount interface{}) *KVStoreMutator_SetEpochExtensionViewCount_Call
- func (_e *KVStoreMutator_Expecter) SetEpochStateID(stateID interface{}) *KVStoreMutator_SetEpochStateID_Call
- func (_e *KVStoreMutator_Expecter) SetVersionUpgrade(version interface{}) *KVStoreMutator_SetVersionUpgrade_Call
- func (_e *KVStoreMutator_Expecter) VersionedEncode() *KVStoreMutator_VersionedEncode_Call
- type KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Run(run func()) *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
- type KVStoreMutator_GetCadenceComponentVersion_Call
- func (_c *KVStoreMutator_GetCadenceComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreMutator_GetCadenceComponentVersion_Call
- func (_c *KVStoreMutator_GetCadenceComponentVersion_Call) Run(run func()) *KVStoreMutator_GetCadenceComponentVersion_Call
- func (_c *KVStoreMutator_GetCadenceComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreMutator_GetCadenceComponentVersion_Call
- type KVStoreMutator_GetEpochExtensionViewCount_Call
- func (_c *KVStoreMutator_GetEpochExtensionViewCount_Call) Return(v uint64) *KVStoreMutator_GetEpochExtensionViewCount_Call
- func (_c *KVStoreMutator_GetEpochExtensionViewCount_Call) Run(run func()) *KVStoreMutator_GetEpochExtensionViewCount_Call
- func (_c *KVStoreMutator_GetEpochExtensionViewCount_Call) RunAndReturn(run func() uint64) *KVStoreMutator_GetEpochExtensionViewCount_Call
- type KVStoreMutator_GetEpochStateID_Call
- func (_c *KVStoreMutator_GetEpochStateID_Call) Return(identifier flow.Identifier) *KVStoreMutator_GetEpochStateID_Call
- func (_c *KVStoreMutator_GetEpochStateID_Call) Run(run func()) *KVStoreMutator_GetEpochStateID_Call
- func (_c *KVStoreMutator_GetEpochStateID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreMutator_GetEpochStateID_Call
- type KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Run(run func()) *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
- type KVStoreMutator_GetExecutionComponentVersion_Call
- func (_c *KVStoreMutator_GetExecutionComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreMutator_GetExecutionComponentVersion_Call
- func (_c *KVStoreMutator_GetExecutionComponentVersion_Call) Run(run func()) *KVStoreMutator_GetExecutionComponentVersion_Call
- func (_c *KVStoreMutator_GetExecutionComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreMutator_GetExecutionComponentVersion_Call
- type KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Return(...) *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Run(run func()) *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
- type KVStoreMutator_GetExecutionMeteringParameters_Call
- func (_c *KVStoreMutator_GetExecutionMeteringParameters_Call) Return(executionMeteringParameters protocol.ExecutionMeteringParameters, err error) *KVStoreMutator_GetExecutionMeteringParameters_Call
- func (_c *KVStoreMutator_GetExecutionMeteringParameters_Call) Run(run func()) *KVStoreMutator_GetExecutionMeteringParameters_Call
- func (_c *KVStoreMutator_GetExecutionMeteringParameters_Call) RunAndReturn(run func() (protocol.ExecutionMeteringParameters, error)) *KVStoreMutator_GetExecutionMeteringParameters_Call
- type KVStoreMutator_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreMutator_GetFinalizationSafetyThreshold_Call) Return(v uint64) *KVStoreMutator_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreMutator_GetFinalizationSafetyThreshold_Call) Run(run func()) *KVStoreMutator_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreMutator_GetFinalizationSafetyThreshold_Call) RunAndReturn(run func() uint64) *KVStoreMutator_GetFinalizationSafetyThreshold_Call
- type KVStoreMutator_GetProtocolStateVersion_Call
- func (_c *KVStoreMutator_GetProtocolStateVersion_Call) Return(v uint64) *KVStoreMutator_GetProtocolStateVersion_Call
- func (_c *KVStoreMutator_GetProtocolStateVersion_Call) Run(run func()) *KVStoreMutator_GetProtocolStateVersion_Call
- func (_c *KVStoreMutator_GetProtocolStateVersion_Call) RunAndReturn(run func() uint64) *KVStoreMutator_GetProtocolStateVersion_Call
- type KVStoreMutator_GetVersionUpgrade_Call
- func (_c *KVStoreMutator_GetVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[uint64]) *KVStoreMutator_GetVersionUpgrade_Call
- func (_c *KVStoreMutator_GetVersionUpgrade_Call) Run(run func()) *KVStoreMutator_GetVersionUpgrade_Call
- func (_c *KVStoreMutator_GetVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[uint64]) *KVStoreMutator_GetVersionUpgrade_Call
- type KVStoreMutator_ID_Call
- type KVStoreMutator_SetEpochExtensionViewCount_Call
- func (_c *KVStoreMutator_SetEpochExtensionViewCount_Call) Return(err error) *KVStoreMutator_SetEpochExtensionViewCount_Call
- func (_c *KVStoreMutator_SetEpochExtensionViewCount_Call) Run(run func(viewCount uint64)) *KVStoreMutator_SetEpochExtensionViewCount_Call
- func (_c *KVStoreMutator_SetEpochExtensionViewCount_Call) RunAndReturn(run func(viewCount uint64) error) *KVStoreMutator_SetEpochExtensionViewCount_Call
- type KVStoreMutator_SetEpochStateID_Call
- func (_c *KVStoreMutator_SetEpochStateID_Call) Return() *KVStoreMutator_SetEpochStateID_Call
- func (_c *KVStoreMutator_SetEpochStateID_Call) Run(run func(stateID flow.Identifier)) *KVStoreMutator_SetEpochStateID_Call
- func (_c *KVStoreMutator_SetEpochStateID_Call) RunAndReturn(run func(stateID flow.Identifier)) *KVStoreMutator_SetEpochStateID_Call
- type KVStoreMutator_SetVersionUpgrade_Call
- func (_c *KVStoreMutator_SetVersionUpgrade_Call) Return() *KVStoreMutator_SetVersionUpgrade_Call
- func (_c *KVStoreMutator_SetVersionUpgrade_Call) Run(run func(version *protocol.ViewBasedActivator[uint64])) *KVStoreMutator_SetVersionUpgrade_Call
- func (_c *KVStoreMutator_SetVersionUpgrade_Call) RunAndReturn(run func(version *protocol.ViewBasedActivator[uint64])) *KVStoreMutator_SetVersionUpgrade_Call
- type KVStoreMutator_VersionedEncode_Call
- func (_c *KVStoreMutator_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *KVStoreMutator_VersionedEncode_Call
- func (_c *KVStoreMutator_VersionedEncode_Call) Run(run func()) *KVStoreMutator_VersionedEncode_Call
- func (_c *KVStoreMutator_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *KVStoreMutator_VersionedEncode_Call
- type KeyValueStoreStateMachine
- func (_mock *KeyValueStoreStateMachine) Build() (*deferred.DeferredBlockPersist, error)
- func (_m *KeyValueStoreStateMachine) EXPECT() *KeyValueStoreStateMachine_Expecter
- func (_mock *KeyValueStoreStateMachine) EvolveState(sealedServiceEvents []flow.ServiceEvent) error
- func (_mock *KeyValueStoreStateMachine) ParentState() protocol.KVStoreReader
- func (_mock *KeyValueStoreStateMachine) View() uint64
- type KeyValueStoreStateMachineFactory
- type KeyValueStoreStateMachineFactory_Create_Call
- func (_c *KeyValueStoreStateMachineFactory_Create_Call) Return(v protocol_state.KeyValueStoreStateMachine, err error) *KeyValueStoreStateMachineFactory_Create_Call
- func (_c *KeyValueStoreStateMachineFactory_Create_Call) Run(run func(candidateView uint64, parentID flow.Identifier, ...)) *KeyValueStoreStateMachineFactory_Create_Call
- func (_c *KeyValueStoreStateMachineFactory_Create_Call) RunAndReturn(...) *KeyValueStoreStateMachineFactory_Create_Call
- type KeyValueStoreStateMachineFactory_Expecter
- type KeyValueStoreStateMachine_Build_Call
- func (_c *KeyValueStoreStateMachine_Build_Call) Return(deferredBlockPersist *deferred.DeferredBlockPersist, err error) *KeyValueStoreStateMachine_Build_Call
- func (_c *KeyValueStoreStateMachine_Build_Call) Run(run func()) *KeyValueStoreStateMachine_Build_Call
- func (_c *KeyValueStoreStateMachine_Build_Call) RunAndReturn(run func() (*deferred.DeferredBlockPersist, error)) *KeyValueStoreStateMachine_Build_Call
- type KeyValueStoreStateMachine_EvolveState_Call
- func (_c *KeyValueStoreStateMachine_EvolveState_Call) Return(err error) *KeyValueStoreStateMachine_EvolveState_Call
- func (_c *KeyValueStoreStateMachine_EvolveState_Call) Run(run func(sealedServiceEvents []flow.ServiceEvent)) *KeyValueStoreStateMachine_EvolveState_Call
- func (_c *KeyValueStoreStateMachine_EvolveState_Call) RunAndReturn(run func(sealedServiceEvents []flow.ServiceEvent) error) *KeyValueStoreStateMachine_EvolveState_Call
- type KeyValueStoreStateMachine_Expecter
- func (_e *KeyValueStoreStateMachine_Expecter) Build() *KeyValueStoreStateMachine_Build_Call
- func (_e *KeyValueStoreStateMachine_Expecter) EvolveState(sealedServiceEvents interface{}) *KeyValueStoreStateMachine_EvolveState_Call
- func (_e *KeyValueStoreStateMachine_Expecter) ParentState() *KeyValueStoreStateMachine_ParentState_Call
- func (_e *KeyValueStoreStateMachine_Expecter) View() *KeyValueStoreStateMachine_View_Call
- type KeyValueStoreStateMachine_ParentState_Call
- func (_c *KeyValueStoreStateMachine_ParentState_Call) Return(kVStoreReader protocol.KVStoreReader) *KeyValueStoreStateMachine_ParentState_Call
- func (_c *KeyValueStoreStateMachine_ParentState_Call) Run(run func()) *KeyValueStoreStateMachine_ParentState_Call
- func (_c *KeyValueStoreStateMachine_ParentState_Call) RunAndReturn(run func() protocol.KVStoreReader) *KeyValueStoreStateMachine_ParentState_Call
- type KeyValueStoreStateMachine_View_Call
- func (_c *KeyValueStoreStateMachine_View_Call) Return(v uint64) *KeyValueStoreStateMachine_View_Call
- func (_c *KeyValueStoreStateMachine_View_Call) Run(run func()) *KeyValueStoreStateMachine_View_Call
- func (_c *KeyValueStoreStateMachine_View_Call) RunAndReturn(run func() uint64) *KeyValueStoreStateMachine_View_Call
- type OrthogonalStoreStateMachine
- func (_mock *OrthogonalStoreStateMachine[P]) Build() (*deferred.DeferredBlockPersist, error)
- func (_m *OrthogonalStoreStateMachine[P]) EXPECT() *OrthogonalStoreStateMachine_Expecter[P]
- func (_mock *OrthogonalStoreStateMachine[P]) EvolveState(sealedServiceEvents []flow.ServiceEvent) error
- func (_mock *OrthogonalStoreStateMachine[P]) ParentState() P
- func (_mock *OrthogonalStoreStateMachine[P]) View() uint64
- type OrthogonalStoreStateMachine_Build_Call
- func (_c *OrthogonalStoreStateMachine_Build_Call[P]) Return(deferredBlockPersist *deferred.DeferredBlockPersist, err error) *OrthogonalStoreStateMachine_Build_Call[P]
- func (_c *OrthogonalStoreStateMachine_Build_Call[P]) Run(run func()) *OrthogonalStoreStateMachine_Build_Call[P]
- func (_c *OrthogonalStoreStateMachine_Build_Call[P]) RunAndReturn(run func() (*deferred.DeferredBlockPersist, error)) *OrthogonalStoreStateMachine_Build_Call[P]
- type OrthogonalStoreStateMachine_EvolveState_Call
- func (_c *OrthogonalStoreStateMachine_EvolveState_Call[P]) Return(err error) *OrthogonalStoreStateMachine_EvolveState_Call[P]
- func (_c *OrthogonalStoreStateMachine_EvolveState_Call[P]) Run(run func(sealedServiceEvents []flow.ServiceEvent)) *OrthogonalStoreStateMachine_EvolveState_Call[P]
- func (_c *OrthogonalStoreStateMachine_EvolveState_Call[P]) RunAndReturn(run func(sealedServiceEvents []flow.ServiceEvent) error) *OrthogonalStoreStateMachine_EvolveState_Call[P]
- type OrthogonalStoreStateMachine_Expecter
- func (_e *OrthogonalStoreStateMachine_Expecter[P]) Build() *OrthogonalStoreStateMachine_Build_Call[P]
- func (_e *OrthogonalStoreStateMachine_Expecter[P]) EvolveState(sealedServiceEvents interface{}) *OrthogonalStoreStateMachine_EvolveState_Call[P]
- func (_e *OrthogonalStoreStateMachine_Expecter[P]) ParentState() *OrthogonalStoreStateMachine_ParentState_Call[P]
- func (_e *OrthogonalStoreStateMachine_Expecter[P]) View() *OrthogonalStoreStateMachine_View_Call[P]
- type OrthogonalStoreStateMachine_ParentState_Call
- func (_c *OrthogonalStoreStateMachine_ParentState_Call[P]) Return(v P) *OrthogonalStoreStateMachine_ParentState_Call[P]
- func (_c *OrthogonalStoreStateMachine_ParentState_Call[P]) Run(run func()) *OrthogonalStoreStateMachine_ParentState_Call[P]
- func (_c *OrthogonalStoreStateMachine_ParentState_Call[P]) RunAndReturn(run func() P) *OrthogonalStoreStateMachine_ParentState_Call[P]
- type OrthogonalStoreStateMachine_View_Call
- func (_c *OrthogonalStoreStateMachine_View_Call[P]) Return(v uint64) *OrthogonalStoreStateMachine_View_Call[P]
- func (_c *OrthogonalStoreStateMachine_View_Call[P]) Run(run func()) *OrthogonalStoreStateMachine_View_Call[P]
- func (_c *OrthogonalStoreStateMachine_View_Call[P]) RunAndReturn(run func() uint64) *OrthogonalStoreStateMachine_View_Call[P]
- type ProtocolKVStore
- func (_mock *ProtocolKVStore) BatchIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, ...) error
- func (_mock *ProtocolKVStore) BatchStore(rw storage.ReaderBatchWriter, stateID flow.Identifier, ...) error
- func (_mock *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (protocol_state.KVStoreAPI, error)
- func (_mock *ProtocolKVStore) ByID(id flow.Identifier) (protocol_state.KVStoreAPI, error)
- func (_m *ProtocolKVStore) EXPECT() *ProtocolKVStore_Expecter
- type ProtocolKVStore_BatchIndex_Call
- type ProtocolKVStore_BatchStore_Call
- func (_c *ProtocolKVStore_BatchStore_Call) Return(err error) *ProtocolKVStore_BatchStore_Call
- func (_c *ProtocolKVStore_BatchStore_Call) Run(run func(rw storage.ReaderBatchWriter, stateID flow.Identifier, ...)) *ProtocolKVStore_BatchStore_Call
- func (_c *ProtocolKVStore_BatchStore_Call) RunAndReturn(run func(rw storage.ReaderBatchWriter, stateID flow.Identifier, ...) error) *ProtocolKVStore_BatchStore_Call
- type ProtocolKVStore_ByBlockID_Call
- func (_c *ProtocolKVStore_ByBlockID_Call) Return(kVStoreAPI protocol_state.KVStoreAPI, err error) *ProtocolKVStore_ByBlockID_Call
- func (_c *ProtocolKVStore_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *ProtocolKVStore_ByBlockID_Call
- func (_c *ProtocolKVStore_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol_state.KVStoreAPI, error)) *ProtocolKVStore_ByBlockID_Call
- type ProtocolKVStore_ByID_Call
- func (_c *ProtocolKVStore_ByID_Call) Return(kVStoreAPI protocol_state.KVStoreAPI, err error) *ProtocolKVStore_ByID_Call
- func (_c *ProtocolKVStore_ByID_Call) Run(run func(id flow.Identifier)) *ProtocolKVStore_ByID_Call
- func (_c *ProtocolKVStore_ByID_Call) RunAndReturn(run func(id flow.Identifier) (protocol_state.KVStoreAPI, error)) *ProtocolKVStore_ByID_Call
- type ProtocolKVStore_Expecter
- func (_e *ProtocolKVStore_Expecter) BatchIndex(lctx interface{}, rw interface{}, blockID interface{}, stateID interface{}) *ProtocolKVStore_BatchIndex_Call
- func (_e *ProtocolKVStore_Expecter) BatchStore(rw interface{}, stateID interface{}, kvStore interface{}) *ProtocolKVStore_BatchStore_Call
- func (_e *ProtocolKVStore_Expecter) ByBlockID(blockID interface{}) *ProtocolKVStore_ByBlockID_Call
- func (_e *ProtocolKVStore_Expecter) ByID(id interface{}) *ProtocolKVStore_ByID_Call
- type StateMachineTelemetryConsumer
- func (_m *StateMachineTelemetryConsumer) EXPECT() *StateMachineTelemetryConsumer_Expecter
- func (_mock *StateMachineTelemetryConsumer) OnInvalidServiceEvent(event flow.ServiceEvent, err error)
- func (_mock *StateMachineTelemetryConsumer) OnServiceEventProcessed(event flow.ServiceEvent)
- func (_mock *StateMachineTelemetryConsumer) OnServiceEventReceived(event flow.ServiceEvent)
- type StateMachineTelemetryConsumer_Expecter
- func (_e *StateMachineTelemetryConsumer_Expecter) OnInvalidServiceEvent(event interface{}, err interface{}) *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
- func (_e *StateMachineTelemetryConsumer_Expecter) OnServiceEventProcessed(event interface{}) *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
- func (_e *StateMachineTelemetryConsumer_Expecter) OnServiceEventReceived(event interface{}) *StateMachineTelemetryConsumer_OnServiceEventReceived_Call
- type StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
- func (_c *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) Return() *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
- func (_c *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) Run(run func(event flow.ServiceEvent, err error)) *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
- func (_c *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) RunAndReturn(run func(event flow.ServiceEvent, err error)) *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
- type StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
- func (_c *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) Return() *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
- func (_c *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) Run(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
- func (_c *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) RunAndReturn(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
- type StateMachineTelemetryConsumer_OnServiceEventReceived_Call
- func (_c *StateMachineTelemetryConsumer_OnServiceEventReceived_Call) Return() *StateMachineTelemetryConsumer_OnServiceEventReceived_Call
- func (_c *StateMachineTelemetryConsumer_OnServiceEventReceived_Call) Run(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventReceived_Call
- func (_c *StateMachineTelemetryConsumer_OnServiceEventReceived_Call) RunAndReturn(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventReceived_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStoreAPI ¶
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
func (_e *KVStoreAPI_Expecter) GetEpochStateID() *KVStoreAPI_GetEpochStateID_Call
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
func (_e *KVStoreAPI_Expecter) ID() *KVStoreAPI_ID_Call
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
func (_e *KVStoreAPI_Expecter) VersionedEncode() *KVStoreAPI_VersionedEncode_Call
VersionedEncode is a helper method to define mock.On call
type KVStoreAPI_GetCadenceComponentVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
func (*KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) Run(run func()) *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
func (*KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetCadenceComponentVersionUpgrade_Call
type KVStoreAPI_GetCadenceComponentVersion_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetCadenceComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreAPI_GetCadenceComponentVersion_Call
func (*KVStoreAPI_GetCadenceComponentVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetCadenceComponentVersion_Call) Run(run func()) *KVStoreAPI_GetCadenceComponentVersion_Call
func (*KVStoreAPI_GetCadenceComponentVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetCadenceComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreAPI_GetCadenceComponentVersion_Call
type KVStoreAPI_GetEpochExtensionViewCount_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetEpochExtensionViewCount_Call) Return(v uint64) *KVStoreAPI_GetEpochExtensionViewCount_Call
func (*KVStoreAPI_GetEpochExtensionViewCount_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetEpochExtensionViewCount_Call) Run(run func()) *KVStoreAPI_GetEpochExtensionViewCount_Call
func (*KVStoreAPI_GetEpochExtensionViewCount_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetEpochExtensionViewCount_Call) RunAndReturn(run func() uint64) *KVStoreAPI_GetEpochExtensionViewCount_Call
type KVStoreAPI_GetEpochStateID_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetEpochStateID_Call) Return(identifier flow.Identifier) *KVStoreAPI_GetEpochStateID_Call
func (*KVStoreAPI_GetEpochStateID_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetEpochStateID_Call) Run(run func()) *KVStoreAPI_GetEpochStateID_Call
func (*KVStoreAPI_GetEpochStateID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetEpochStateID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreAPI_GetEpochStateID_Call
type KVStoreAPI_GetExecutionComponentVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
func (*KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) Run(run func()) *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
func (*KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreAPI_GetExecutionComponentVersionUpgrade_Call
type KVStoreAPI_GetExecutionComponentVersion_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetExecutionComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreAPI_GetExecutionComponentVersion_Call
func (*KVStoreAPI_GetExecutionComponentVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionComponentVersion_Call) Run(run func()) *KVStoreAPI_GetExecutionComponentVersion_Call
func (*KVStoreAPI_GetExecutionComponentVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreAPI_GetExecutionComponentVersion_Call
type KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
func (*KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) Run(run func()) *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
func (*KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreAPI_GetExecutionMeteringParametersUpgrade_Call
type KVStoreAPI_GetExecutionMeteringParameters_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetExecutionMeteringParameters_Call) Return(executionMeteringParameters protocol.ExecutionMeteringParameters, err error) *KVStoreAPI_GetExecutionMeteringParameters_Call
func (*KVStoreAPI_GetExecutionMeteringParameters_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionMeteringParameters_Call) Run(run func()) *KVStoreAPI_GetExecutionMeteringParameters_Call
func (*KVStoreAPI_GetExecutionMeteringParameters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetExecutionMeteringParameters_Call) RunAndReturn(run func() (protocol.ExecutionMeteringParameters, error)) *KVStoreAPI_GetExecutionMeteringParameters_Call
type KVStoreAPI_GetFinalizationSafetyThreshold_Call ¶ added in v0.46.0
KVStoreAPI_GetFinalizationSafetyThreshold_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFinalizationSafetyThreshold'
func (*KVStoreAPI_GetFinalizationSafetyThreshold_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetFinalizationSafetyThreshold_Call) Run(run func()) *KVStoreAPI_GetFinalizationSafetyThreshold_Call
func (*KVStoreAPI_GetFinalizationSafetyThreshold_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetFinalizationSafetyThreshold_Call) RunAndReturn(run func() uint64) *KVStoreAPI_GetFinalizationSafetyThreshold_Call
type KVStoreAPI_GetProtocolStateVersion_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetProtocolStateVersion_Call) Return(v uint64) *KVStoreAPI_GetProtocolStateVersion_Call
func (*KVStoreAPI_GetProtocolStateVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetProtocolStateVersion_Call) Run(run func()) *KVStoreAPI_GetProtocolStateVersion_Call
func (*KVStoreAPI_GetProtocolStateVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetProtocolStateVersion_Call) RunAndReturn(run func() uint64) *KVStoreAPI_GetProtocolStateVersion_Call
type KVStoreAPI_GetVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreAPI_GetVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[uint64]) *KVStoreAPI_GetVersionUpgrade_Call
func (*KVStoreAPI_GetVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_GetVersionUpgrade_Call) Run(run func()) *KVStoreAPI_GetVersionUpgrade_Call
func (*KVStoreAPI_GetVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_GetVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[uint64]) *KVStoreAPI_GetVersionUpgrade_Call
type KVStoreAPI_ID_Call ¶ added in v0.46.0
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
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 (_c *KVStoreAPI_Replicate_Call) Return(kVStoreMutator protocol_state.KVStoreMutator, err error) *KVStoreAPI_Replicate_Call
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
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 (_c *KVStoreAPI_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *KVStoreAPI_VersionedEncode_Call
func (*KVStoreAPI_VersionedEncode_Call) Run ¶ added in v0.46.0
func (_c *KVStoreAPI_VersionedEncode_Call) Run(run func()) *KVStoreAPI_VersionedEncode_Call
func (*KVStoreAPI_VersionedEncode_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreAPI_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *KVStoreAPI_VersionedEncode_Call
type KVStoreMutator ¶
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 (_m *KVStoreMutator) EXPECT() *KVStoreMutator_Expecter
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
func (_e *KVStoreMutator_Expecter) GetCadenceComponentVersion() *KVStoreMutator_GetCadenceComponentVersion_Call
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
func (_e *KVStoreMutator_Expecter) GetEpochExtensionViewCount() *KVStoreMutator_GetEpochExtensionViewCount_Call
GetEpochExtensionViewCount is a helper method to define mock.On call
func (*KVStoreMutator_Expecter) GetEpochStateID ¶ added in v0.46.0
func (_e *KVStoreMutator_Expecter) GetEpochStateID() *KVStoreMutator_GetEpochStateID_Call
GetEpochStateID is a helper method to define mock.On call
func (*KVStoreMutator_Expecter) GetExecutionComponentVersion ¶ added in v0.46.0
func (_e *KVStoreMutator_Expecter) GetExecutionComponentVersion() *KVStoreMutator_GetExecutionComponentVersion_Call
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
func (_e *KVStoreMutator_Expecter) GetExecutionMeteringParameters() *KVStoreMutator_GetExecutionMeteringParameters_Call
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
func (_e *KVStoreMutator_Expecter) GetFinalizationSafetyThreshold() *KVStoreMutator_GetFinalizationSafetyThreshold_Call
GetFinalizationSafetyThreshold is a helper method to define mock.On call
func (*KVStoreMutator_Expecter) GetProtocolStateVersion ¶ added in v0.46.0
func (_e *KVStoreMutator_Expecter) GetProtocolStateVersion() *KVStoreMutator_GetProtocolStateVersion_Call
GetProtocolStateVersion is a helper method to define mock.On call
func (*KVStoreMutator_Expecter) GetVersionUpgrade ¶ added in v0.46.0
func (_e *KVStoreMutator_Expecter) GetVersionUpgrade() *KVStoreMutator_GetVersionUpgrade_Call
GetVersionUpgrade is a helper method to define mock.On call
func (*KVStoreMutator_Expecter) ID ¶ added in v0.46.0
func (_e *KVStoreMutator_Expecter) ID() *KVStoreMutator_ID_Call
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
func (_e *KVStoreMutator_Expecter) VersionedEncode() *KVStoreMutator_VersionedEncode_Call
VersionedEncode is a helper method to define mock.On call
type KVStoreMutator_GetCadenceComponentVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
func (*KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) Run(run func()) *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
func (*KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetCadenceComponentVersionUpgrade_Call
type KVStoreMutator_GetCadenceComponentVersion_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetCadenceComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreMutator_GetCadenceComponentVersion_Call
func (*KVStoreMutator_GetCadenceComponentVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetCadenceComponentVersion_Call) Run(run func()) *KVStoreMutator_GetCadenceComponentVersion_Call
func (*KVStoreMutator_GetCadenceComponentVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetCadenceComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreMutator_GetCadenceComponentVersion_Call
type KVStoreMutator_GetEpochExtensionViewCount_Call ¶ added in v0.46.0
KVStoreMutator_GetEpochExtensionViewCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpochExtensionViewCount'
func (*KVStoreMutator_GetEpochExtensionViewCount_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetEpochExtensionViewCount_Call) Run(run func()) *KVStoreMutator_GetEpochExtensionViewCount_Call
func (*KVStoreMutator_GetEpochExtensionViewCount_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetEpochExtensionViewCount_Call) RunAndReturn(run func() uint64) *KVStoreMutator_GetEpochExtensionViewCount_Call
type KVStoreMutator_GetEpochStateID_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetEpochStateID_Call) Return(identifier flow.Identifier) *KVStoreMutator_GetEpochStateID_Call
func (*KVStoreMutator_GetEpochStateID_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetEpochStateID_Call) Run(run func()) *KVStoreMutator_GetEpochStateID_Call
func (*KVStoreMutator_GetEpochStateID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetEpochStateID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreMutator_GetEpochStateID_Call
type KVStoreMutator_GetExecutionComponentVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
func (*KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) Run(run func()) *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
func (*KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreMutator_GetExecutionComponentVersionUpgrade_Call
type KVStoreMutator_GetExecutionComponentVersion_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetExecutionComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreMutator_GetExecutionComponentVersion_Call
func (*KVStoreMutator_GetExecutionComponentVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionComponentVersion_Call) Run(run func()) *KVStoreMutator_GetExecutionComponentVersion_Call
func (*KVStoreMutator_GetExecutionComponentVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreMutator_GetExecutionComponentVersion_Call
type KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
func (*KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) Run(run func()) *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
func (*KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreMutator_GetExecutionMeteringParametersUpgrade_Call
type KVStoreMutator_GetExecutionMeteringParameters_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetExecutionMeteringParameters_Call) Return(executionMeteringParameters protocol.ExecutionMeteringParameters, err error) *KVStoreMutator_GetExecutionMeteringParameters_Call
func (*KVStoreMutator_GetExecutionMeteringParameters_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionMeteringParameters_Call) Run(run func()) *KVStoreMutator_GetExecutionMeteringParameters_Call
func (*KVStoreMutator_GetExecutionMeteringParameters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetExecutionMeteringParameters_Call) RunAndReturn(run func() (protocol.ExecutionMeteringParameters, error)) *KVStoreMutator_GetExecutionMeteringParameters_Call
type KVStoreMutator_GetFinalizationSafetyThreshold_Call ¶ added in v0.46.0
KVStoreMutator_GetFinalizationSafetyThreshold_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFinalizationSafetyThreshold'
func (*KVStoreMutator_GetFinalizationSafetyThreshold_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetFinalizationSafetyThreshold_Call) Run(run func()) *KVStoreMutator_GetFinalizationSafetyThreshold_Call
func (*KVStoreMutator_GetFinalizationSafetyThreshold_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetFinalizationSafetyThreshold_Call) RunAndReturn(run func() uint64) *KVStoreMutator_GetFinalizationSafetyThreshold_Call
type KVStoreMutator_GetProtocolStateVersion_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetProtocolStateVersion_Call) Return(v uint64) *KVStoreMutator_GetProtocolStateVersion_Call
func (*KVStoreMutator_GetProtocolStateVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetProtocolStateVersion_Call) Run(run func()) *KVStoreMutator_GetProtocolStateVersion_Call
func (*KVStoreMutator_GetProtocolStateVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetProtocolStateVersion_Call) RunAndReturn(run func() uint64) *KVStoreMutator_GetProtocolStateVersion_Call
type KVStoreMutator_GetVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_GetVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[uint64]) *KVStoreMutator_GetVersionUpgrade_Call
func (*KVStoreMutator_GetVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_GetVersionUpgrade_Call) Run(run func()) *KVStoreMutator_GetVersionUpgrade_Call
func (*KVStoreMutator_GetVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_GetVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[uint64]) *KVStoreMutator_GetVersionUpgrade_Call
type KVStoreMutator_ID_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_ID_Call) Return(identifier flow.Identifier) *KVStoreMutator_ID_Call
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
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 (_c *KVStoreMutator_SetEpochExtensionViewCount_Call) Return(err error) *KVStoreMutator_SetEpochExtensionViewCount_Call
func (*KVStoreMutator_SetEpochExtensionViewCount_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_SetEpochExtensionViewCount_Call) Run(run func(viewCount uint64)) *KVStoreMutator_SetEpochExtensionViewCount_Call
func (*KVStoreMutator_SetEpochExtensionViewCount_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_SetEpochExtensionViewCount_Call) RunAndReturn(run func(viewCount uint64) error) *KVStoreMutator_SetEpochExtensionViewCount_Call
type KVStoreMutator_SetEpochStateID_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_SetEpochStateID_Call) Return() *KVStoreMutator_SetEpochStateID_Call
func (*KVStoreMutator_SetEpochStateID_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_SetEpochStateID_Call) Run(run func(stateID flow.Identifier)) *KVStoreMutator_SetEpochStateID_Call
func (*KVStoreMutator_SetEpochStateID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_SetEpochStateID_Call) RunAndReturn(run func(stateID flow.Identifier)) *KVStoreMutator_SetEpochStateID_Call
type KVStoreMutator_SetVersionUpgrade_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_SetVersionUpgrade_Call) Return() *KVStoreMutator_SetVersionUpgrade_Call
func (*KVStoreMutator_SetVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_SetVersionUpgrade_Call) Run(run func(version *protocol.ViewBasedActivator[uint64])) *KVStoreMutator_SetVersionUpgrade_Call
func (*KVStoreMutator_SetVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_SetVersionUpgrade_Call) RunAndReturn(run func(version *protocol.ViewBasedActivator[uint64])) *KVStoreMutator_SetVersionUpgrade_Call
type KVStoreMutator_VersionedEncode_Call ¶ added in v0.46.0
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 (_c *KVStoreMutator_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *KVStoreMutator_VersionedEncode_Call
func (*KVStoreMutator_VersionedEncode_Call) Run ¶ added in v0.46.0
func (_c *KVStoreMutator_VersionedEncode_Call) Run(run func()) *KVStoreMutator_VersionedEncode_Call
func (*KVStoreMutator_VersionedEncode_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreMutator_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *KVStoreMutator_VersionedEncode_Call
type KeyValueStoreStateMachine ¶ added in v0.41.0
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
func (_mock *KeyValueStoreStateMachine) Build() (*deferred.DeferredBlockPersist, error)
Build provides a mock function for the type KeyValueStoreStateMachine
func (*KeyValueStoreStateMachine) EXPECT ¶ added in v0.46.0
func (_m *KeyValueStoreStateMachine) EXPECT() *KeyValueStoreStateMachine_Expecter
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 ¶
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 ¶
func (_mock *KeyValueStoreStateMachineFactory) Create(candidateView uint64, parentID flow.Identifier, parentState protocol.KVStoreReader, mutator protocol_state.KVStoreMutator) (protocol_state.KeyValueStoreStateMachine, error)
Create provides a mock function for the type KeyValueStoreStateMachineFactory
func (*KeyValueStoreStateMachineFactory) EXPECT ¶ added in v0.46.0
func (_m *KeyValueStoreStateMachineFactory) EXPECT() *KeyValueStoreStateMachineFactory_Expecter
type KeyValueStoreStateMachineFactory_Create_Call ¶ added in v0.46.0
KeyValueStoreStateMachineFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*KeyValueStoreStateMachineFactory_Create_Call) Run ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachineFactory_Create_Call) Run(run func(candidateView uint64, parentID flow.Identifier, parentState protocol.KVStoreReader, mutator protocol_state.KVStoreMutator)) *KeyValueStoreStateMachineFactory_Create_Call
func (*KeyValueStoreStateMachineFactory_Create_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachineFactory_Create_Call) RunAndReturn(run func(candidateView uint64, parentID flow.Identifier, parentState protocol.KVStoreReader, mutator protocol_state.KVStoreMutator) (protocol_state.KeyValueStoreStateMachine, error)) *KeyValueStoreStateMachineFactory_Create_Call
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
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 (_c *KeyValueStoreStateMachine_Build_Call) Return(deferredBlockPersist *deferred.DeferredBlockPersist, err error) *KeyValueStoreStateMachine_Build_Call
func (*KeyValueStoreStateMachine_Build_Call) Run ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_Build_Call) Run(run func()) *KeyValueStoreStateMachine_Build_Call
func (*KeyValueStoreStateMachine_Build_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_Build_Call) RunAndReturn(run func() (*deferred.DeferredBlockPersist, error)) *KeyValueStoreStateMachine_Build_Call
type KeyValueStoreStateMachine_EvolveState_Call ¶ added in v0.46.0
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 (_c *KeyValueStoreStateMachine_EvolveState_Call) Return(err error) *KeyValueStoreStateMachine_EvolveState_Call
func (*KeyValueStoreStateMachine_EvolveState_Call) Run ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_EvolveState_Call) Run(run func(sealedServiceEvents []flow.ServiceEvent)) *KeyValueStoreStateMachine_EvolveState_Call
func (*KeyValueStoreStateMachine_EvolveState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_EvolveState_Call) RunAndReturn(run func(sealedServiceEvents []flow.ServiceEvent) error) *KeyValueStoreStateMachine_EvolveState_Call
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
func (_e *KeyValueStoreStateMachine_Expecter) Build() *KeyValueStoreStateMachine_Build_Call
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
func (_e *KeyValueStoreStateMachine_Expecter) ParentState() *KeyValueStoreStateMachine_ParentState_Call
ParentState is a helper method to define mock.On call
func (*KeyValueStoreStateMachine_Expecter) View ¶ added in v0.46.0
func (_e *KeyValueStoreStateMachine_Expecter) View() *KeyValueStoreStateMachine_View_Call
View is a helper method to define mock.On call
type KeyValueStoreStateMachine_ParentState_Call ¶ added in v0.46.0
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 (_c *KeyValueStoreStateMachine_ParentState_Call) Return(kVStoreReader protocol.KVStoreReader) *KeyValueStoreStateMachine_ParentState_Call
func (*KeyValueStoreStateMachine_ParentState_Call) Run ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_ParentState_Call) Run(run func()) *KeyValueStoreStateMachine_ParentState_Call
func (*KeyValueStoreStateMachine_ParentState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_ParentState_Call) RunAndReturn(run func() protocol.KVStoreReader) *KeyValueStoreStateMachine_ParentState_Call
type KeyValueStoreStateMachine_View_Call ¶ added in v0.46.0
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 (_c *KeyValueStoreStateMachine_View_Call) Return(v uint64) *KeyValueStoreStateMachine_View_Call
func (*KeyValueStoreStateMachine_View_Call) Run ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_View_Call) Run(run func()) *KeyValueStoreStateMachine_View_Call
func (*KeyValueStoreStateMachine_View_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KeyValueStoreStateMachine_View_Call) RunAndReturn(run func() uint64) *KeyValueStoreStateMachine_View_Call
type OrthogonalStoreStateMachine ¶
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 ¶
func (_mock *OrthogonalStoreStateMachine[P]) Build() (*deferred.DeferredBlockPersist, error)
Build provides a mock function for the type OrthogonalStoreStateMachine
func (*OrthogonalStoreStateMachine[P]) EXPECT ¶ added in v0.46.0
func (_m *OrthogonalStoreStateMachine[P]) EXPECT() *OrthogonalStoreStateMachine_Expecter[P]
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
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 (_c *OrthogonalStoreStateMachine_Build_Call[P]) Return(deferredBlockPersist *deferred.DeferredBlockPersist, err error) *OrthogonalStoreStateMachine_Build_Call[P]
func (*OrthogonalStoreStateMachine_Build_Call[P]) Run ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_Build_Call[P]) Run(run func()) *OrthogonalStoreStateMachine_Build_Call[P]
func (*OrthogonalStoreStateMachine_Build_Call[P]) RunAndReturn ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_Build_Call[P]) RunAndReturn(run func() (*deferred.DeferredBlockPersist, error)) *OrthogonalStoreStateMachine_Build_Call[P]
type OrthogonalStoreStateMachine_EvolveState_Call ¶ added in v0.46.0
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 (_c *OrthogonalStoreStateMachine_EvolveState_Call[P]) Return(err error) *OrthogonalStoreStateMachine_EvolveState_Call[P]
func (*OrthogonalStoreStateMachine_EvolveState_Call[P]) Run ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_EvolveState_Call[P]) Run(run func(sealedServiceEvents []flow.ServiceEvent)) *OrthogonalStoreStateMachine_EvolveState_Call[P]
func (*OrthogonalStoreStateMachine_EvolveState_Call[P]) RunAndReturn ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_EvolveState_Call[P]) RunAndReturn(run func(sealedServiceEvents []flow.ServiceEvent) error) *OrthogonalStoreStateMachine_EvolveState_Call[P]
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
func (_e *OrthogonalStoreStateMachine_Expecter[P]) Build() *OrthogonalStoreStateMachine_Build_Call[P]
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
func (_e *OrthogonalStoreStateMachine_Expecter[P]) ParentState() *OrthogonalStoreStateMachine_ParentState_Call[P]
ParentState is a helper method to define mock.On call
func (*OrthogonalStoreStateMachine_Expecter[P]) View ¶ added in v0.46.0
func (_e *OrthogonalStoreStateMachine_Expecter[P]) View() *OrthogonalStoreStateMachine_View_Call[P]
View is a helper method to define mock.On call
type OrthogonalStoreStateMachine_ParentState_Call ¶ added in v0.46.0
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 (_c *OrthogonalStoreStateMachine_ParentState_Call[P]) Return(v P) *OrthogonalStoreStateMachine_ParentState_Call[P]
func (*OrthogonalStoreStateMachine_ParentState_Call[P]) Run ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_ParentState_Call[P]) Run(run func()) *OrthogonalStoreStateMachine_ParentState_Call[P]
func (*OrthogonalStoreStateMachine_ParentState_Call[P]) RunAndReturn ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_ParentState_Call[P]) RunAndReturn(run func() P) *OrthogonalStoreStateMachine_ParentState_Call[P]
type OrthogonalStoreStateMachine_View_Call ¶ added in v0.46.0
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 (_c *OrthogonalStoreStateMachine_View_Call[P]) Return(v uint64) *OrthogonalStoreStateMachine_View_Call[P]
func (*OrthogonalStoreStateMachine_View_Call[P]) Run ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_View_Call[P]) Run(run func()) *OrthogonalStoreStateMachine_View_Call[P]
func (*OrthogonalStoreStateMachine_View_Call[P]) RunAndReturn ¶ added in v0.46.0
func (_c *OrthogonalStoreStateMachine_View_Call[P]) RunAndReturn(run func() uint64) *OrthogonalStoreStateMachine_View_Call[P]
type ProtocolKVStore ¶
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 ¶
func (_mock *ProtocolKVStore) ByID(id flow.Identifier) (protocol_state.KVStoreAPI, error)
ByID provides a mock function for the type ProtocolKVStore
func (*ProtocolKVStore) EXPECT ¶ added in v0.46.0
func (_m *ProtocolKVStore) EXPECT() *ProtocolKVStore_Expecter
type ProtocolKVStore_BatchIndex_Call ¶ added in v0.46.0
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 (_c *ProtocolKVStore_BatchIndex_Call) Return(err error) *ProtocolKVStore_BatchIndex_Call
func (*ProtocolKVStore_BatchIndex_Call) Run ¶ added in v0.46.0
func (_c *ProtocolKVStore_BatchIndex_Call) Run(run func(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, stateID flow.Identifier)) *ProtocolKVStore_BatchIndex_Call
func (*ProtocolKVStore_BatchIndex_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolKVStore_BatchIndex_Call) RunAndReturn(run func(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, stateID flow.Identifier) error) *ProtocolKVStore_BatchIndex_Call
type ProtocolKVStore_BatchStore_Call ¶ added in v0.46.0
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 (_c *ProtocolKVStore_BatchStore_Call) Return(err error) *ProtocolKVStore_BatchStore_Call
func (*ProtocolKVStore_BatchStore_Call) Run ¶ added in v0.46.0
func (_c *ProtocolKVStore_BatchStore_Call) Run(run func(rw storage.ReaderBatchWriter, stateID flow.Identifier, kvStore protocol.KVStoreReader)) *ProtocolKVStore_BatchStore_Call
func (*ProtocolKVStore_BatchStore_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolKVStore_BatchStore_Call) RunAndReturn(run func(rw storage.ReaderBatchWriter, stateID flow.Identifier, kvStore protocol.KVStoreReader) error) *ProtocolKVStore_BatchStore_Call
type ProtocolKVStore_ByBlockID_Call ¶ added in v0.46.0
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 (_c *ProtocolKVStore_ByBlockID_Call) Return(kVStoreAPI protocol_state.KVStoreAPI, err error) *ProtocolKVStore_ByBlockID_Call
func (*ProtocolKVStore_ByBlockID_Call) Run ¶ added in v0.46.0
func (_c *ProtocolKVStore_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *ProtocolKVStore_ByBlockID_Call
func (*ProtocolKVStore_ByBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolKVStore_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol_state.KVStoreAPI, error)) *ProtocolKVStore_ByBlockID_Call
type ProtocolKVStore_ByID_Call ¶ added in v0.46.0
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 (_c *ProtocolKVStore_ByID_Call) Return(kVStoreAPI protocol_state.KVStoreAPI, err error) *ProtocolKVStore_ByID_Call
func (*ProtocolKVStore_ByID_Call) Run ¶ added in v0.46.0
func (_c *ProtocolKVStore_ByID_Call) Run(run func(id flow.Identifier)) *ProtocolKVStore_ByID_Call
func (*ProtocolKVStore_ByID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolKVStore_ByID_Call) RunAndReturn(run func(id flow.Identifier) (protocol_state.KVStoreAPI, error)) *ProtocolKVStore_ByID_Call
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
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 (_m *StateMachineTelemetryConsumer) EXPECT() *StateMachineTelemetryConsumer_Expecter
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
func (_e *StateMachineTelemetryConsumer_Expecter) OnServiceEventProcessed(event interface{}) *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
OnServiceEventProcessed is a helper method to define mock.On call
- event flow.ServiceEvent
func (*StateMachineTelemetryConsumer_Expecter) OnServiceEventReceived ¶ added in v0.46.0
func (_e *StateMachineTelemetryConsumer_Expecter) OnServiceEventReceived(event interface{}) *StateMachineTelemetryConsumer_OnServiceEventReceived_Call
OnServiceEventReceived is a helper method to define mock.On call
- event flow.ServiceEvent
type StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call ¶ added in v0.46.0
StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidServiceEvent'
func (*StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) Run ¶ added in v0.46.0
func (_c *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) Run(run func(event flow.ServiceEvent, err error)) *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
func (*StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call) RunAndReturn(run func(event flow.ServiceEvent, err error)) *StateMachineTelemetryConsumer_OnInvalidServiceEvent_Call
type StateMachineTelemetryConsumer_OnServiceEventProcessed_Call ¶ added in v0.46.0
StateMachineTelemetryConsumer_OnServiceEventProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnServiceEventProcessed'
func (*StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) Run ¶ added in v0.46.0
func (_c *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) Run(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
func (*StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call) RunAndReturn(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventProcessed_Call
type StateMachineTelemetryConsumer_OnServiceEventReceived_Call ¶ added in v0.46.0
StateMachineTelemetryConsumer_OnServiceEventReceived_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnServiceEventReceived'
func (*StateMachineTelemetryConsumer_OnServiceEventReceived_Call) Run ¶ added in v0.46.0
func (_c *StateMachineTelemetryConsumer_OnServiceEventReceived_Call) Run(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventReceived_Call
func (*StateMachineTelemetryConsumer_OnServiceEventReceived_Call) RunAndReturn ¶ added in v0.46.0
func (_c *StateMachineTelemetryConsumer_OnServiceEventReceived_Call) RunAndReturn(run func(event flow.ServiceEvent)) *StateMachineTelemetryConsumer_OnServiceEventReceived_Call