Documentation
¶
Index ¶
- type ExecutedFinalizedWAL
- func (_mock *ExecutedFinalizedWAL) Append(height uint64, registers flow.RegisterEntries) error
- func (_m *ExecutedFinalizedWAL) EXPECT() *ExecutedFinalizedWAL_Expecter
- func (_mock *ExecutedFinalizedWAL) GetReader(height uint64) execution.WALReader
- func (_mock *ExecutedFinalizedWAL) Latest() (uint64, error)
- type ExecutedFinalizedWAL_Append_Call
- func (_c *ExecutedFinalizedWAL_Append_Call) Return(err error) *ExecutedFinalizedWAL_Append_Call
- func (_c *ExecutedFinalizedWAL_Append_Call) Run(run func(height uint64, registers flow.RegisterEntries)) *ExecutedFinalizedWAL_Append_Call
- func (_c *ExecutedFinalizedWAL_Append_Call) RunAndReturn(run func(height uint64, registers flow.RegisterEntries) error) *ExecutedFinalizedWAL_Append_Call
- type ExecutedFinalizedWAL_Expecter
- func (_e *ExecutedFinalizedWAL_Expecter) Append(height interface{}, registers interface{}) *ExecutedFinalizedWAL_Append_Call
- func (_e *ExecutedFinalizedWAL_Expecter) GetReader(height interface{}) *ExecutedFinalizedWAL_GetReader_Call
- func (_e *ExecutedFinalizedWAL_Expecter) Latest() *ExecutedFinalizedWAL_Latest_Call
- type ExecutedFinalizedWAL_GetReader_Call
- func (_c *ExecutedFinalizedWAL_GetReader_Call) Return(wALReader execution.WALReader) *ExecutedFinalizedWAL_GetReader_Call
- func (_c *ExecutedFinalizedWAL_GetReader_Call) Run(run func(height uint64)) *ExecutedFinalizedWAL_GetReader_Call
- func (_c *ExecutedFinalizedWAL_GetReader_Call) RunAndReturn(run func(height uint64) execution.WALReader) *ExecutedFinalizedWAL_GetReader_Call
- type ExecutedFinalizedWAL_Latest_Call
- func (_c *ExecutedFinalizedWAL_Latest_Call) Return(v uint64, err error) *ExecutedFinalizedWAL_Latest_Call
- func (_c *ExecutedFinalizedWAL_Latest_Call) Run(run func()) *ExecutedFinalizedWAL_Latest_Call
- func (_c *ExecutedFinalizedWAL_Latest_Call) RunAndReturn(run func() (uint64, error)) *ExecutedFinalizedWAL_Latest_Call
- type ExtendableStorageSnapshot
- func (_mock *ExtendableStorageSnapshot) Commitment() flow.StateCommitment
- func (_m *ExtendableStorageSnapshot) EXPECT() *ExtendableStorageSnapshot_Expecter
- func (_mock *ExtendableStorageSnapshot) Extend(newCommit flow.StateCommitment, ...) execution.ExtendableStorageSnapshot
- func (_mock *ExtendableStorageSnapshot) Get(id flow.RegisterID) (flow.RegisterValue, error)
- type ExtendableStorageSnapshot_Commitment_Call
- func (_c *ExtendableStorageSnapshot_Commitment_Call) Return(stateCommitment flow.StateCommitment) *ExtendableStorageSnapshot_Commitment_Call
- func (_c *ExtendableStorageSnapshot_Commitment_Call) Run(run func()) *ExtendableStorageSnapshot_Commitment_Call
- func (_c *ExtendableStorageSnapshot_Commitment_Call) RunAndReturn(run func() flow.StateCommitment) *ExtendableStorageSnapshot_Commitment_Call
- type ExtendableStorageSnapshot_Expecter
- func (_e *ExtendableStorageSnapshot_Expecter) Commitment() *ExtendableStorageSnapshot_Commitment_Call
- func (_e *ExtendableStorageSnapshot_Expecter) Extend(newCommit interface{}, updatedRegisters interface{}) *ExtendableStorageSnapshot_Extend_Call
- func (_e *ExtendableStorageSnapshot_Expecter) Get(id interface{}) *ExtendableStorageSnapshot_Get_Call
- type ExtendableStorageSnapshot_Extend_Call
- func (_c *ExtendableStorageSnapshot_Extend_Call) Return(extendableStorageSnapshot execution.ExtendableStorageSnapshot) *ExtendableStorageSnapshot_Extend_Call
- func (_c *ExtendableStorageSnapshot_Extend_Call) Run(run func(newCommit flow.StateCommitment, ...)) *ExtendableStorageSnapshot_Extend_Call
- func (_c *ExtendableStorageSnapshot_Extend_Call) RunAndReturn(...) *ExtendableStorageSnapshot_Extend_Call
- type ExtendableStorageSnapshot_Get_Call
- func (_c *ExtendableStorageSnapshot_Get_Call) Return(v flow.RegisterValue, err error) *ExtendableStorageSnapshot_Get_Call
- func (_c *ExtendableStorageSnapshot_Get_Call) Run(run func(id flow.RegisterID)) *ExtendableStorageSnapshot_Get_Call
- func (_c *ExtendableStorageSnapshot_Get_Call) RunAndReturn(run func(id flow.RegisterID) (flow.RegisterValue, error)) *ExtendableStorageSnapshot_Get_Call
- type FinalizedReader
- type FinalizedReader_Expecter
- type FinalizedReader_FinalizedBlockIDAtHeight_Call
- func (_c *FinalizedReader_FinalizedBlockIDAtHeight_Call) Return(identifier flow.Identifier, err error) *FinalizedReader_FinalizedBlockIDAtHeight_Call
- func (_c *FinalizedReader_FinalizedBlockIDAtHeight_Call) Run(run func(height uint64)) *FinalizedReader_FinalizedBlockIDAtHeight_Call
- func (_c *FinalizedReader_FinalizedBlockIDAtHeight_Call) RunAndReturn(run func(height uint64) (flow.Identifier, error)) *FinalizedReader_FinalizedBlockIDAtHeight_Call
- type InMemoryRegisterStore
- func (_m *InMemoryRegisterStore) EXPECT() *InMemoryRegisterStore_Expecter
- func (_mock *InMemoryRegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) (flow.RegisterValue, error)
- func (_mock *InMemoryRegisterStore) GetUpdatedRegisters(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)
- func (_mock *InMemoryRegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_mock *InMemoryRegisterStore) Prune(finalizedHeight uint64, finalizedBlockID flow.Identifier) error
- func (_mock *InMemoryRegisterStore) PrunedHeight() uint64
- func (_mock *InMemoryRegisterStore) SaveRegisters(height uint64, blockID flow.Identifier, parentID flow.Identifier, ...) error
- type InMemoryRegisterStore_Expecter
- func (_e *InMemoryRegisterStore_Expecter) GetRegister(height interface{}, blockID interface{}, register interface{}) *InMemoryRegisterStore_GetRegister_Call
- func (_e *InMemoryRegisterStore_Expecter) GetUpdatedRegisters(height interface{}, blockID interface{}) *InMemoryRegisterStore_GetUpdatedRegisters_Call
- func (_e *InMemoryRegisterStore_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *InMemoryRegisterStore_IsBlockExecuted_Call
- func (_e *InMemoryRegisterStore_Expecter) Prune(finalizedHeight interface{}, finalizedBlockID interface{}) *InMemoryRegisterStore_Prune_Call
- func (_e *InMemoryRegisterStore_Expecter) PrunedHeight() *InMemoryRegisterStore_PrunedHeight_Call
- func (_e *InMemoryRegisterStore_Expecter) SaveRegisters(height interface{}, blockID interface{}, parentID interface{}, ...) *InMemoryRegisterStore_SaveRegisters_Call
- type InMemoryRegisterStore_GetRegister_Call
- func (_c *InMemoryRegisterStore_GetRegister_Call) Return(v flow.RegisterValue, err error) *InMemoryRegisterStore_GetRegister_Call
- func (_c *InMemoryRegisterStore_GetRegister_Call) Run(run func(height uint64, blockID flow.Identifier, register flow.RegisterID)) *InMemoryRegisterStore_GetRegister_Call
- func (_c *InMemoryRegisterStore_GetRegister_Call) RunAndReturn(...) *InMemoryRegisterStore_GetRegister_Call
- type InMemoryRegisterStore_GetUpdatedRegisters_Call
- func (_c *InMemoryRegisterStore_GetUpdatedRegisters_Call) Return(registerEntries flow.RegisterEntries, err error) *InMemoryRegisterStore_GetUpdatedRegisters_Call
- func (_c *InMemoryRegisterStore_GetUpdatedRegisters_Call) Run(run func(height uint64, blockID flow.Identifier)) *InMemoryRegisterStore_GetUpdatedRegisters_Call
- func (_c *InMemoryRegisterStore_GetUpdatedRegisters_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)) *InMemoryRegisterStore_GetUpdatedRegisters_Call
- type InMemoryRegisterStore_IsBlockExecuted_Call
- func (_c *InMemoryRegisterStore_IsBlockExecuted_Call) Return(b bool, err error) *InMemoryRegisterStore_IsBlockExecuted_Call
- func (_c *InMemoryRegisterStore_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *InMemoryRegisterStore_IsBlockExecuted_Call
- func (_c *InMemoryRegisterStore_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *InMemoryRegisterStore_IsBlockExecuted_Call
- type InMemoryRegisterStore_Prune_Call
- func (_c *InMemoryRegisterStore_Prune_Call) Return(err error) *InMemoryRegisterStore_Prune_Call
- func (_c *InMemoryRegisterStore_Prune_Call) Run(run func(finalizedHeight uint64, finalizedBlockID flow.Identifier)) *InMemoryRegisterStore_Prune_Call
- func (_c *InMemoryRegisterStore_Prune_Call) RunAndReturn(run func(finalizedHeight uint64, finalizedBlockID flow.Identifier) error) *InMemoryRegisterStore_Prune_Call
- type InMemoryRegisterStore_PrunedHeight_Call
- func (_c *InMemoryRegisterStore_PrunedHeight_Call) Return(v uint64) *InMemoryRegisterStore_PrunedHeight_Call
- func (_c *InMemoryRegisterStore_PrunedHeight_Call) Run(run func()) *InMemoryRegisterStore_PrunedHeight_Call
- func (_c *InMemoryRegisterStore_PrunedHeight_Call) RunAndReturn(run func() uint64) *InMemoryRegisterStore_PrunedHeight_Call
- type InMemoryRegisterStore_SaveRegisters_Call
- func (_c *InMemoryRegisterStore_SaveRegisters_Call) Return(err error) *InMemoryRegisterStore_SaveRegisters_Call
- func (_c *InMemoryRegisterStore_SaveRegisters_Call) Run(...) *InMemoryRegisterStore_SaveRegisters_Call
- func (_c *InMemoryRegisterStore_SaveRegisters_Call) RunAndReturn(...) *InMemoryRegisterStore_SaveRegisters_Call
- type OnDiskRegisterStore
- func (_m *OnDiskRegisterStore) EXPECT() *OnDiskRegisterStore_Expecter
- func (_mock *OnDiskRegisterStore) FirstHeight() uint64
- func (_mock *OnDiskRegisterStore) Get(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)
- func (_mock *OnDiskRegisterStore) LatestHeight() uint64
- func (_mock *OnDiskRegisterStore) Store(entries flow.RegisterEntries, height uint64) error
- type OnDiskRegisterStore_Expecter
- func (_e *OnDiskRegisterStore_Expecter) FirstHeight() *OnDiskRegisterStore_FirstHeight_Call
- func (_e *OnDiskRegisterStore_Expecter) Get(ID interface{}, height interface{}) *OnDiskRegisterStore_Get_Call
- func (_e *OnDiskRegisterStore_Expecter) LatestHeight() *OnDiskRegisterStore_LatestHeight_Call
- func (_e *OnDiskRegisterStore_Expecter) Store(entries interface{}, height interface{}) *OnDiskRegisterStore_Store_Call
- type OnDiskRegisterStore_FirstHeight_Call
- func (_c *OnDiskRegisterStore_FirstHeight_Call) Return(v uint64) *OnDiskRegisterStore_FirstHeight_Call
- func (_c *OnDiskRegisterStore_FirstHeight_Call) Run(run func()) *OnDiskRegisterStore_FirstHeight_Call
- func (_c *OnDiskRegisterStore_FirstHeight_Call) RunAndReturn(run func() uint64) *OnDiskRegisterStore_FirstHeight_Call
- type OnDiskRegisterStore_Get_Call
- func (_c *OnDiskRegisterStore_Get_Call) Return(v flow.RegisterValue, err error) *OnDiskRegisterStore_Get_Call
- func (_c *OnDiskRegisterStore_Get_Call) Run(run func(ID flow.RegisterID, height uint64)) *OnDiskRegisterStore_Get_Call
- func (_c *OnDiskRegisterStore_Get_Call) RunAndReturn(run func(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)) *OnDiskRegisterStore_Get_Call
- type OnDiskRegisterStore_LatestHeight_Call
- func (_c *OnDiskRegisterStore_LatestHeight_Call) Return(v uint64) *OnDiskRegisterStore_LatestHeight_Call
- func (_c *OnDiskRegisterStore_LatestHeight_Call) Run(run func()) *OnDiskRegisterStore_LatestHeight_Call
- func (_c *OnDiskRegisterStore_LatestHeight_Call) RunAndReturn(run func() uint64) *OnDiskRegisterStore_LatestHeight_Call
- type OnDiskRegisterStore_Store_Call
- func (_c *OnDiskRegisterStore_Store_Call) Return(err error) *OnDiskRegisterStore_Store_Call
- func (_c *OnDiskRegisterStore_Store_Call) Run(run func(entries flow.RegisterEntries, height uint64)) *OnDiskRegisterStore_Store_Call
- func (_c *OnDiskRegisterStore_Store_Call) RunAndReturn(run func(entries flow.RegisterEntries, height uint64) error) *OnDiskRegisterStore_Store_Call
- type RegisterStore
- func (_m *RegisterStore) EXPECT() *RegisterStore_Expecter
- func (_mock *RegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) (flow.RegisterValue, error)
- func (_mock *RegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
- func (_mock *RegisterStore) LastFinalizedAndExecutedHeight() uint64
- func (_mock *RegisterStore) OnBlockFinalized() error
- func (_mock *RegisterStore) SaveRegisters(header *flow.Header, registers flow.RegisterEntries) error
- type RegisterStoreNotifier
- type RegisterStoreNotifier_Expecter
- type RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
- func (_c *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) Return() *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
- func (_c *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) Run(run func(height uint64)) *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
- func (_c *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) RunAndReturn(run func(height uint64)) *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
- type RegisterStore_Expecter
- func (_e *RegisterStore_Expecter) GetRegister(height interface{}, blockID interface{}, register interface{}) *RegisterStore_GetRegister_Call
- func (_e *RegisterStore_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *RegisterStore_IsBlockExecuted_Call
- func (_e *RegisterStore_Expecter) LastFinalizedAndExecutedHeight() *RegisterStore_LastFinalizedAndExecutedHeight_Call
- func (_e *RegisterStore_Expecter) OnBlockFinalized() *RegisterStore_OnBlockFinalized_Call
- func (_e *RegisterStore_Expecter) SaveRegisters(header interface{}, registers interface{}) *RegisterStore_SaveRegisters_Call
- type RegisterStore_GetRegister_Call
- func (_c *RegisterStore_GetRegister_Call) Return(v flow.RegisterValue, err error) *RegisterStore_GetRegister_Call
- func (_c *RegisterStore_GetRegister_Call) Run(run func(height uint64, blockID flow.Identifier, register flow.RegisterID)) *RegisterStore_GetRegister_Call
- func (_c *RegisterStore_GetRegister_Call) RunAndReturn(...) *RegisterStore_GetRegister_Call
- type RegisterStore_IsBlockExecuted_Call
- func (_c *RegisterStore_IsBlockExecuted_Call) Return(b bool, err error) *RegisterStore_IsBlockExecuted_Call
- func (_c *RegisterStore_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *RegisterStore_IsBlockExecuted_Call
- func (_c *RegisterStore_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *RegisterStore_IsBlockExecuted_Call
- type RegisterStore_LastFinalizedAndExecutedHeight_Call
- func (_c *RegisterStore_LastFinalizedAndExecutedHeight_Call) Return(v uint64) *RegisterStore_LastFinalizedAndExecutedHeight_Call
- func (_c *RegisterStore_LastFinalizedAndExecutedHeight_Call) Run(run func()) *RegisterStore_LastFinalizedAndExecutedHeight_Call
- func (_c *RegisterStore_LastFinalizedAndExecutedHeight_Call) RunAndReturn(run func() uint64) *RegisterStore_LastFinalizedAndExecutedHeight_Call
- type RegisterStore_OnBlockFinalized_Call
- func (_c *RegisterStore_OnBlockFinalized_Call) Return(err error) *RegisterStore_OnBlockFinalized_Call
- func (_c *RegisterStore_OnBlockFinalized_Call) Run(run func()) *RegisterStore_OnBlockFinalized_Call
- func (_c *RegisterStore_OnBlockFinalized_Call) RunAndReturn(run func() error) *RegisterStore_OnBlockFinalized_Call
- type RegisterStore_SaveRegisters_Call
- func (_c *RegisterStore_SaveRegisters_Call) Return(err error) *RegisterStore_SaveRegisters_Call
- func (_c *RegisterStore_SaveRegisters_Call) Run(run func(header *flow.Header, registers flow.RegisterEntries)) *RegisterStore_SaveRegisters_Call
- func (_c *RegisterStore_SaveRegisters_Call) RunAndReturn(run func(header *flow.Header, registers flow.RegisterEntries) error) *RegisterStore_SaveRegisters_Call
- type ScriptExecutor
- func (_m *ScriptExecutor) EXPECT() *ScriptExecutor_Expecter
- func (_mock *ScriptExecutor) ExecuteScriptAtBlockID(ctx context.Context, script []byte, arguments [][]byte, ...) ([]byte, uint64, error)
- func (_mock *ScriptExecutor) GetAccount(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)
- func (_mock *ScriptExecutor) GetRegisterAtBlockID(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier) ([]byte, error)
- type ScriptExecutor_ExecuteScriptAtBlockID_Call
- func (_c *ScriptExecutor_ExecuteScriptAtBlockID_Call) Return(bytes []byte, v uint64, err error) *ScriptExecutor_ExecuteScriptAtBlockID_Call
- func (_c *ScriptExecutor_ExecuteScriptAtBlockID_Call) Run(run func(ctx context.Context, script []byte, arguments [][]byte, ...)) *ScriptExecutor_ExecuteScriptAtBlockID_Call
- func (_c *ScriptExecutor_ExecuteScriptAtBlockID_Call) RunAndReturn(...) *ScriptExecutor_ExecuteScriptAtBlockID_Call
- type ScriptExecutor_Expecter
- func (_e *ScriptExecutor_Expecter) ExecuteScriptAtBlockID(ctx interface{}, script interface{}, arguments interface{}, ...) *ScriptExecutor_ExecuteScriptAtBlockID_Call
- func (_e *ScriptExecutor_Expecter) GetAccount(ctx interface{}, address interface{}, blockID interface{}) *ScriptExecutor_GetAccount_Call
- func (_e *ScriptExecutor_Expecter) GetRegisterAtBlockID(ctx interface{}, owner interface{}, key interface{}, blockID interface{}) *ScriptExecutor_GetRegisterAtBlockID_Call
- type ScriptExecutor_GetAccount_Call
- func (_c *ScriptExecutor_GetAccount_Call) Return(account *flow.Account, err error) *ScriptExecutor_GetAccount_Call
- func (_c *ScriptExecutor_GetAccount_Call) Run(run func(ctx context.Context, address flow.Address, blockID flow.Identifier)) *ScriptExecutor_GetAccount_Call
- func (_c *ScriptExecutor_GetAccount_Call) RunAndReturn(...) *ScriptExecutor_GetAccount_Call
- type ScriptExecutor_GetRegisterAtBlockID_Call
- func (_c *ScriptExecutor_GetRegisterAtBlockID_Call) Return(bytes []byte, err error) *ScriptExecutor_GetRegisterAtBlockID_Call
- func (_c *ScriptExecutor_GetRegisterAtBlockID_Call) Run(...) *ScriptExecutor_GetRegisterAtBlockID_Call
- func (_c *ScriptExecutor_GetRegisterAtBlockID_Call) RunAndReturn(...) *ScriptExecutor_GetRegisterAtBlockID_Call
- type WALReader
- type WALReader_Expecter
- type WALReader_Next_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutedFinalizedWAL ¶ added in v0.33.1
ExecutedFinalizedWAL is an autogenerated mock type for the ExecutedFinalizedWAL type
func NewExecutedFinalizedWAL ¶ added in v0.33.1
func NewExecutedFinalizedWAL(t interface {
mock.TestingT
Cleanup(func())
}) *ExecutedFinalizedWAL
NewExecutedFinalizedWAL creates a new instance of ExecutedFinalizedWAL. 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 (*ExecutedFinalizedWAL) Append ¶ added in v0.33.1
func (_mock *ExecutedFinalizedWAL) Append(height uint64, registers flow.RegisterEntries) error
Append provides a mock function for the type ExecutedFinalizedWAL
func (*ExecutedFinalizedWAL) EXPECT ¶ added in v0.46.0
func (_m *ExecutedFinalizedWAL) EXPECT() *ExecutedFinalizedWAL_Expecter
func (*ExecutedFinalizedWAL) GetReader ¶ added in v0.33.1
func (_mock *ExecutedFinalizedWAL) GetReader(height uint64) execution.WALReader
GetReader provides a mock function for the type ExecutedFinalizedWAL
func (*ExecutedFinalizedWAL) Latest ¶ added in v0.33.1
func (_mock *ExecutedFinalizedWAL) Latest() (uint64, error)
Latest provides a mock function for the type ExecutedFinalizedWAL
type ExecutedFinalizedWAL_Append_Call ¶ added in v0.46.0
ExecutedFinalizedWAL_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'
func (*ExecutedFinalizedWAL_Append_Call) Return ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_Append_Call) Return(err error) *ExecutedFinalizedWAL_Append_Call
func (*ExecutedFinalizedWAL_Append_Call) Run ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_Append_Call) Run(run func(height uint64, registers flow.RegisterEntries)) *ExecutedFinalizedWAL_Append_Call
func (*ExecutedFinalizedWAL_Append_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_Append_Call) RunAndReturn(run func(height uint64, registers flow.RegisterEntries) error) *ExecutedFinalizedWAL_Append_Call
type ExecutedFinalizedWAL_Expecter ¶ added in v0.46.0
type ExecutedFinalizedWAL_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutedFinalizedWAL_Expecter) Append ¶ added in v0.46.0
func (_e *ExecutedFinalizedWAL_Expecter) Append(height interface{}, registers interface{}) *ExecutedFinalizedWAL_Append_Call
Append is a helper method to define mock.On call
- height uint64
- registers flow.RegisterEntries
func (*ExecutedFinalizedWAL_Expecter) GetReader ¶ added in v0.46.0
func (_e *ExecutedFinalizedWAL_Expecter) GetReader(height interface{}) *ExecutedFinalizedWAL_GetReader_Call
GetReader is a helper method to define mock.On call
- height uint64
func (*ExecutedFinalizedWAL_Expecter) Latest ¶ added in v0.46.0
func (_e *ExecutedFinalizedWAL_Expecter) Latest() *ExecutedFinalizedWAL_Latest_Call
Latest is a helper method to define mock.On call
type ExecutedFinalizedWAL_GetReader_Call ¶ added in v0.46.0
ExecutedFinalizedWAL_GetReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReader'
func (*ExecutedFinalizedWAL_GetReader_Call) Return ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_GetReader_Call) Return(wALReader execution.WALReader) *ExecutedFinalizedWAL_GetReader_Call
func (*ExecutedFinalizedWAL_GetReader_Call) Run ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_GetReader_Call) Run(run func(height uint64)) *ExecutedFinalizedWAL_GetReader_Call
func (*ExecutedFinalizedWAL_GetReader_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_GetReader_Call) RunAndReturn(run func(height uint64) execution.WALReader) *ExecutedFinalizedWAL_GetReader_Call
type ExecutedFinalizedWAL_Latest_Call ¶ added in v0.46.0
ExecutedFinalizedWAL_Latest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Latest'
func (*ExecutedFinalizedWAL_Latest_Call) Return ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_Latest_Call) Return(v uint64, err error) *ExecutedFinalizedWAL_Latest_Call
func (*ExecutedFinalizedWAL_Latest_Call) Run ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_Latest_Call) Run(run func()) *ExecutedFinalizedWAL_Latest_Call
func (*ExecutedFinalizedWAL_Latest_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExecutedFinalizedWAL_Latest_Call) RunAndReturn(run func() (uint64, error)) *ExecutedFinalizedWAL_Latest_Call
type ExtendableStorageSnapshot ¶ added in v0.33.1
ExtendableStorageSnapshot is an autogenerated mock type for the ExtendableStorageSnapshot type
func NewExtendableStorageSnapshot ¶ added in v0.33.1
func NewExtendableStorageSnapshot(t interface {
mock.TestingT
Cleanup(func())
}) *ExtendableStorageSnapshot
NewExtendableStorageSnapshot creates a new instance of ExtendableStorageSnapshot. 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 (*ExtendableStorageSnapshot) Commitment ¶ added in v0.33.1
func (_mock *ExtendableStorageSnapshot) Commitment() flow.StateCommitment
Commitment provides a mock function for the type ExtendableStorageSnapshot
func (*ExtendableStorageSnapshot) EXPECT ¶ added in v0.46.0
func (_m *ExtendableStorageSnapshot) EXPECT() *ExtendableStorageSnapshot_Expecter
func (*ExtendableStorageSnapshot) Extend ¶ added in v0.33.1
func (_mock *ExtendableStorageSnapshot) Extend(newCommit flow.StateCommitment, updatedRegisters map[flow.RegisterID]flow.RegisterValue) execution.ExtendableStorageSnapshot
Extend provides a mock function for the type ExtendableStorageSnapshot
func (*ExtendableStorageSnapshot) Get ¶ added in v0.33.1
func (_mock *ExtendableStorageSnapshot) Get(id flow.RegisterID) (flow.RegisterValue, error)
Get provides a mock function for the type ExtendableStorageSnapshot
type ExtendableStorageSnapshot_Commitment_Call ¶ added in v0.46.0
ExtendableStorageSnapshot_Commitment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commitment'
func (*ExtendableStorageSnapshot_Commitment_Call) Return ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Commitment_Call) Return(stateCommitment flow.StateCommitment) *ExtendableStorageSnapshot_Commitment_Call
func (*ExtendableStorageSnapshot_Commitment_Call) Run ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Commitment_Call) Run(run func()) *ExtendableStorageSnapshot_Commitment_Call
func (*ExtendableStorageSnapshot_Commitment_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Commitment_Call) RunAndReturn(run func() flow.StateCommitment) *ExtendableStorageSnapshot_Commitment_Call
type ExtendableStorageSnapshot_Expecter ¶ added in v0.46.0
type ExtendableStorageSnapshot_Expecter struct {
// contains filtered or unexported fields
}
func (*ExtendableStorageSnapshot_Expecter) Commitment ¶ added in v0.46.0
func (_e *ExtendableStorageSnapshot_Expecter) Commitment() *ExtendableStorageSnapshot_Commitment_Call
Commitment is a helper method to define mock.On call
func (*ExtendableStorageSnapshot_Expecter) Extend ¶ added in v0.46.0
func (_e *ExtendableStorageSnapshot_Expecter) Extend(newCommit interface{}, updatedRegisters interface{}) *ExtendableStorageSnapshot_Extend_Call
Extend is a helper method to define mock.On call
- newCommit flow.StateCommitment
- updatedRegisters map[flow.RegisterID]flow.RegisterValue
func (*ExtendableStorageSnapshot_Expecter) Get ¶ added in v0.46.0
func (_e *ExtendableStorageSnapshot_Expecter) Get(id interface{}) *ExtendableStorageSnapshot_Get_Call
Get is a helper method to define mock.On call
- id flow.RegisterID
type ExtendableStorageSnapshot_Extend_Call ¶ added in v0.46.0
ExtendableStorageSnapshot_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*ExtendableStorageSnapshot_Extend_Call) Return ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Extend_Call) Return(extendableStorageSnapshot execution.ExtendableStorageSnapshot) *ExtendableStorageSnapshot_Extend_Call
func (*ExtendableStorageSnapshot_Extend_Call) Run ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Extend_Call) Run(run func(newCommit flow.StateCommitment, updatedRegisters map[flow.RegisterID]flow.RegisterValue)) *ExtendableStorageSnapshot_Extend_Call
func (*ExtendableStorageSnapshot_Extend_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Extend_Call) RunAndReturn(run func(newCommit flow.StateCommitment, updatedRegisters map[flow.RegisterID]flow.RegisterValue) execution.ExtendableStorageSnapshot) *ExtendableStorageSnapshot_Extend_Call
type ExtendableStorageSnapshot_Get_Call ¶ added in v0.46.0
ExtendableStorageSnapshot_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ExtendableStorageSnapshot_Get_Call) Return ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Get_Call) Return(v flow.RegisterValue, err error) *ExtendableStorageSnapshot_Get_Call
func (*ExtendableStorageSnapshot_Get_Call) Run ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Get_Call) Run(run func(id flow.RegisterID)) *ExtendableStorageSnapshot_Get_Call
func (*ExtendableStorageSnapshot_Get_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ExtendableStorageSnapshot_Get_Call) RunAndReturn(run func(id flow.RegisterID) (flow.RegisterValue, error)) *ExtendableStorageSnapshot_Get_Call
type FinalizedReader ¶ added in v0.33.1
FinalizedReader is an autogenerated mock type for the FinalizedReader type
func NewFinalizedReader ¶ added in v0.33.1
func NewFinalizedReader(t interface {
mock.TestingT
Cleanup(func())
}) *FinalizedReader
NewFinalizedReader creates a new instance of FinalizedReader. 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 (*FinalizedReader) EXPECT ¶ added in v0.46.0
func (_m *FinalizedReader) EXPECT() *FinalizedReader_Expecter
func (*FinalizedReader) FinalizedBlockIDAtHeight ¶ added in v0.33.1
func (_mock *FinalizedReader) FinalizedBlockIDAtHeight(height uint64) (flow.Identifier, error)
FinalizedBlockIDAtHeight provides a mock function for the type FinalizedReader
type FinalizedReader_Expecter ¶ added in v0.46.0
type FinalizedReader_Expecter struct {
// contains filtered or unexported fields
}
func (*FinalizedReader_Expecter) FinalizedBlockIDAtHeight ¶ added in v0.46.0
func (_e *FinalizedReader_Expecter) FinalizedBlockIDAtHeight(height interface{}) *FinalizedReader_FinalizedBlockIDAtHeight_Call
FinalizedBlockIDAtHeight is a helper method to define mock.On call
- height uint64
type FinalizedReader_FinalizedBlockIDAtHeight_Call ¶ added in v0.46.0
FinalizedReader_FinalizedBlockIDAtHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalizedBlockIDAtHeight'
func (*FinalizedReader_FinalizedBlockIDAtHeight_Call) Return ¶ added in v0.46.0
func (_c *FinalizedReader_FinalizedBlockIDAtHeight_Call) Return(identifier flow.Identifier, err error) *FinalizedReader_FinalizedBlockIDAtHeight_Call
func (*FinalizedReader_FinalizedBlockIDAtHeight_Call) Run ¶ added in v0.46.0
func (_c *FinalizedReader_FinalizedBlockIDAtHeight_Call) Run(run func(height uint64)) *FinalizedReader_FinalizedBlockIDAtHeight_Call
func (*FinalizedReader_FinalizedBlockIDAtHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FinalizedReader_FinalizedBlockIDAtHeight_Call) RunAndReturn(run func(height uint64) (flow.Identifier, error)) *FinalizedReader_FinalizedBlockIDAtHeight_Call
type InMemoryRegisterStore ¶ added in v0.33.1
InMemoryRegisterStore is an autogenerated mock type for the InMemoryRegisterStore type
func NewInMemoryRegisterStore ¶ added in v0.33.1
func NewInMemoryRegisterStore(t interface {
mock.TestingT
Cleanup(func())
}) *InMemoryRegisterStore
NewInMemoryRegisterStore creates a new instance of InMemoryRegisterStore. 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 (*InMemoryRegisterStore) EXPECT ¶ added in v0.46.0
func (_m *InMemoryRegisterStore) EXPECT() *InMemoryRegisterStore_Expecter
func (*InMemoryRegisterStore) GetRegister ¶ added in v0.33.1
func (_mock *InMemoryRegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) (flow.RegisterValue, error)
GetRegister provides a mock function for the type InMemoryRegisterStore
func (*InMemoryRegisterStore) GetUpdatedRegisters ¶ added in v0.33.1
func (_mock *InMemoryRegisterStore) GetUpdatedRegisters(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)
GetUpdatedRegisters provides a mock function for the type InMemoryRegisterStore
func (*InMemoryRegisterStore) IsBlockExecuted ¶ added in v0.33.1
func (_mock *InMemoryRegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function for the type InMemoryRegisterStore
func (*InMemoryRegisterStore) Prune ¶ added in v0.33.1
func (_mock *InMemoryRegisterStore) Prune(finalizedHeight uint64, finalizedBlockID flow.Identifier) error
Prune provides a mock function for the type InMemoryRegisterStore
func (*InMemoryRegisterStore) PrunedHeight ¶ added in v0.33.1
func (_mock *InMemoryRegisterStore) PrunedHeight() uint64
PrunedHeight provides a mock function for the type InMemoryRegisterStore
func (*InMemoryRegisterStore) SaveRegisters ¶ added in v0.33.1
func (_mock *InMemoryRegisterStore) SaveRegisters(height uint64, blockID flow.Identifier, parentID flow.Identifier, registers flow.RegisterEntries) error
SaveRegisters provides a mock function for the type InMemoryRegisterStore
type InMemoryRegisterStore_Expecter ¶ added in v0.46.0
type InMemoryRegisterStore_Expecter struct {
// contains filtered or unexported fields
}
func (*InMemoryRegisterStore_Expecter) GetRegister ¶ added in v0.46.0
func (_e *InMemoryRegisterStore_Expecter) GetRegister(height interface{}, blockID interface{}, register interface{}) *InMemoryRegisterStore_GetRegister_Call
GetRegister is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
- register flow.RegisterID
func (*InMemoryRegisterStore_Expecter) GetUpdatedRegisters ¶ added in v0.46.0
func (_e *InMemoryRegisterStore_Expecter) GetUpdatedRegisters(height interface{}, blockID interface{}) *InMemoryRegisterStore_GetUpdatedRegisters_Call
GetUpdatedRegisters is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
func (*InMemoryRegisterStore_Expecter) IsBlockExecuted ¶ added in v0.46.0
func (_e *InMemoryRegisterStore_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *InMemoryRegisterStore_IsBlockExecuted_Call
IsBlockExecuted is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
func (*InMemoryRegisterStore_Expecter) Prune ¶ added in v0.46.0
func (_e *InMemoryRegisterStore_Expecter) Prune(finalizedHeight interface{}, finalizedBlockID interface{}) *InMemoryRegisterStore_Prune_Call
Prune is a helper method to define mock.On call
- finalizedHeight uint64
- finalizedBlockID flow.Identifier
func (*InMemoryRegisterStore_Expecter) PrunedHeight ¶ added in v0.46.0
func (_e *InMemoryRegisterStore_Expecter) PrunedHeight() *InMemoryRegisterStore_PrunedHeight_Call
PrunedHeight is a helper method to define mock.On call
func (*InMemoryRegisterStore_Expecter) SaveRegisters ¶ added in v0.46.0
func (_e *InMemoryRegisterStore_Expecter) SaveRegisters(height interface{}, blockID interface{}, parentID interface{}, registers interface{}) *InMemoryRegisterStore_SaveRegisters_Call
SaveRegisters is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
- parentID flow.Identifier
- registers flow.RegisterEntries
type InMemoryRegisterStore_GetRegister_Call ¶ added in v0.46.0
InMemoryRegisterStore_GetRegister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegister'
func (*InMemoryRegisterStore_GetRegister_Call) Return ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_GetRegister_Call) Return(v flow.RegisterValue, err error) *InMemoryRegisterStore_GetRegister_Call
func (*InMemoryRegisterStore_GetRegister_Call) Run ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_GetRegister_Call) Run(run func(height uint64, blockID flow.Identifier, register flow.RegisterID)) *InMemoryRegisterStore_GetRegister_Call
func (*InMemoryRegisterStore_GetRegister_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_GetRegister_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier, register flow.RegisterID) (flow.RegisterValue, error)) *InMemoryRegisterStore_GetRegister_Call
type InMemoryRegisterStore_GetUpdatedRegisters_Call ¶ added in v0.46.0
InMemoryRegisterStore_GetUpdatedRegisters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpdatedRegisters'
func (*InMemoryRegisterStore_GetUpdatedRegisters_Call) Return ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_GetUpdatedRegisters_Call) Return(registerEntries flow.RegisterEntries, err error) *InMemoryRegisterStore_GetUpdatedRegisters_Call
func (*InMemoryRegisterStore_GetUpdatedRegisters_Call) Run ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_GetUpdatedRegisters_Call) Run(run func(height uint64, blockID flow.Identifier)) *InMemoryRegisterStore_GetUpdatedRegisters_Call
func (*InMemoryRegisterStore_GetUpdatedRegisters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_GetUpdatedRegisters_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)) *InMemoryRegisterStore_GetUpdatedRegisters_Call
type InMemoryRegisterStore_IsBlockExecuted_Call ¶ added in v0.46.0
InMemoryRegisterStore_IsBlockExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBlockExecuted'
func (*InMemoryRegisterStore_IsBlockExecuted_Call) Return ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_IsBlockExecuted_Call) Return(b bool, err error) *InMemoryRegisterStore_IsBlockExecuted_Call
func (*InMemoryRegisterStore_IsBlockExecuted_Call) Run ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *InMemoryRegisterStore_IsBlockExecuted_Call
func (*InMemoryRegisterStore_IsBlockExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *InMemoryRegisterStore_IsBlockExecuted_Call
type InMemoryRegisterStore_Prune_Call ¶ added in v0.46.0
InMemoryRegisterStore_Prune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prune'
func (*InMemoryRegisterStore_Prune_Call) Return ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_Prune_Call) Return(err error) *InMemoryRegisterStore_Prune_Call
func (*InMemoryRegisterStore_Prune_Call) Run ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_Prune_Call) Run(run func(finalizedHeight uint64, finalizedBlockID flow.Identifier)) *InMemoryRegisterStore_Prune_Call
func (*InMemoryRegisterStore_Prune_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_Prune_Call) RunAndReturn(run func(finalizedHeight uint64, finalizedBlockID flow.Identifier) error) *InMemoryRegisterStore_Prune_Call
type InMemoryRegisterStore_PrunedHeight_Call ¶ added in v0.46.0
InMemoryRegisterStore_PrunedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrunedHeight'
func (*InMemoryRegisterStore_PrunedHeight_Call) Return ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_PrunedHeight_Call) Return(v uint64) *InMemoryRegisterStore_PrunedHeight_Call
func (*InMemoryRegisterStore_PrunedHeight_Call) Run ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_PrunedHeight_Call) Run(run func()) *InMemoryRegisterStore_PrunedHeight_Call
func (*InMemoryRegisterStore_PrunedHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_PrunedHeight_Call) RunAndReturn(run func() uint64) *InMemoryRegisterStore_PrunedHeight_Call
type InMemoryRegisterStore_SaveRegisters_Call ¶ added in v0.46.0
InMemoryRegisterStore_SaveRegisters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveRegisters'
func (*InMemoryRegisterStore_SaveRegisters_Call) Return ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_SaveRegisters_Call) Return(err error) *InMemoryRegisterStore_SaveRegisters_Call
func (*InMemoryRegisterStore_SaveRegisters_Call) Run ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_SaveRegisters_Call) Run(run func(height uint64, blockID flow.Identifier, parentID flow.Identifier, registers flow.RegisterEntries)) *InMemoryRegisterStore_SaveRegisters_Call
func (*InMemoryRegisterStore_SaveRegisters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InMemoryRegisterStore_SaveRegisters_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier, parentID flow.Identifier, registers flow.RegisterEntries) error) *InMemoryRegisterStore_SaveRegisters_Call
type OnDiskRegisterStore ¶ added in v0.41.0
OnDiskRegisterStore is an autogenerated mock type for the OnDiskRegisterStore type
func NewOnDiskRegisterStore ¶ added in v0.41.0
func NewOnDiskRegisterStore(t interface {
mock.TestingT
Cleanup(func())
}) *OnDiskRegisterStore
NewOnDiskRegisterStore creates a new instance of OnDiskRegisterStore. 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 (*OnDiskRegisterStore) EXPECT ¶ added in v0.46.0
func (_m *OnDiskRegisterStore) EXPECT() *OnDiskRegisterStore_Expecter
func (*OnDiskRegisterStore) FirstHeight ¶ added in v0.41.0
func (_mock *OnDiskRegisterStore) FirstHeight() uint64
FirstHeight provides a mock function for the type OnDiskRegisterStore
func (*OnDiskRegisterStore) Get ¶ added in v0.41.0
func (_mock *OnDiskRegisterStore) Get(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)
Get provides a mock function for the type OnDiskRegisterStore
func (*OnDiskRegisterStore) LatestHeight ¶ added in v0.41.0
func (_mock *OnDiskRegisterStore) LatestHeight() uint64
LatestHeight provides a mock function for the type OnDiskRegisterStore
func (*OnDiskRegisterStore) Store ¶ added in v0.41.0
func (_mock *OnDiskRegisterStore) Store(entries flow.RegisterEntries, height uint64) error
Store provides a mock function for the type OnDiskRegisterStore
type OnDiskRegisterStore_Expecter ¶ added in v0.46.0
type OnDiskRegisterStore_Expecter struct {
// contains filtered or unexported fields
}
func (*OnDiskRegisterStore_Expecter) FirstHeight ¶ added in v0.46.0
func (_e *OnDiskRegisterStore_Expecter) FirstHeight() *OnDiskRegisterStore_FirstHeight_Call
FirstHeight is a helper method to define mock.On call
func (*OnDiskRegisterStore_Expecter) Get ¶ added in v0.46.0
func (_e *OnDiskRegisterStore_Expecter) Get(ID interface{}, height interface{}) *OnDiskRegisterStore_Get_Call
Get is a helper method to define mock.On call
- ID flow.RegisterID
- height uint64
func (*OnDiskRegisterStore_Expecter) LatestHeight ¶ added in v0.46.0
func (_e *OnDiskRegisterStore_Expecter) LatestHeight() *OnDiskRegisterStore_LatestHeight_Call
LatestHeight is a helper method to define mock.On call
func (*OnDiskRegisterStore_Expecter) Store ¶ added in v0.46.0
func (_e *OnDiskRegisterStore_Expecter) Store(entries interface{}, height interface{}) *OnDiskRegisterStore_Store_Call
Store is a helper method to define mock.On call
- entries flow.RegisterEntries
- height uint64
type OnDiskRegisterStore_FirstHeight_Call ¶ added in v0.46.0
OnDiskRegisterStore_FirstHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstHeight'
func (*OnDiskRegisterStore_FirstHeight_Call) Return ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_FirstHeight_Call) Return(v uint64) *OnDiskRegisterStore_FirstHeight_Call
func (*OnDiskRegisterStore_FirstHeight_Call) Run ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_FirstHeight_Call) Run(run func()) *OnDiskRegisterStore_FirstHeight_Call
func (*OnDiskRegisterStore_FirstHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_FirstHeight_Call) RunAndReturn(run func() uint64) *OnDiskRegisterStore_FirstHeight_Call
type OnDiskRegisterStore_Get_Call ¶ added in v0.46.0
OnDiskRegisterStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*OnDiskRegisterStore_Get_Call) Return ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_Get_Call) Return(v flow.RegisterValue, err error) *OnDiskRegisterStore_Get_Call
func (*OnDiskRegisterStore_Get_Call) Run ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_Get_Call) Run(run func(ID flow.RegisterID, height uint64)) *OnDiskRegisterStore_Get_Call
func (*OnDiskRegisterStore_Get_Call) RunAndReturn ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_Get_Call) RunAndReturn(run func(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)) *OnDiskRegisterStore_Get_Call
type OnDiskRegisterStore_LatestHeight_Call ¶ added in v0.46.0
OnDiskRegisterStore_LatestHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestHeight'
func (*OnDiskRegisterStore_LatestHeight_Call) Return ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_LatestHeight_Call) Return(v uint64) *OnDiskRegisterStore_LatestHeight_Call
func (*OnDiskRegisterStore_LatestHeight_Call) Run ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_LatestHeight_Call) Run(run func()) *OnDiskRegisterStore_LatestHeight_Call
func (*OnDiskRegisterStore_LatestHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_LatestHeight_Call) RunAndReturn(run func() uint64) *OnDiskRegisterStore_LatestHeight_Call
type OnDiskRegisterStore_Store_Call ¶ added in v0.46.0
OnDiskRegisterStore_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*OnDiskRegisterStore_Store_Call) Return ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_Store_Call) Return(err error) *OnDiskRegisterStore_Store_Call
func (*OnDiskRegisterStore_Store_Call) Run ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_Store_Call) Run(run func(entries flow.RegisterEntries, height uint64)) *OnDiskRegisterStore_Store_Call
func (*OnDiskRegisterStore_Store_Call) RunAndReturn ¶ added in v0.46.0
func (_c *OnDiskRegisterStore_Store_Call) RunAndReturn(run func(entries flow.RegisterEntries, height uint64) error) *OnDiskRegisterStore_Store_Call
type RegisterStore ¶ added in v0.33.1
RegisterStore is an autogenerated mock type for the RegisterStore type
func NewRegisterStore ¶ added in v0.33.1
func NewRegisterStore(t interface {
mock.TestingT
Cleanup(func())
}) *RegisterStore
NewRegisterStore creates a new instance of RegisterStore. 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 (*RegisterStore) EXPECT ¶ added in v0.46.0
func (_m *RegisterStore) EXPECT() *RegisterStore_Expecter
func (*RegisterStore) GetRegister ¶ added in v0.33.1
func (_mock *RegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) (flow.RegisterValue, error)
GetRegister provides a mock function for the type RegisterStore
func (*RegisterStore) IsBlockExecuted ¶ added in v0.33.1
func (_mock *RegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)
IsBlockExecuted provides a mock function for the type RegisterStore
func (*RegisterStore) LastFinalizedAndExecutedHeight ¶ added in v0.33.1
func (_mock *RegisterStore) LastFinalizedAndExecutedHeight() uint64
LastFinalizedAndExecutedHeight provides a mock function for the type RegisterStore
func (*RegisterStore) OnBlockFinalized ¶ added in v0.33.1
func (_mock *RegisterStore) OnBlockFinalized() error
OnBlockFinalized provides a mock function for the type RegisterStore
func (*RegisterStore) SaveRegisters ¶ added in v0.33.1
func (_mock *RegisterStore) SaveRegisters(header *flow.Header, registers flow.RegisterEntries) error
SaveRegisters provides a mock function for the type RegisterStore
type RegisterStoreNotifier ¶ added in v0.33.1
RegisterStoreNotifier is an autogenerated mock type for the RegisterStoreNotifier type
func NewRegisterStoreNotifier ¶ added in v0.33.1
func NewRegisterStoreNotifier(t interface {
mock.TestingT
Cleanup(func())
}) *RegisterStoreNotifier
NewRegisterStoreNotifier creates a new instance of RegisterStoreNotifier. 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 (*RegisterStoreNotifier) EXPECT ¶ added in v0.46.0
func (_m *RegisterStoreNotifier) EXPECT() *RegisterStoreNotifier_Expecter
func (*RegisterStoreNotifier) OnFinalizedAndExecutedHeightUpdated ¶ added in v0.33.1
func (_mock *RegisterStoreNotifier) OnFinalizedAndExecutedHeightUpdated(height uint64)
OnFinalizedAndExecutedHeightUpdated provides a mock function for the type RegisterStoreNotifier
type RegisterStoreNotifier_Expecter ¶ added in v0.46.0
type RegisterStoreNotifier_Expecter struct {
// contains filtered or unexported fields
}
func (*RegisterStoreNotifier_Expecter) OnFinalizedAndExecutedHeightUpdated ¶ added in v0.46.0
func (_e *RegisterStoreNotifier_Expecter) OnFinalizedAndExecutedHeightUpdated(height interface{}) *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
OnFinalizedAndExecutedHeightUpdated is a helper method to define mock.On call
- height uint64
type RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call ¶ added in v0.46.0
RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFinalizedAndExecutedHeightUpdated'
func (*RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) Run ¶ added in v0.46.0
func (_c *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) Run(run func(height uint64)) *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
func (*RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) RunAndReturn(run func(height uint64)) *RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call
type RegisterStore_Expecter ¶ added in v0.46.0
type RegisterStore_Expecter struct {
// contains filtered or unexported fields
}
func (*RegisterStore_Expecter) GetRegister ¶ added in v0.46.0
func (_e *RegisterStore_Expecter) GetRegister(height interface{}, blockID interface{}, register interface{}) *RegisterStore_GetRegister_Call
GetRegister is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
- register flow.RegisterID
func (*RegisterStore_Expecter) IsBlockExecuted ¶ added in v0.46.0
func (_e *RegisterStore_Expecter) IsBlockExecuted(height interface{}, blockID interface{}) *RegisterStore_IsBlockExecuted_Call
IsBlockExecuted is a helper method to define mock.On call
- height uint64
- blockID flow.Identifier
func (*RegisterStore_Expecter) LastFinalizedAndExecutedHeight ¶ added in v0.46.0
func (_e *RegisterStore_Expecter) LastFinalizedAndExecutedHeight() *RegisterStore_LastFinalizedAndExecutedHeight_Call
LastFinalizedAndExecutedHeight is a helper method to define mock.On call
func (*RegisterStore_Expecter) OnBlockFinalized ¶ added in v0.46.0
func (_e *RegisterStore_Expecter) OnBlockFinalized() *RegisterStore_OnBlockFinalized_Call
OnBlockFinalized is a helper method to define mock.On call
func (*RegisterStore_Expecter) SaveRegisters ¶ added in v0.46.0
func (_e *RegisterStore_Expecter) SaveRegisters(header interface{}, registers interface{}) *RegisterStore_SaveRegisters_Call
SaveRegisters is a helper method to define mock.On call
- header *flow.Header
- registers flow.RegisterEntries
type RegisterStore_GetRegister_Call ¶ added in v0.46.0
RegisterStore_GetRegister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegister'
func (*RegisterStore_GetRegister_Call) Return ¶ added in v0.46.0
func (_c *RegisterStore_GetRegister_Call) Return(v flow.RegisterValue, err error) *RegisterStore_GetRegister_Call
func (*RegisterStore_GetRegister_Call) Run ¶ added in v0.46.0
func (_c *RegisterStore_GetRegister_Call) Run(run func(height uint64, blockID flow.Identifier, register flow.RegisterID)) *RegisterStore_GetRegister_Call
func (*RegisterStore_GetRegister_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterStore_GetRegister_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier, register flow.RegisterID) (flow.RegisterValue, error)) *RegisterStore_GetRegister_Call
type RegisterStore_IsBlockExecuted_Call ¶ added in v0.46.0
RegisterStore_IsBlockExecuted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBlockExecuted'
func (*RegisterStore_IsBlockExecuted_Call) Return ¶ added in v0.46.0
func (_c *RegisterStore_IsBlockExecuted_Call) Return(b bool, err error) *RegisterStore_IsBlockExecuted_Call
func (*RegisterStore_IsBlockExecuted_Call) Run ¶ added in v0.46.0
func (_c *RegisterStore_IsBlockExecuted_Call) Run(run func(height uint64, blockID flow.Identifier)) *RegisterStore_IsBlockExecuted_Call
func (*RegisterStore_IsBlockExecuted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterStore_IsBlockExecuted_Call) RunAndReturn(run func(height uint64, blockID flow.Identifier) (bool, error)) *RegisterStore_IsBlockExecuted_Call
type RegisterStore_LastFinalizedAndExecutedHeight_Call ¶ added in v0.46.0
RegisterStore_LastFinalizedAndExecutedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastFinalizedAndExecutedHeight'
func (*RegisterStore_LastFinalizedAndExecutedHeight_Call) Run ¶ added in v0.46.0
func (_c *RegisterStore_LastFinalizedAndExecutedHeight_Call) Run(run func()) *RegisterStore_LastFinalizedAndExecutedHeight_Call
func (*RegisterStore_LastFinalizedAndExecutedHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterStore_LastFinalizedAndExecutedHeight_Call) RunAndReturn(run func() uint64) *RegisterStore_LastFinalizedAndExecutedHeight_Call
type RegisterStore_OnBlockFinalized_Call ¶ added in v0.46.0
RegisterStore_OnBlockFinalized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockFinalized'
func (*RegisterStore_OnBlockFinalized_Call) Return ¶ added in v0.46.0
func (_c *RegisterStore_OnBlockFinalized_Call) Return(err error) *RegisterStore_OnBlockFinalized_Call
func (*RegisterStore_OnBlockFinalized_Call) Run ¶ added in v0.46.0
func (_c *RegisterStore_OnBlockFinalized_Call) Run(run func()) *RegisterStore_OnBlockFinalized_Call
func (*RegisterStore_OnBlockFinalized_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterStore_OnBlockFinalized_Call) RunAndReturn(run func() error) *RegisterStore_OnBlockFinalized_Call
type RegisterStore_SaveRegisters_Call ¶ added in v0.46.0
RegisterStore_SaveRegisters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveRegisters'
func (*RegisterStore_SaveRegisters_Call) Return ¶ added in v0.46.0
func (_c *RegisterStore_SaveRegisters_Call) Return(err error) *RegisterStore_SaveRegisters_Call
func (*RegisterStore_SaveRegisters_Call) Run ¶ added in v0.46.0
func (_c *RegisterStore_SaveRegisters_Call) Run(run func(header *flow.Header, registers flow.RegisterEntries)) *RegisterStore_SaveRegisters_Call
func (*RegisterStore_SaveRegisters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RegisterStore_SaveRegisters_Call) RunAndReturn(run func(header *flow.Header, registers flow.RegisterEntries) error) *RegisterStore_SaveRegisters_Call
type ScriptExecutor ¶
ScriptExecutor is an autogenerated mock type for the ScriptExecutor type
func NewScriptExecutor ¶
func NewScriptExecutor(t interface {
mock.TestingT
Cleanup(func())
}) *ScriptExecutor
NewScriptExecutor creates a new instance of ScriptExecutor. 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 (*ScriptExecutor) EXPECT ¶ added in v0.46.0
func (_m *ScriptExecutor) EXPECT() *ScriptExecutor_Expecter
func (*ScriptExecutor) ExecuteScriptAtBlockID ¶
func (_mock *ScriptExecutor) ExecuteScriptAtBlockID(ctx context.Context, script []byte, arguments [][]byte, blockID flow.Identifier) ([]byte, uint64, error)
ExecuteScriptAtBlockID provides a mock function for the type ScriptExecutor
func (*ScriptExecutor) GetAccount ¶
func (_mock *ScriptExecutor) GetAccount(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)
GetAccount provides a mock function for the type ScriptExecutor
func (*ScriptExecutor) GetRegisterAtBlockID ¶
func (_mock *ScriptExecutor) GetRegisterAtBlockID(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier) ([]byte, error)
GetRegisterAtBlockID provides a mock function for the type ScriptExecutor
type ScriptExecutor_ExecuteScriptAtBlockID_Call ¶ added in v0.46.0
ScriptExecutor_ExecuteScriptAtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteScriptAtBlockID'
func (*ScriptExecutor_ExecuteScriptAtBlockID_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutor_ExecuteScriptAtBlockID_Call) Return(bytes []byte, v uint64, err error) *ScriptExecutor_ExecuteScriptAtBlockID_Call
func (*ScriptExecutor_ExecuteScriptAtBlockID_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_ExecuteScriptAtBlockID_Call) Run(run func(ctx context.Context, script []byte, arguments [][]byte, blockID flow.Identifier)) *ScriptExecutor_ExecuteScriptAtBlockID_Call
func (*ScriptExecutor_ExecuteScriptAtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_ExecuteScriptAtBlockID_Call) RunAndReturn(run func(ctx context.Context, script []byte, arguments [][]byte, blockID flow.Identifier) ([]byte, uint64, error)) *ScriptExecutor_ExecuteScriptAtBlockID_Call
type ScriptExecutor_Expecter ¶ added in v0.46.0
type ScriptExecutor_Expecter struct {
// contains filtered or unexported fields
}
func (*ScriptExecutor_Expecter) ExecuteScriptAtBlockID ¶ added in v0.46.0
func (_e *ScriptExecutor_Expecter) ExecuteScriptAtBlockID(ctx interface{}, script interface{}, arguments interface{}, blockID interface{}) *ScriptExecutor_ExecuteScriptAtBlockID_Call
ExecuteScriptAtBlockID is a helper method to define mock.On call
- ctx context.Context
- script []byte
- arguments [][]byte
- blockID flow.Identifier
func (*ScriptExecutor_Expecter) GetAccount ¶ added in v0.46.0
func (_e *ScriptExecutor_Expecter) GetAccount(ctx interface{}, address interface{}, blockID interface{}) *ScriptExecutor_GetAccount_Call
GetAccount is a helper method to define mock.On call
- ctx context.Context
- address flow.Address
- blockID flow.Identifier
func (*ScriptExecutor_Expecter) GetRegisterAtBlockID ¶ added in v0.46.0
func (_e *ScriptExecutor_Expecter) GetRegisterAtBlockID(ctx interface{}, owner interface{}, key interface{}, blockID interface{}) *ScriptExecutor_GetRegisterAtBlockID_Call
GetRegisterAtBlockID is a helper method to define mock.On call
- ctx context.Context
- owner []byte
- key []byte
- blockID flow.Identifier
type ScriptExecutor_GetAccount_Call ¶ added in v0.46.0
ScriptExecutor_GetAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccount'
func (*ScriptExecutor_GetAccount_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccount_Call) Return(account *flow.Account, err error) *ScriptExecutor_GetAccount_Call
func (*ScriptExecutor_GetAccount_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccount_Call) Run(run func(ctx context.Context, address flow.Address, blockID flow.Identifier)) *ScriptExecutor_GetAccount_Call
func (*ScriptExecutor_GetAccount_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccount_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)) *ScriptExecutor_GetAccount_Call
type ScriptExecutor_GetRegisterAtBlockID_Call ¶ added in v0.46.0
ScriptExecutor_GetRegisterAtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegisterAtBlockID'
func (*ScriptExecutor_GetRegisterAtBlockID_Call) Return ¶ added in v0.46.0
func (_c *ScriptExecutor_GetRegisterAtBlockID_Call) Return(bytes []byte, err error) *ScriptExecutor_GetRegisterAtBlockID_Call
func (*ScriptExecutor_GetRegisterAtBlockID_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetRegisterAtBlockID_Call) Run(run func(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier)) *ScriptExecutor_GetRegisterAtBlockID_Call
func (*ScriptExecutor_GetRegisterAtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetRegisterAtBlockID_Call) RunAndReturn(run func(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier) ([]byte, error)) *ScriptExecutor_GetRegisterAtBlockID_Call
type WALReader ¶ added in v0.33.1
WALReader is an autogenerated mock type for the WALReader type
func NewWALReader ¶ added in v0.33.1
NewWALReader creates a new instance of WALReader. 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 (*WALReader) EXPECT ¶ added in v0.46.0
func (_m *WALReader) EXPECT() *WALReader_Expecter
type WALReader_Expecter ¶ added in v0.46.0
type WALReader_Expecter struct {
// contains filtered or unexported fields
}
func (*WALReader_Expecter) Next ¶ added in v0.46.0
func (_e *WALReader_Expecter) Next() *WALReader_Next_Call
Next is a helper method to define mock.On call
type WALReader_Next_Call ¶ added in v0.46.0
WALReader_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*WALReader_Next_Call) Return ¶ added in v0.46.0
func (_c *WALReader_Next_Call) Return(height uint64, registers flow.RegisterEntries, err error) *WALReader_Next_Call
func (*WALReader_Next_Call) Run ¶ added in v0.46.0
func (_c *WALReader_Next_Call) Run(run func()) *WALReader_Next_Call
func (*WALReader_Next_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WALReader_Next_Call) RunAndReturn(run func() (uint64, flow.RegisterEntries, error)) *WALReader_Next_Call