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

mock

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutedFinalizedWAL added in v0.33.1

type ExecutedFinalizedWAL struct {
	mock.Mock
}

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

type ExecutedFinalizedWAL_Append_Call struct {
	*mock.Call
}

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

func (*ExecutedFinalizedWAL_Append_Call) RunAndReturn added in v0.46.0

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

Latest is a helper method to define mock.On call

type ExecutedFinalizedWAL_GetReader_Call added in v0.46.0

type ExecutedFinalizedWAL_GetReader_Call struct {
	*mock.Call
}

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

func (*ExecutedFinalizedWAL_GetReader_Call) RunAndReturn added in v0.46.0

type ExecutedFinalizedWAL_Latest_Call added in v0.46.0

type ExecutedFinalizedWAL_Latest_Call struct {
	*mock.Call
}

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

func (*ExecutedFinalizedWAL_Latest_Call) RunAndReturn added in v0.46.0

type ExtendableStorageSnapshot added in v0.33.1

type ExtendableStorageSnapshot struct {
	mock.Mock
}

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 (*ExtendableStorageSnapshot) Extend added in v0.33.1

Extend provides a mock function for the type ExtendableStorageSnapshot

func (*ExtendableStorageSnapshot) Get added in v0.33.1

Get provides a mock function for the type ExtendableStorageSnapshot

type ExtendableStorageSnapshot_Commitment_Call added in v0.46.0

type ExtendableStorageSnapshot_Commitment_Call struct {
	*mock.Call
}

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

func (*ExtendableStorageSnapshot_Commitment_Call) RunAndReturn added in v0.46.0

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

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

Get is a helper method to define mock.On call

  • id flow.RegisterID

type ExtendableStorageSnapshot_Extend_Call added in v0.46.0

type ExtendableStorageSnapshot_Extend_Call struct {
	*mock.Call
}

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

func (*ExtendableStorageSnapshot_Extend_Call) RunAndReturn added in v0.46.0

type ExtendableStorageSnapshot_Get_Call added in v0.46.0

type ExtendableStorageSnapshot_Get_Call struct {
	*mock.Call
}

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

func (*ExtendableStorageSnapshot_Get_Call) RunAndReturn added in v0.46.0

type FinalizedReader added in v0.33.1

type FinalizedReader struct {
	mock.Mock
}

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

type FinalizedReader_FinalizedBlockIDAtHeight_Call struct {
	*mock.Call
}

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

func (*FinalizedReader_FinalizedBlockIDAtHeight_Call) RunAndReturn added in v0.46.0

type InMemoryRegisterStore added in v0.33.1

type InMemoryRegisterStore struct {
	mock.Mock
}

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

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

type InMemoryRegisterStore_GetRegister_Call struct {
	*mock.Call
}

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

func (*InMemoryRegisterStore_GetRegister_Call) RunAndReturn added in v0.46.0

type InMemoryRegisterStore_GetUpdatedRegisters_Call added in v0.46.0

type InMemoryRegisterStore_GetUpdatedRegisters_Call struct {
	*mock.Call
}

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

func (*InMemoryRegisterStore_GetUpdatedRegisters_Call) RunAndReturn added in v0.46.0

type InMemoryRegisterStore_IsBlockExecuted_Call added in v0.46.0

type InMemoryRegisterStore_IsBlockExecuted_Call struct {
	*mock.Call
}

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

func (*InMemoryRegisterStore_IsBlockExecuted_Call) RunAndReturn added in v0.46.0

type InMemoryRegisterStore_Prune_Call added in v0.46.0

type InMemoryRegisterStore_Prune_Call struct {
	*mock.Call
}

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

type InMemoryRegisterStore_PrunedHeight_Call struct {
	*mock.Call
}

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

func (*InMemoryRegisterStore_PrunedHeight_Call) RunAndReturn added in v0.46.0

type InMemoryRegisterStore_SaveRegisters_Call added in v0.46.0

type InMemoryRegisterStore_SaveRegisters_Call struct {
	*mock.Call
}

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

func (*InMemoryRegisterStore_SaveRegisters_Call) RunAndReturn added in v0.46.0

type OnDiskRegisterStore added in v0.41.0

type OnDiskRegisterStore struct {
	mock.Mock
}

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

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

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

type OnDiskRegisterStore_FirstHeight_Call struct {
	*mock.Call
}

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

func (*OnDiskRegisterStore_FirstHeight_Call) RunAndReturn added in v0.46.0

type OnDiskRegisterStore_Get_Call added in v0.46.0

type OnDiskRegisterStore_Get_Call struct {
	*mock.Call
}

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

func (*OnDiskRegisterStore_Get_Call) RunAndReturn added in v0.46.0

type OnDiskRegisterStore_LatestHeight_Call added in v0.46.0

type OnDiskRegisterStore_LatestHeight_Call struct {
	*mock.Call
}

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

func (*OnDiskRegisterStore_LatestHeight_Call) RunAndReturn added in v0.46.0

type OnDiskRegisterStore_Store_Call added in v0.46.0

type OnDiskRegisterStore_Store_Call struct {
	*mock.Call
}

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

func (*OnDiskRegisterStore_Store_Call) RunAndReturn added in v0.46.0

type RegisterStore added in v0.33.1

type RegisterStore struct {
	mock.Mock
}

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

type RegisterStoreNotifier struct {
	mock.Mock
}

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

type RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call struct {
	*mock.Call
}

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

func (*RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) Return added in v0.46.0

func (*RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) Run added in v0.46.0

func (*RegisterStoreNotifier_OnFinalizedAndExecutedHeightUpdated_Call) RunAndReturn added in v0.46.0

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

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

type RegisterStore_GetRegister_Call struct {
	*mock.Call
}

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

func (*RegisterStore_GetRegister_Call) RunAndReturn added in v0.46.0

type RegisterStore_IsBlockExecuted_Call added in v0.46.0

type RegisterStore_IsBlockExecuted_Call struct {
	*mock.Call
}

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

func (*RegisterStore_IsBlockExecuted_Call) RunAndReturn added in v0.46.0

type RegisterStore_LastFinalizedAndExecutedHeight_Call added in v0.46.0

type RegisterStore_LastFinalizedAndExecutedHeight_Call struct {
	*mock.Call
}

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

func (*RegisterStore_LastFinalizedAndExecutedHeight_Call) Return added in v0.46.0

func (*RegisterStore_LastFinalizedAndExecutedHeight_Call) Run added in v0.46.0

func (*RegisterStore_LastFinalizedAndExecutedHeight_Call) RunAndReturn added in v0.46.0

type RegisterStore_OnBlockFinalized_Call added in v0.46.0

type RegisterStore_OnBlockFinalized_Call struct {
	*mock.Call
}

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

func (*RegisterStore_OnBlockFinalized_Call) RunAndReturn added in v0.46.0

type RegisterStore_SaveRegisters_Call added in v0.46.0

type RegisterStore_SaveRegisters_Call struct {
	*mock.Call
}

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

func (*RegisterStore_SaveRegisters_Call) RunAndReturn added in v0.46.0

type ScriptExecutor

type ScriptExecutor struct {
	mock.Mock
}

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

type ScriptExecutor_ExecuteScriptAtBlockID_Call struct {
	*mock.Call
}

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

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

type ScriptExecutor_GetAccount_Call struct {
	*mock.Call
}

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

func (*ScriptExecutor_GetAccount_Call) RunAndReturn added in v0.46.0

type ScriptExecutor_GetRegisterAtBlockID_Call added in v0.46.0

type ScriptExecutor_GetRegisterAtBlockID_Call struct {
	*mock.Call
}

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

func (*ScriptExecutor_GetRegisterAtBlockID_Call) RunAndReturn added in v0.46.0

type WALReader added in v0.33.1

type WALReader struct {
	mock.Mock
}

WALReader is an autogenerated mock type for the WALReader type

func NewWALReader added in v0.33.1

func NewWALReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *WALReader

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

func (*WALReader) Next added in v0.33.1

func (_mock *WALReader) Next() (uint64, flow.RegisterEntries, error)

Next provides a mock function for the type WALReader

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

Next is a helper method to define mock.On call

type WALReader_Next_Call added in v0.46.0

type WALReader_Next_Call struct {
	*mock.Call
}

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

Jump to

Keyboard shortcuts

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