mock

package
v0.46.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch added in v0.38.0

type Batch struct {
	mock.Mock
}

Batch is an autogenerated mock type for the Batch type

func NewBatch added in v0.38.0

func NewBatch(t interface {
	mock.TestingT
	Cleanup(func())
}) *Batch

NewBatch creates a new instance of Batch. 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 (*Batch) AddCallback added in v0.38.0

func (_mock *Batch) AddCallback(fn func(error))

AddCallback provides a mock function for the type Batch

func (*Batch) Close added in v0.41.0

func (_mock *Batch) Close() error

Close provides a mock function for the type Batch

func (*Batch) Commit added in v0.38.0

func (_mock *Batch) Commit() error

Commit provides a mock function for the type Batch

func (*Batch) EXPECT added in v0.46.0

func (_m *Batch) EXPECT() *Batch_Expecter

func (*Batch) GlobalReader added in v0.38.0

func (_mock *Batch) GlobalReader() storage.Reader

GlobalReader provides a mock function for the type Batch

func (*Batch) ScopedValue added in v0.43.2

func (_mock *Batch) ScopedValue(key string) (any, bool)

ScopedValue provides a mock function for the type Batch

func (*Batch) SetScopedValue added in v0.43.2

func (_mock *Batch) SetScopedValue(key string, value any)

SetScopedValue provides a mock function for the type Batch

func (*Batch) Writer added in v0.38.0

func (_mock *Batch) Writer() storage.Writer

Writer provides a mock function for the type Batch

type BatchStorage added in v0.15.0

type BatchStorage struct {
	mock.Mock
}

BatchStorage is an autogenerated mock type for the BatchStorage type

func NewBatchStorage added in v0.26.1

func NewBatchStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchStorage

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

func (_m *BatchStorage) EXPECT() *BatchStorage_Expecter

func (*BatchStorage) Flush added in v0.15.2

func (_mock *BatchStorage) Flush() error

Flush provides a mock function for the type BatchStorage

func (*BatchStorage) GetWriter added in v0.15.2

func (_mock *BatchStorage) GetWriter() *badger.WriteBatch

GetWriter provides a mock function for the type BatchStorage

func (*BatchStorage) OnSucceed added in v0.15.2

func (_mock *BatchStorage) OnSucceed(callback func())

OnSucceed provides a mock function for the type BatchStorage

type BatchStorage_Expecter added in v0.46.0

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

func (*BatchStorage_Expecter) Flush added in v0.46.0

Flush is a helper method to define mock.On call

func (*BatchStorage_Expecter) GetWriter added in v0.46.0

GetWriter is a helper method to define mock.On call

func (*BatchStorage_Expecter) OnSucceed added in v0.46.0

func (_e *BatchStorage_Expecter) OnSucceed(callback interface{}) *BatchStorage_OnSucceed_Call

OnSucceed is a helper method to define mock.On call

  • callback func()

type BatchStorage_Flush_Call added in v0.46.0

type BatchStorage_Flush_Call struct {
	*mock.Call
}

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

func (*BatchStorage_Flush_Call) Return added in v0.46.0

func (*BatchStorage_Flush_Call) Run added in v0.46.0

func (_c *BatchStorage_Flush_Call) Run(run func()) *BatchStorage_Flush_Call

func (*BatchStorage_Flush_Call) RunAndReturn added in v0.46.0

func (_c *BatchStorage_Flush_Call) RunAndReturn(run func() error) *BatchStorage_Flush_Call

type BatchStorage_GetWriter_Call added in v0.46.0

type BatchStorage_GetWriter_Call struct {
	*mock.Call
}

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

func (*BatchStorage_GetWriter_Call) Return added in v0.46.0

func (*BatchStorage_GetWriter_Call) Run added in v0.46.0

func (*BatchStorage_GetWriter_Call) RunAndReturn added in v0.46.0

type BatchStorage_OnSucceed_Call added in v0.46.0

type BatchStorage_OnSucceed_Call struct {
	*mock.Call
}

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

func (*BatchStorage_OnSucceed_Call) Return added in v0.46.0

func (*BatchStorage_OnSucceed_Call) Run added in v0.46.0

func (_c *BatchStorage_OnSucceed_Call) Run(run func(callback func())) *BatchStorage_OnSucceed_Call

func (*BatchStorage_OnSucceed_Call) RunAndReturn added in v0.46.0

func (_c *BatchStorage_OnSucceed_Call) RunAndReturn(run func(callback func())) *BatchStorage_OnSucceed_Call

type Batch_AddCallback_Call added in v0.46.0

type Batch_AddCallback_Call struct {
	*mock.Call
}

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

func (*Batch_AddCallback_Call) Return added in v0.46.0

func (*Batch_AddCallback_Call) Run added in v0.46.0

func (_c *Batch_AddCallback_Call) Run(run func(fn func(error))) *Batch_AddCallback_Call

func (*Batch_AddCallback_Call) RunAndReturn added in v0.46.0

func (_c *Batch_AddCallback_Call) RunAndReturn(run func(fn func(error))) *Batch_AddCallback_Call

type Batch_Close_Call added in v0.46.0

type Batch_Close_Call struct {
	*mock.Call
}

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

func (*Batch_Close_Call) Return added in v0.46.0

func (_c *Batch_Close_Call) Return(err error) *Batch_Close_Call

func (*Batch_Close_Call) Run added in v0.46.0

func (_c *Batch_Close_Call) Run(run func()) *Batch_Close_Call

func (*Batch_Close_Call) RunAndReturn added in v0.46.0

func (_c *Batch_Close_Call) RunAndReturn(run func() error) *Batch_Close_Call

type Batch_Commit_Call added in v0.46.0

type Batch_Commit_Call struct {
	*mock.Call
}

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

func (*Batch_Commit_Call) Return added in v0.46.0

func (_c *Batch_Commit_Call) Return(err error) *Batch_Commit_Call

func (*Batch_Commit_Call) Run added in v0.46.0

func (_c *Batch_Commit_Call) Run(run func()) *Batch_Commit_Call

func (*Batch_Commit_Call) RunAndReturn added in v0.46.0

func (_c *Batch_Commit_Call) RunAndReturn(run func() error) *Batch_Commit_Call

type Batch_Expecter added in v0.46.0

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

func (*Batch_Expecter) AddCallback added in v0.46.0

func (_e *Batch_Expecter) AddCallback(fn interface{}) *Batch_AddCallback_Call

AddCallback is a helper method to define mock.On call

  • fn func(error)

func (*Batch_Expecter) Close added in v0.46.0

func (_e *Batch_Expecter) Close() *Batch_Close_Call

Close is a helper method to define mock.On call

func (*Batch_Expecter) Commit added in v0.46.0

func (_e *Batch_Expecter) Commit() *Batch_Commit_Call

Commit is a helper method to define mock.On call

func (*Batch_Expecter) GlobalReader added in v0.46.0

func (_e *Batch_Expecter) GlobalReader() *Batch_GlobalReader_Call

GlobalReader is a helper method to define mock.On call

func (*Batch_Expecter) ScopedValue added in v0.46.0

func (_e *Batch_Expecter) ScopedValue(key interface{}) *Batch_ScopedValue_Call

ScopedValue is a helper method to define mock.On call

  • key string

func (*Batch_Expecter) SetScopedValue added in v0.46.0

func (_e *Batch_Expecter) SetScopedValue(key interface{}, value interface{}) *Batch_SetScopedValue_Call

SetScopedValue is a helper method to define mock.On call

  • key string
  • value any

func (*Batch_Expecter) Writer added in v0.46.0

func (_e *Batch_Expecter) Writer() *Batch_Writer_Call

Writer is a helper method to define mock.On call

type Batch_GlobalReader_Call added in v0.46.0

type Batch_GlobalReader_Call struct {
	*mock.Call
}

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

func (*Batch_GlobalReader_Call) Return added in v0.46.0

func (*Batch_GlobalReader_Call) Run added in v0.46.0

func (_c *Batch_GlobalReader_Call) Run(run func()) *Batch_GlobalReader_Call

func (*Batch_GlobalReader_Call) RunAndReturn added in v0.46.0

func (_c *Batch_GlobalReader_Call) RunAndReturn(run func() storage.Reader) *Batch_GlobalReader_Call

type Batch_ScopedValue_Call added in v0.46.0

type Batch_ScopedValue_Call struct {
	*mock.Call
}

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

func (*Batch_ScopedValue_Call) Return added in v0.46.0

func (*Batch_ScopedValue_Call) Run added in v0.46.0

func (_c *Batch_ScopedValue_Call) Run(run func(key string)) *Batch_ScopedValue_Call

func (*Batch_ScopedValue_Call) RunAndReturn added in v0.46.0

func (_c *Batch_ScopedValue_Call) RunAndReturn(run func(key string) (any, bool)) *Batch_ScopedValue_Call

type Batch_SetScopedValue_Call added in v0.46.0

type Batch_SetScopedValue_Call struct {
	*mock.Call
}

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

func (*Batch_SetScopedValue_Call) Return added in v0.46.0

func (*Batch_SetScopedValue_Call) Run added in v0.46.0

func (_c *Batch_SetScopedValue_Call) Run(run func(key string, value any)) *Batch_SetScopedValue_Call

func (*Batch_SetScopedValue_Call) RunAndReturn added in v0.46.0

func (_c *Batch_SetScopedValue_Call) RunAndReturn(run func(key string, value any)) *Batch_SetScopedValue_Call

type Batch_Writer_Call added in v0.46.0

type Batch_Writer_Call struct {
	*mock.Call
}

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

func (*Batch_Writer_Call) Return added in v0.46.0

func (_c *Batch_Writer_Call) Return(writer storage.Writer) *Batch_Writer_Call

func (*Batch_Writer_Call) Run added in v0.46.0

func (_c *Batch_Writer_Call) Run(run func()) *Batch_Writer_Call

func (*Batch_Writer_Call) RunAndReturn added in v0.46.0

func (_c *Batch_Writer_Call) RunAndReturn(run func() storage.Writer) *Batch_Writer_Call

type Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks added in v0.26.1

func NewBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blocks

NewBlocks creates a new instance of Blocks. 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 (*Blocks) BatchIndexBlockContainingCollectionGuarantees added in v0.45.0

func (_mock *Blocks) BatchIndexBlockContainingCollectionGuarantees(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, guaranteeIDs []flow.Identifier) error

BatchIndexBlockContainingCollectionGuarantees provides a mock function for the type Blocks

func (*Blocks) BatchStore added in v0.43.0

func (_mock *Blocks) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, proposal *flow.Proposal) error

BatchStore provides a mock function for the type Blocks

func (*Blocks) BlockIDByCollectionID added in v0.45.0

func (_mock *Blocks) BlockIDByCollectionID(collID flow.Identifier) (flow.Identifier, error)

BlockIDByCollectionID provides a mock function for the type Blocks

func (*Blocks) ByCollectionID

func (_mock *Blocks) ByCollectionID(collID flow.Identifier) (*flow.Block, error)

ByCollectionID provides a mock function for the type Blocks

func (*Blocks) ByHeight

func (_mock *Blocks) ByHeight(height uint64) (*flow.Block, error)

ByHeight provides a mock function for the type Blocks

func (*Blocks) ByID

func (_mock *Blocks) ByID(blockID flow.Identifier) (*flow.Block, error)

ByID provides a mock function for the type Blocks

func (*Blocks) ByView added in v0.43.0

func (_mock *Blocks) ByView(view uint64) (*flow.Block, error)

ByView provides a mock function for the type Blocks

func (*Blocks) EXPECT added in v0.46.0

func (_m *Blocks) EXPECT() *Blocks_Expecter

func (*Blocks) ProposalByHeight added in v0.43.0

func (_mock *Blocks) ProposalByHeight(height uint64) (*flow.Proposal, error)

ProposalByHeight provides a mock function for the type Blocks

func (*Blocks) ProposalByID added in v0.43.0

func (_mock *Blocks) ProposalByID(blockID flow.Identifier) (*flow.Proposal, error)

ProposalByID provides a mock function for the type Blocks

func (*Blocks) ProposalByView added in v0.43.0

func (_mock *Blocks) ProposalByView(view uint64) (*flow.Proposal, error)

ProposalByView provides a mock function for the type Blocks

type Blocks_BatchIndexBlockContainingCollectionGuarantees_Call added in v0.46.0

type Blocks_BatchIndexBlockContainingCollectionGuarantees_Call struct {
	*mock.Call
}

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

func (*Blocks_BatchIndexBlockContainingCollectionGuarantees_Call) Return added in v0.46.0

func (*Blocks_BatchIndexBlockContainingCollectionGuarantees_Call) Run added in v0.46.0

func (*Blocks_BatchIndexBlockContainingCollectionGuarantees_Call) RunAndReturn added in v0.46.0

type Blocks_BatchStore_Call added in v0.46.0

type Blocks_BatchStore_Call struct {
	*mock.Call
}

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

func (*Blocks_BatchStore_Call) Return added in v0.46.0

func (*Blocks_BatchStore_Call) Run added in v0.46.0

func (*Blocks_BatchStore_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_BatchStore_Call) RunAndReturn(run func(lctx lockctx.Proof, rw storage.ReaderBatchWriter, proposal *flow.Proposal) error) *Blocks_BatchStore_Call

type Blocks_BlockIDByCollectionID_Call added in v0.46.0

type Blocks_BlockIDByCollectionID_Call struct {
	*mock.Call
}

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

func (*Blocks_BlockIDByCollectionID_Call) Return added in v0.46.0

func (*Blocks_BlockIDByCollectionID_Call) Run added in v0.46.0

func (*Blocks_BlockIDByCollectionID_Call) RunAndReturn added in v0.46.0

type Blocks_ByCollectionID_Call added in v0.46.0

type Blocks_ByCollectionID_Call struct {
	*mock.Call
}

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

func (*Blocks_ByCollectionID_Call) Return added in v0.46.0

func (*Blocks_ByCollectionID_Call) Run added in v0.46.0

func (*Blocks_ByCollectionID_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ByCollectionID_Call) RunAndReturn(run func(collID flow.Identifier) (*flow.Block, error)) *Blocks_ByCollectionID_Call

type Blocks_ByHeight_Call added in v0.46.0

type Blocks_ByHeight_Call struct {
	*mock.Call
}

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

func (*Blocks_ByHeight_Call) Return added in v0.46.0

func (*Blocks_ByHeight_Call) Run added in v0.46.0

func (_c *Blocks_ByHeight_Call) Run(run func(height uint64)) *Blocks_ByHeight_Call

func (*Blocks_ByHeight_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ByHeight_Call) RunAndReturn(run func(height uint64) (*flow.Block, error)) *Blocks_ByHeight_Call

type Blocks_ByID_Call added in v0.46.0

type Blocks_ByID_Call struct {
	*mock.Call
}

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

func (*Blocks_ByID_Call) Return added in v0.46.0

func (_c *Blocks_ByID_Call) Return(v *flow.Block, err error) *Blocks_ByID_Call

func (*Blocks_ByID_Call) Run added in v0.46.0

func (_c *Blocks_ByID_Call) Run(run func(blockID flow.Identifier)) *Blocks_ByID_Call

func (*Blocks_ByID_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ByID_Call) RunAndReturn(run func(blockID flow.Identifier) (*flow.Block, error)) *Blocks_ByID_Call

type Blocks_ByView_Call added in v0.46.0

type Blocks_ByView_Call struct {
	*mock.Call
}

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

func (*Blocks_ByView_Call) Return added in v0.46.0

func (_c *Blocks_ByView_Call) Return(v *flow.Block, err error) *Blocks_ByView_Call

func (*Blocks_ByView_Call) Run added in v0.46.0

func (_c *Blocks_ByView_Call) Run(run func(view uint64)) *Blocks_ByView_Call

func (*Blocks_ByView_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ByView_Call) RunAndReturn(run func(view uint64) (*flow.Block, error)) *Blocks_ByView_Call

type Blocks_Expecter added in v0.46.0

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

func (*Blocks_Expecter) BatchIndexBlockContainingCollectionGuarantees added in v0.46.0

func (_e *Blocks_Expecter) BatchIndexBlockContainingCollectionGuarantees(lctx interface{}, rw interface{}, blockID interface{}, guaranteeIDs interface{}) *Blocks_BatchIndexBlockContainingCollectionGuarantees_Call

BatchIndexBlockContainingCollectionGuarantees is a helper method to define mock.On call

  • lctx lockctx.Proof
  • rw storage.ReaderBatchWriter
  • blockID flow.Identifier
  • guaranteeIDs []flow.Identifier

func (*Blocks_Expecter) BatchStore added in v0.46.0

func (_e *Blocks_Expecter) BatchStore(lctx interface{}, rw interface{}, proposal interface{}) *Blocks_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • rw storage.ReaderBatchWriter
  • proposal *flow.Proposal

func (*Blocks_Expecter) BlockIDByCollectionID added in v0.46.0

func (_e *Blocks_Expecter) BlockIDByCollectionID(collID interface{}) *Blocks_BlockIDByCollectionID_Call

BlockIDByCollectionID is a helper method to define mock.On call

  • collID flow.Identifier

func (*Blocks_Expecter) ByCollectionID added in v0.46.0

func (_e *Blocks_Expecter) ByCollectionID(collID interface{}) *Blocks_ByCollectionID_Call

ByCollectionID is a helper method to define mock.On call

  • collID flow.Identifier

func (*Blocks_Expecter) ByHeight added in v0.46.0

func (_e *Blocks_Expecter) ByHeight(height interface{}) *Blocks_ByHeight_Call

ByHeight is a helper method to define mock.On call

  • height uint64

func (*Blocks_Expecter) ByID added in v0.46.0

func (_e *Blocks_Expecter) ByID(blockID interface{}) *Blocks_ByID_Call

ByID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Blocks_Expecter) ByView added in v0.46.0

func (_e *Blocks_Expecter) ByView(view interface{}) *Blocks_ByView_Call

ByView is a helper method to define mock.On call

  • view uint64

func (*Blocks_Expecter) ProposalByHeight added in v0.46.0

func (_e *Blocks_Expecter) ProposalByHeight(height interface{}) *Blocks_ProposalByHeight_Call

ProposalByHeight is a helper method to define mock.On call

  • height uint64

func (*Blocks_Expecter) ProposalByID added in v0.46.0

func (_e *Blocks_Expecter) ProposalByID(blockID interface{}) *Blocks_ProposalByID_Call

ProposalByID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Blocks_Expecter) ProposalByView added in v0.46.0

func (_e *Blocks_Expecter) ProposalByView(view interface{}) *Blocks_ProposalByView_Call

ProposalByView is a helper method to define mock.On call

  • view uint64

type Blocks_ProposalByHeight_Call added in v0.46.0

type Blocks_ProposalByHeight_Call struct {
	*mock.Call
}

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

func (*Blocks_ProposalByHeight_Call) Return added in v0.46.0

func (*Blocks_ProposalByHeight_Call) Run added in v0.46.0

func (*Blocks_ProposalByHeight_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ProposalByHeight_Call) RunAndReturn(run func(height uint64) (*flow.Proposal, error)) *Blocks_ProposalByHeight_Call

type Blocks_ProposalByID_Call added in v0.46.0

type Blocks_ProposalByID_Call struct {
	*mock.Call
}

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

func (*Blocks_ProposalByID_Call) Return added in v0.46.0

func (*Blocks_ProposalByID_Call) Run added in v0.46.0

func (*Blocks_ProposalByID_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ProposalByID_Call) RunAndReturn(run func(blockID flow.Identifier) (*flow.Proposal, error)) *Blocks_ProposalByID_Call

type Blocks_ProposalByView_Call added in v0.46.0

type Blocks_ProposalByView_Call struct {
	*mock.Call
}

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

func (*Blocks_ProposalByView_Call) Return added in v0.46.0

func (*Blocks_ProposalByView_Call) Run added in v0.46.0

func (*Blocks_ProposalByView_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_ProposalByView_Call) RunAndReturn(run func(view uint64) (*flow.Proposal, error)) *Blocks_ProposalByView_Call

type ChunkDataPacks

type ChunkDataPacks struct {
	mock.Mock
}

ChunkDataPacks is an autogenerated mock type for the ChunkDataPacks type

func NewChunkDataPacks added in v0.26.1

func NewChunkDataPacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChunkDataPacks

NewChunkDataPacks creates a new instance of ChunkDataPacks. 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 (*ChunkDataPacks) BatchRemove added in v0.30.0

func (_mock *ChunkDataPacks) BatchRemove(chunkIDs []flow.Identifier, rw storage.ReaderBatchWriter) ([]flow.Identifier, error)

BatchRemove provides a mock function for the type ChunkDataPacks

func (*ChunkDataPacks) BatchRemoveChunkDataPacksOnly added in v0.43.2

func (_mock *ChunkDataPacks) BatchRemoveChunkDataPacksOnly(chunkIDs []flow.Identifier, chunkDataPackBatch storage.ReaderBatchWriter) error

BatchRemoveChunkDataPacksOnly provides a mock function for the type ChunkDataPacks

func (*ChunkDataPacks) ByChunkID

func (_mock *ChunkDataPacks) ByChunkID(chunkID flow.Identifier) (*flow.ChunkDataPack, error)

ByChunkID provides a mock function for the type ChunkDataPacks

func (*ChunkDataPacks) EXPECT added in v0.46.0

func (*ChunkDataPacks) Store

func (_mock *ChunkDataPacks) Store(cs []*flow.ChunkDataPack) (func(lctx lockctx.Proof, protocolDBBatch storage.ReaderBatchWriter) error, error)

Store provides a mock function for the type ChunkDataPacks

type ChunkDataPacks_BatchRemoveChunkDataPacksOnly_Call added in v0.46.0

type ChunkDataPacks_BatchRemoveChunkDataPacksOnly_Call struct {
	*mock.Call
}

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

func (*ChunkDataPacks_BatchRemoveChunkDataPacksOnly_Call) Return added in v0.46.0

func (*ChunkDataPacks_BatchRemoveChunkDataPacksOnly_Call) Run added in v0.46.0

func (*ChunkDataPacks_BatchRemoveChunkDataPacksOnly_Call) RunAndReturn added in v0.46.0

type ChunkDataPacks_BatchRemove_Call added in v0.46.0

type ChunkDataPacks_BatchRemove_Call struct {
	*mock.Call
}

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

func (*ChunkDataPacks_BatchRemove_Call) Return added in v0.46.0

func (*ChunkDataPacks_BatchRemove_Call) Run added in v0.46.0

func (*ChunkDataPacks_BatchRemove_Call) RunAndReturn added in v0.46.0

type ChunkDataPacks_ByChunkID_Call added in v0.46.0

type ChunkDataPacks_ByChunkID_Call struct {
	*mock.Call
}

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

func (*ChunkDataPacks_ByChunkID_Call) Return added in v0.46.0

func (*ChunkDataPacks_ByChunkID_Call) Run added in v0.46.0

func (*ChunkDataPacks_ByChunkID_Call) RunAndReturn added in v0.46.0

type ChunkDataPacks_Expecter added in v0.46.0

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

func (*ChunkDataPacks_Expecter) BatchRemove added in v0.46.0

func (_e *ChunkDataPacks_Expecter) BatchRemove(chunkIDs interface{}, rw interface{}) *ChunkDataPacks_BatchRemove_Call

BatchRemove is a helper method to define mock.On call

  • chunkIDs []flow.Identifier
  • rw storage.ReaderBatchWriter

func (*ChunkDataPacks_Expecter) BatchRemoveChunkDataPacksOnly added in v0.46.0

func (_e *ChunkDataPacks_Expecter) BatchRemoveChunkDataPacksOnly(chunkIDs interface{}, chunkDataPackBatch interface{}) *ChunkDataPacks_BatchRemoveChunkDataPacksOnly_Call

BatchRemoveChunkDataPacksOnly is a helper method to define mock.On call

  • chunkIDs []flow.Identifier
  • chunkDataPackBatch storage.ReaderBatchWriter

func (*ChunkDataPacks_Expecter) ByChunkID added in v0.46.0

func (_e *ChunkDataPacks_Expecter) ByChunkID(chunkID interface{}) *ChunkDataPacks_ByChunkID_Call

ByChunkID is a helper method to define mock.On call

  • chunkID flow.Identifier

func (*ChunkDataPacks_Expecter) Store added in v0.46.0

func (_e *ChunkDataPacks_Expecter) Store(cs interface{}) *ChunkDataPacks_Store_Call

Store is a helper method to define mock.On call

  • cs []*flow.ChunkDataPack

type ChunkDataPacks_Store_Call added in v0.46.0

type ChunkDataPacks_Store_Call struct {
	*mock.Call
}

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

func (*ChunkDataPacks_Store_Call) Return added in v0.46.0

func (_c *ChunkDataPacks_Store_Call) Return(fn func(lctx lockctx.Proof, protocolDBBatch storage.ReaderBatchWriter) error, err error) *ChunkDataPacks_Store_Call

func (*ChunkDataPacks_Store_Call) Run added in v0.46.0

func (*ChunkDataPacks_Store_Call) RunAndReturn added in v0.46.0

func (_c *ChunkDataPacks_Store_Call) RunAndReturn(run func(cs []*flow.ChunkDataPack) (func(lctx lockctx.Proof, protocolDBBatch storage.ReaderBatchWriter) error, error)) *ChunkDataPacks_Store_Call

type ChunksQueue added in v0.15.0

type ChunksQueue struct {
	mock.Mock
}

ChunksQueue is an autogenerated mock type for the ChunksQueue type

func NewChunksQueue added in v0.26.1

func NewChunksQueue(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChunksQueue

NewChunksQueue creates a new instance of ChunksQueue. 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 (*ChunksQueue) AtIndex added in v0.15.0

func (_mock *ChunksQueue) AtIndex(index uint64) (*chunks.Locator, error)

AtIndex provides a mock function for the type ChunksQueue

func (*ChunksQueue) EXPECT added in v0.46.0

func (_m *ChunksQueue) EXPECT() *ChunksQueue_Expecter

func (*ChunksQueue) LatestIndex added in v0.15.0

func (_mock *ChunksQueue) LatestIndex() (uint64, error)

LatestIndex provides a mock function for the type ChunksQueue

func (*ChunksQueue) StoreChunkLocator added in v0.15.0

func (_mock *ChunksQueue) StoreChunkLocator(locator *chunks.Locator) (bool, error)

StoreChunkLocator provides a mock function for the type ChunksQueue

type ChunksQueue_AtIndex_Call added in v0.46.0

type ChunksQueue_AtIndex_Call struct {
	*mock.Call
}

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

func (*ChunksQueue_AtIndex_Call) Return added in v0.46.0

func (*ChunksQueue_AtIndex_Call) Run added in v0.46.0

func (_c *ChunksQueue_AtIndex_Call) Run(run func(index uint64)) *ChunksQueue_AtIndex_Call

func (*ChunksQueue_AtIndex_Call) RunAndReturn added in v0.46.0

func (_c *ChunksQueue_AtIndex_Call) RunAndReturn(run func(index uint64) (*chunks.Locator, error)) *ChunksQueue_AtIndex_Call

type ChunksQueue_Expecter added in v0.46.0

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

func (*ChunksQueue_Expecter) AtIndex added in v0.46.0

func (_e *ChunksQueue_Expecter) AtIndex(index interface{}) *ChunksQueue_AtIndex_Call

AtIndex is a helper method to define mock.On call

  • index uint64

func (*ChunksQueue_Expecter) LatestIndex added in v0.46.0

LatestIndex is a helper method to define mock.On call

func (*ChunksQueue_Expecter) StoreChunkLocator added in v0.46.0

func (_e *ChunksQueue_Expecter) StoreChunkLocator(locator interface{}) *ChunksQueue_StoreChunkLocator_Call

StoreChunkLocator is a helper method to define mock.On call

  • locator *chunks.Locator

type ChunksQueue_LatestIndex_Call added in v0.46.0

type ChunksQueue_LatestIndex_Call struct {
	*mock.Call
}

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

func (*ChunksQueue_LatestIndex_Call) Return added in v0.46.0

func (*ChunksQueue_LatestIndex_Call) Run added in v0.46.0

func (*ChunksQueue_LatestIndex_Call) RunAndReturn added in v0.46.0

func (_c *ChunksQueue_LatestIndex_Call) RunAndReturn(run func() (uint64, error)) *ChunksQueue_LatestIndex_Call

type ChunksQueue_StoreChunkLocator_Call added in v0.46.0

type ChunksQueue_StoreChunkLocator_Call struct {
	*mock.Call
}

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

func (*ChunksQueue_StoreChunkLocator_Call) Return added in v0.46.0

func (*ChunksQueue_StoreChunkLocator_Call) Run added in v0.46.0

func (*ChunksQueue_StoreChunkLocator_Call) RunAndReturn added in v0.46.0

type ClusterBlocks

type ClusterBlocks struct {
	mock.Mock
}

ClusterBlocks is an autogenerated mock type for the ClusterBlocks type

func NewClusterBlocks added in v0.26.1

func NewClusterBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterBlocks

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

func (_m *ClusterBlocks) EXPECT() *ClusterBlocks_Expecter

func (*ClusterBlocks) ProposalByHeight added in v0.43.0

func (_mock *ClusterBlocks) ProposalByHeight(height uint64) (*cluster.Proposal, error)

ProposalByHeight provides a mock function for the type ClusterBlocks

func (*ClusterBlocks) ProposalByID added in v0.43.0

func (_mock *ClusterBlocks) ProposalByID(blockID flow.Identifier) (*cluster.Proposal, error)

ProposalByID provides a mock function for the type ClusterBlocks

type ClusterBlocks_Expecter added in v0.46.0

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

func (*ClusterBlocks_Expecter) ProposalByHeight added in v0.46.0

func (_e *ClusterBlocks_Expecter) ProposalByHeight(height interface{}) *ClusterBlocks_ProposalByHeight_Call

ProposalByHeight is a helper method to define mock.On call

  • height uint64

func (*ClusterBlocks_Expecter) ProposalByID added in v0.46.0

func (_e *ClusterBlocks_Expecter) ProposalByID(blockID interface{}) *ClusterBlocks_ProposalByID_Call

ProposalByID is a helper method to define mock.On call

  • blockID flow.Identifier

type ClusterBlocks_ProposalByHeight_Call added in v0.46.0

type ClusterBlocks_ProposalByHeight_Call struct {
	*mock.Call
}

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

func (*ClusterBlocks_ProposalByHeight_Call) Return added in v0.46.0

func (*ClusterBlocks_ProposalByHeight_Call) Run added in v0.46.0

func (*ClusterBlocks_ProposalByHeight_Call) RunAndReturn added in v0.46.0

type ClusterBlocks_ProposalByID_Call added in v0.46.0

type ClusterBlocks_ProposalByID_Call struct {
	*mock.Call
}

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

func (*ClusterBlocks_ProposalByID_Call) Return added in v0.46.0

func (*ClusterBlocks_ProposalByID_Call) Run added in v0.46.0

func (*ClusterBlocks_ProposalByID_Call) RunAndReturn added in v0.46.0

type ClusterPayloads

type ClusterPayloads struct {
	mock.Mock
}

ClusterPayloads is an autogenerated mock type for the ClusterPayloads type

func NewClusterPayloads added in v0.26.1

func NewClusterPayloads(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterPayloads

NewClusterPayloads creates a new instance of ClusterPayloads. 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 (*ClusterPayloads) ByBlockID

func (_mock *ClusterPayloads) ByBlockID(blockID flow.Identifier) (*cluster.Payload, error)

ByBlockID provides a mock function for the type ClusterPayloads

func (*ClusterPayloads) EXPECT added in v0.46.0

type ClusterPayloads_ByBlockID_Call added in v0.46.0

type ClusterPayloads_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ClusterPayloads_ByBlockID_Call) Return added in v0.46.0

func (*ClusterPayloads_ByBlockID_Call) Run added in v0.46.0

func (*ClusterPayloads_ByBlockID_Call) RunAndReturn added in v0.46.0

type ClusterPayloads_Expecter added in v0.46.0

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

func (*ClusterPayloads_Expecter) ByBlockID added in v0.46.0

func (_e *ClusterPayloads_Expecter) ByBlockID(blockID interface{}) *ClusterPayloads_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type Collections

type Collections struct {
	mock.Mock
}

Collections is an autogenerated mock type for the Collections type

func NewCollections added in v0.26.1

func NewCollections(t interface {
	mock.TestingT
	Cleanup(func())
}) *Collections

NewCollections creates a new instance of Collections. 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 (*Collections) BatchStoreAndIndexByTransaction added in v0.43.0

func (_mock *Collections) BatchStoreAndIndexByTransaction(lctx lockctx.Proof, collection *flow.Collection, batch storage.ReaderBatchWriter) (*flow.LightCollection, error)

BatchStoreAndIndexByTransaction provides a mock function for the type Collections

func (*Collections) ByID

func (_mock *Collections) ByID(collID flow.Identifier) (*flow.Collection, error)

ByID provides a mock function for the type Collections

func (*Collections) EXPECT added in v0.46.0

func (_m *Collections) EXPECT() *Collections_Expecter

func (*Collections) LightByID

func (_mock *Collections) LightByID(collID flow.Identifier) (*flow.LightCollection, error)

LightByID provides a mock function for the type Collections

func (*Collections) LightByTransactionID

func (_mock *Collections) LightByTransactionID(txID flow.Identifier) (*flow.LightCollection, error)

LightByTransactionID provides a mock function for the type Collections

func (*Collections) Remove

func (_mock *Collections) Remove(collID flow.Identifier) error

Remove provides a mock function for the type Collections

func (*Collections) Store

func (_mock *Collections) Store(collection *flow.Collection) (*flow.LightCollection, error)

Store provides a mock function for the type Collections

func (*Collections) StoreAndIndexByTransaction added in v0.43.0

func (_mock *Collections) StoreAndIndexByTransaction(lctx lockctx.Proof, collection *flow.Collection) (*flow.LightCollection, error)

StoreAndIndexByTransaction provides a mock function for the type Collections

type CollectionsReader added in v0.41.0

type CollectionsReader struct {
	mock.Mock
}

CollectionsReader is an autogenerated mock type for the CollectionsReader type

func NewCollectionsReader added in v0.41.0

func NewCollectionsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *CollectionsReader

NewCollectionsReader creates a new instance of CollectionsReader. 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 (*CollectionsReader) ByID added in v0.41.0

func (_mock *CollectionsReader) ByID(collID flow.Identifier) (*flow.Collection, error)

ByID provides a mock function for the type CollectionsReader

func (*CollectionsReader) EXPECT added in v0.46.0

func (*CollectionsReader) LightByID added in v0.41.0

func (_mock *CollectionsReader) LightByID(collID flow.Identifier) (*flow.LightCollection, error)

LightByID provides a mock function for the type CollectionsReader

func (*CollectionsReader) LightByTransactionID added in v0.41.0

func (_mock *CollectionsReader) LightByTransactionID(txID flow.Identifier) (*flow.LightCollection, error)

LightByTransactionID provides a mock function for the type CollectionsReader

type CollectionsReader_ByID_Call added in v0.46.0

type CollectionsReader_ByID_Call struct {
	*mock.Call
}

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

func (*CollectionsReader_ByID_Call) Return added in v0.46.0

func (*CollectionsReader_ByID_Call) Run added in v0.46.0

func (*CollectionsReader_ByID_Call) RunAndReturn added in v0.46.0

type CollectionsReader_Expecter added in v0.46.0

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

func (*CollectionsReader_Expecter) ByID added in v0.46.0

func (_e *CollectionsReader_Expecter) ByID(collID interface{}) *CollectionsReader_ByID_Call

ByID is a helper method to define mock.On call

  • collID flow.Identifier

func (*CollectionsReader_Expecter) LightByID added in v0.46.0

func (_e *CollectionsReader_Expecter) LightByID(collID interface{}) *CollectionsReader_LightByID_Call

LightByID is a helper method to define mock.On call

  • collID flow.Identifier

func (*CollectionsReader_Expecter) LightByTransactionID added in v0.46.0

func (_e *CollectionsReader_Expecter) LightByTransactionID(txID interface{}) *CollectionsReader_LightByTransactionID_Call

LightByTransactionID is a helper method to define mock.On call

  • txID flow.Identifier

type CollectionsReader_LightByID_Call added in v0.46.0

type CollectionsReader_LightByID_Call struct {
	*mock.Call
}

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

func (*CollectionsReader_LightByID_Call) Return added in v0.46.0

func (*CollectionsReader_LightByID_Call) Run added in v0.46.0

func (*CollectionsReader_LightByID_Call) RunAndReturn added in v0.46.0

type CollectionsReader_LightByTransactionID_Call added in v0.46.0

type CollectionsReader_LightByTransactionID_Call struct {
	*mock.Call
}

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

func (*CollectionsReader_LightByTransactionID_Call) Return added in v0.46.0

func (*CollectionsReader_LightByTransactionID_Call) Run added in v0.46.0

func (*CollectionsReader_LightByTransactionID_Call) RunAndReturn added in v0.46.0

type Collections_BatchStoreAndIndexByTransaction_Call added in v0.46.0

type Collections_BatchStoreAndIndexByTransaction_Call struct {
	*mock.Call
}

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

func (*Collections_BatchStoreAndIndexByTransaction_Call) Return added in v0.46.0

func (*Collections_BatchStoreAndIndexByTransaction_Call) Run added in v0.46.0

func (*Collections_BatchStoreAndIndexByTransaction_Call) RunAndReturn added in v0.46.0

type Collections_ByID_Call added in v0.46.0

type Collections_ByID_Call struct {
	*mock.Call
}

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

func (*Collections_ByID_Call) Return added in v0.46.0

func (_c *Collections_ByID_Call) Return(collection *flow.Collection, err error) *Collections_ByID_Call

func (*Collections_ByID_Call) Run added in v0.46.0

func (_c *Collections_ByID_Call) Run(run func(collID flow.Identifier)) *Collections_ByID_Call

func (*Collections_ByID_Call) RunAndReturn added in v0.46.0

func (_c *Collections_ByID_Call) RunAndReturn(run func(collID flow.Identifier) (*flow.Collection, error)) *Collections_ByID_Call

type Collections_Expecter added in v0.46.0

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

func (*Collections_Expecter) BatchStoreAndIndexByTransaction added in v0.46.0

func (_e *Collections_Expecter) BatchStoreAndIndexByTransaction(lctx interface{}, collection interface{}, batch interface{}) *Collections_BatchStoreAndIndexByTransaction_Call

BatchStoreAndIndexByTransaction is a helper method to define mock.On call

  • lctx lockctx.Proof
  • collection *flow.Collection
  • batch storage.ReaderBatchWriter

func (*Collections_Expecter) ByID added in v0.46.0

func (_e *Collections_Expecter) ByID(collID interface{}) *Collections_ByID_Call

ByID is a helper method to define mock.On call

  • collID flow.Identifier

func (*Collections_Expecter) LightByID added in v0.46.0

func (_e *Collections_Expecter) LightByID(collID interface{}) *Collections_LightByID_Call

LightByID is a helper method to define mock.On call

  • collID flow.Identifier

func (*Collections_Expecter) LightByTransactionID added in v0.46.0

func (_e *Collections_Expecter) LightByTransactionID(txID interface{}) *Collections_LightByTransactionID_Call

LightByTransactionID is a helper method to define mock.On call

  • txID flow.Identifier

func (*Collections_Expecter) Remove added in v0.46.0

func (_e *Collections_Expecter) Remove(collID interface{}) *Collections_Remove_Call

Remove is a helper method to define mock.On call

  • collID flow.Identifier

func (*Collections_Expecter) Store added in v0.46.0

func (_e *Collections_Expecter) Store(collection interface{}) *Collections_Store_Call

Store is a helper method to define mock.On call

  • collection *flow.Collection

func (*Collections_Expecter) StoreAndIndexByTransaction added in v0.46.0

func (_e *Collections_Expecter) StoreAndIndexByTransaction(lctx interface{}, collection interface{}) *Collections_StoreAndIndexByTransaction_Call

StoreAndIndexByTransaction is a helper method to define mock.On call

  • lctx lockctx.Proof
  • collection *flow.Collection

type Collections_LightByID_Call added in v0.46.0

type Collections_LightByID_Call struct {
	*mock.Call
}

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

func (*Collections_LightByID_Call) Return added in v0.46.0

func (*Collections_LightByID_Call) Run added in v0.46.0

func (*Collections_LightByID_Call) RunAndReturn added in v0.46.0

type Collections_LightByTransactionID_Call added in v0.46.0

type Collections_LightByTransactionID_Call struct {
	*mock.Call
}

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

func (*Collections_LightByTransactionID_Call) Return added in v0.46.0

func (*Collections_LightByTransactionID_Call) Run added in v0.46.0

func (*Collections_LightByTransactionID_Call) RunAndReturn added in v0.46.0

type Collections_Remove_Call added in v0.46.0

type Collections_Remove_Call struct {
	*mock.Call
}

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

func (*Collections_Remove_Call) Return added in v0.46.0

func (*Collections_Remove_Call) Run added in v0.46.0

func (*Collections_Remove_Call) RunAndReturn added in v0.46.0

func (_c *Collections_Remove_Call) RunAndReturn(run func(collID flow.Identifier) error) *Collections_Remove_Call

type Collections_StoreAndIndexByTransaction_Call added in v0.46.0

type Collections_StoreAndIndexByTransaction_Call struct {
	*mock.Call
}

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

func (*Collections_StoreAndIndexByTransaction_Call) Return added in v0.46.0

func (*Collections_StoreAndIndexByTransaction_Call) Run added in v0.46.0

func (*Collections_StoreAndIndexByTransaction_Call) RunAndReturn added in v0.46.0

type Collections_Store_Call added in v0.46.0

type Collections_Store_Call struct {
	*mock.Call
}

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

func (*Collections_Store_Call) Return added in v0.46.0

func (_c *Collections_Store_Call) Return(lightCollection *flow.LightCollection, err error) *Collections_Store_Call

func (*Collections_Store_Call) Run added in v0.46.0

func (_c *Collections_Store_Call) Run(run func(collection *flow.Collection)) *Collections_Store_Call

func (*Collections_Store_Call) RunAndReturn added in v0.46.0

func (_c *Collections_Store_Call) RunAndReturn(run func(collection *flow.Collection) (*flow.LightCollection, error)) *Collections_Store_Call

type Commits

type Commits struct {
	mock.Mock
}

Commits is an autogenerated mock type for the Commits type

func NewCommits added in v0.26.1

func NewCommits(t interface {
	mock.TestingT
	Cleanup(func())
}) *Commits

NewCommits creates a new instance of Commits. 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 (*Commits) BatchRemoveByBlockID added in v0.30.0

func (_mock *Commits) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function for the type Commits

func (*Commits) BatchStore added in v0.15.0

func (_mock *Commits) BatchStore(lctx lockctx.Proof, blockID flow.Identifier, commit flow.StateCommitment, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function for the type Commits

func (*Commits) ByBlockID

func (_mock *Commits) ByBlockID(blockID flow.Identifier) (flow.StateCommitment, error)

ByBlockID provides a mock function for the type Commits

func (*Commits) EXPECT added in v0.46.0

func (_m *Commits) EXPECT() *Commits_Expecter

type CommitsReader added in v0.41.0

type CommitsReader struct {
	mock.Mock
}

CommitsReader is an autogenerated mock type for the CommitsReader type

func NewCommitsReader added in v0.41.0

func NewCommitsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *CommitsReader

NewCommitsReader creates a new instance of CommitsReader. 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 (*CommitsReader) ByBlockID added in v0.41.0

func (_mock *CommitsReader) ByBlockID(blockID flow.Identifier) (flow.StateCommitment, error)

ByBlockID provides a mock function for the type CommitsReader

func (*CommitsReader) EXPECT added in v0.46.0

func (_m *CommitsReader) EXPECT() *CommitsReader_Expecter

type CommitsReader_ByBlockID_Call added in v0.46.0

type CommitsReader_ByBlockID_Call struct {
	*mock.Call
}

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

func (*CommitsReader_ByBlockID_Call) Return added in v0.46.0

func (*CommitsReader_ByBlockID_Call) Run added in v0.46.0

func (*CommitsReader_ByBlockID_Call) RunAndReturn added in v0.46.0

type CommitsReader_Expecter added in v0.46.0

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

func (*CommitsReader_Expecter) ByBlockID added in v0.46.0

func (_e *CommitsReader_Expecter) ByBlockID(blockID interface{}) *CommitsReader_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type Commits_BatchRemoveByBlockID_Call added in v0.46.0

type Commits_BatchRemoveByBlockID_Call struct {
	*mock.Call
}

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

func (*Commits_BatchRemoveByBlockID_Call) Return added in v0.46.0

func (*Commits_BatchRemoveByBlockID_Call) Run added in v0.46.0

func (*Commits_BatchRemoveByBlockID_Call) RunAndReturn added in v0.46.0

type Commits_BatchStore_Call added in v0.46.0

type Commits_BatchStore_Call struct {
	*mock.Call
}

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

func (*Commits_BatchStore_Call) Return added in v0.46.0

func (*Commits_BatchStore_Call) Run added in v0.46.0

func (*Commits_BatchStore_Call) RunAndReturn added in v0.46.0

type Commits_ByBlockID_Call added in v0.46.0

type Commits_ByBlockID_Call struct {
	*mock.Call
}

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

func (*Commits_ByBlockID_Call) Return added in v0.46.0

func (_c *Commits_ByBlockID_Call) Return(stateCommitment flow.StateCommitment, err error) *Commits_ByBlockID_Call

func (*Commits_ByBlockID_Call) Run added in v0.46.0

func (_c *Commits_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *Commits_ByBlockID_Call

func (*Commits_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *Commits_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (flow.StateCommitment, error)) *Commits_ByBlockID_Call

type Commits_Expecter added in v0.46.0

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

func (*Commits_Expecter) BatchRemoveByBlockID added in v0.46.0

func (_e *Commits_Expecter) BatchRemoveByBlockID(blockID interface{}, batch interface{}) *Commits_BatchRemoveByBlockID_Call

BatchRemoveByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier
  • batch storage.ReaderBatchWriter

func (*Commits_Expecter) BatchStore added in v0.46.0

func (_e *Commits_Expecter) BatchStore(lctx interface{}, blockID interface{}, commit interface{}, batch interface{}) *Commits_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • blockID flow.Identifier
  • commit flow.StateCommitment
  • batch storage.ReaderBatchWriter

func (*Commits_Expecter) ByBlockID added in v0.46.0

func (_e *Commits_Expecter) ByBlockID(blockID interface{}) *Commits_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type ComputationResultUploadStatus added in v0.28.0

type ComputationResultUploadStatus struct {
	mock.Mock
}

ComputationResultUploadStatus is an autogenerated mock type for the ComputationResultUploadStatus type

func NewComputationResultUploadStatus added in v0.28.0

func NewComputationResultUploadStatus(t interface {
	mock.TestingT
	Cleanup(func())
}) *ComputationResultUploadStatus

NewComputationResultUploadStatus creates a new instance of ComputationResultUploadStatus. 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 (*ComputationResultUploadStatus) ByID added in v0.28.0

func (_mock *ComputationResultUploadStatus) ByID(blockID flow.Identifier) (bool, error)

ByID provides a mock function for the type ComputationResultUploadStatus

func (*ComputationResultUploadStatus) EXPECT added in v0.46.0

func (*ComputationResultUploadStatus) GetIDsByUploadStatus added in v0.28.0

func (_mock *ComputationResultUploadStatus) GetIDsByUploadStatus(targetUploadStatus bool) ([]flow.Identifier, error)

GetIDsByUploadStatus provides a mock function for the type ComputationResultUploadStatus

func (*ComputationResultUploadStatus) Remove added in v0.28.0

func (_mock *ComputationResultUploadStatus) Remove(blockID flow.Identifier) error

Remove provides a mock function for the type ComputationResultUploadStatus

func (*ComputationResultUploadStatus) Upsert added in v0.28.0

func (_mock *ComputationResultUploadStatus) Upsert(blockID flow.Identifier, wasUploadCompleted bool) error

Upsert provides a mock function for the type ComputationResultUploadStatus

type ComputationResultUploadStatus_ByID_Call added in v0.46.0

type ComputationResultUploadStatus_ByID_Call struct {
	*mock.Call
}

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

func (*ComputationResultUploadStatus_ByID_Call) Return added in v0.46.0

func (*ComputationResultUploadStatus_ByID_Call) Run added in v0.46.0

func (*ComputationResultUploadStatus_ByID_Call) RunAndReturn added in v0.46.0

type ComputationResultUploadStatus_Expecter added in v0.46.0

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

func (*ComputationResultUploadStatus_Expecter) ByID added in v0.46.0

ByID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ComputationResultUploadStatus_Expecter) GetIDsByUploadStatus added in v0.46.0

func (_e *ComputationResultUploadStatus_Expecter) GetIDsByUploadStatus(targetUploadStatus interface{}) *ComputationResultUploadStatus_GetIDsByUploadStatus_Call

GetIDsByUploadStatus is a helper method to define mock.On call

  • targetUploadStatus bool

func (*ComputationResultUploadStatus_Expecter) Remove added in v0.46.0

Remove is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ComputationResultUploadStatus_Expecter) Upsert added in v0.46.0

func (_e *ComputationResultUploadStatus_Expecter) Upsert(blockID interface{}, wasUploadCompleted interface{}) *ComputationResultUploadStatus_Upsert_Call

Upsert is a helper method to define mock.On call

  • blockID flow.Identifier
  • wasUploadCompleted bool

type ComputationResultUploadStatus_GetIDsByUploadStatus_Call added in v0.46.0

type ComputationResultUploadStatus_GetIDsByUploadStatus_Call struct {
	*mock.Call
}

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

func (*ComputationResultUploadStatus_GetIDsByUploadStatus_Call) Return added in v0.46.0

func (*ComputationResultUploadStatus_GetIDsByUploadStatus_Call) Run added in v0.46.0

func (*ComputationResultUploadStatus_GetIDsByUploadStatus_Call) RunAndReturn added in v0.46.0

type ComputationResultUploadStatus_Remove_Call added in v0.46.0

type ComputationResultUploadStatus_Remove_Call struct {
	*mock.Call
}

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

func (*ComputationResultUploadStatus_Remove_Call) Return added in v0.46.0

func (*ComputationResultUploadStatus_Remove_Call) Run added in v0.46.0

func (*ComputationResultUploadStatus_Remove_Call) RunAndReturn added in v0.46.0

type ComputationResultUploadStatus_Upsert_Call added in v0.46.0

type ComputationResultUploadStatus_Upsert_Call struct {
	*mock.Call
}

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

func (*ComputationResultUploadStatus_Upsert_Call) Return added in v0.46.0

func (*ComputationResultUploadStatus_Upsert_Call) Run added in v0.46.0

func (*ComputationResultUploadStatus_Upsert_Call) RunAndReturn added in v0.46.0

func (_c *ComputationResultUploadStatus_Upsert_Call) RunAndReturn(run func(blockID flow.Identifier, wasUploadCompleted bool) error) *ComputationResultUploadStatus_Upsert_Call

type ConsumerProgress added in v0.15.0

type ConsumerProgress struct {
	mock.Mock
}

ConsumerProgress is an autogenerated mock type for the ConsumerProgress type

func NewConsumerProgress added in v0.26.1

func NewConsumerProgress(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsumerProgress

NewConsumerProgress creates a new instance of ConsumerProgress. 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 (*ConsumerProgress) BatchSetProcessedIndex added in v0.43.0

func (_mock *ConsumerProgress) BatchSetProcessedIndex(processed uint64, batch storage.ReaderBatchWriter) error

BatchSetProcessedIndex provides a mock function for the type ConsumerProgress

func (*ConsumerProgress) EXPECT added in v0.46.0

func (*ConsumerProgress) ProcessedIndex added in v0.15.0

func (_mock *ConsumerProgress) ProcessedIndex() (uint64, error)

ProcessedIndex provides a mock function for the type ConsumerProgress

func (*ConsumerProgress) SetProcessedIndex added in v0.15.0

func (_mock *ConsumerProgress) SetProcessedIndex(processed uint64) error

SetProcessedIndex provides a mock function for the type ConsumerProgress

type ConsumerProgressInitializer added in v0.38.0

type ConsumerProgressInitializer struct {
	mock.Mock
}

ConsumerProgressInitializer is an autogenerated mock type for the ConsumerProgressInitializer type

func NewConsumerProgressInitializer added in v0.38.0

func NewConsumerProgressInitializer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsumerProgressInitializer

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

func (*ConsumerProgressInitializer) Initialize added in v0.38.0

func (_mock *ConsumerProgressInitializer) Initialize(defaultIndex uint64) (storage.ConsumerProgress, error)

Initialize provides a mock function for the type ConsumerProgressInitializer

type ConsumerProgressInitializer_Expecter added in v0.46.0

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

func (*ConsumerProgressInitializer_Expecter) Initialize added in v0.46.0

Initialize is a helper method to define mock.On call

  • defaultIndex uint64

type ConsumerProgressInitializer_Initialize_Call added in v0.46.0

type ConsumerProgressInitializer_Initialize_Call struct {
	*mock.Call
}

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

func (*ConsumerProgressInitializer_Initialize_Call) Return added in v0.46.0

func (*ConsumerProgressInitializer_Initialize_Call) Run added in v0.46.0

func (*ConsumerProgressInitializer_Initialize_Call) RunAndReturn added in v0.46.0

type ConsumerProgress_BatchSetProcessedIndex_Call added in v0.46.0

type ConsumerProgress_BatchSetProcessedIndex_Call struct {
	*mock.Call
}

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

func (*ConsumerProgress_BatchSetProcessedIndex_Call) Return added in v0.46.0

func (*ConsumerProgress_BatchSetProcessedIndex_Call) Run added in v0.46.0

func (*ConsumerProgress_BatchSetProcessedIndex_Call) RunAndReturn added in v0.46.0

type ConsumerProgress_Expecter added in v0.46.0

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

func (*ConsumerProgress_Expecter) BatchSetProcessedIndex added in v0.46.0

func (_e *ConsumerProgress_Expecter) BatchSetProcessedIndex(processed interface{}, batch interface{}) *ConsumerProgress_BatchSetProcessedIndex_Call

BatchSetProcessedIndex is a helper method to define mock.On call

  • processed uint64
  • batch storage.ReaderBatchWriter

func (*ConsumerProgress_Expecter) ProcessedIndex added in v0.46.0

ProcessedIndex is a helper method to define mock.On call

func (*ConsumerProgress_Expecter) SetProcessedIndex added in v0.46.0

func (_e *ConsumerProgress_Expecter) SetProcessedIndex(processed interface{}) *ConsumerProgress_SetProcessedIndex_Call

SetProcessedIndex is a helper method to define mock.On call

  • processed uint64

type ConsumerProgress_ProcessedIndex_Call added in v0.46.0

type ConsumerProgress_ProcessedIndex_Call struct {
	*mock.Call
}

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

func (*ConsumerProgress_ProcessedIndex_Call) Return added in v0.46.0

func (*ConsumerProgress_ProcessedIndex_Call) Run added in v0.46.0

func (*ConsumerProgress_ProcessedIndex_Call) RunAndReturn added in v0.46.0

type ConsumerProgress_SetProcessedIndex_Call added in v0.46.0

type ConsumerProgress_SetProcessedIndex_Call struct {
	*mock.Call
}

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

func (*ConsumerProgress_SetProcessedIndex_Call) Return added in v0.46.0

func (*ConsumerProgress_SetProcessedIndex_Call) Run added in v0.46.0

func (*ConsumerProgress_SetProcessedIndex_Call) RunAndReturn added in v0.46.0

type DB added in v0.38.0

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB added in v0.38.0

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. 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 (*DB) Close added in v0.43.0

func (_mock *DB) Close() error

Close provides a mock function for the type DB

func (*DB) EXPECT added in v0.46.0

func (_m *DB) EXPECT() *DB_Expecter

func (*DB) NewBatch added in v0.38.0

func (_mock *DB) NewBatch() storage.Batch

NewBatch provides a mock function for the type DB

func (*DB) Reader added in v0.38.0

func (_mock *DB) Reader() storage.Reader

Reader provides a mock function for the type DB

func (*DB) WithReaderBatchWriter added in v0.38.0

func (_mock *DB) WithReaderBatchWriter(fn func(storage.ReaderBatchWriter) error) error

WithReaderBatchWriter provides a mock function for the type DB

type DB_Close_Call added in v0.46.0

type DB_Close_Call struct {
	*mock.Call
}

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

func (*DB_Close_Call) Return added in v0.46.0

func (_c *DB_Close_Call) Return(err error) *DB_Close_Call

func (*DB_Close_Call) Run added in v0.46.0

func (_c *DB_Close_Call) Run(run func()) *DB_Close_Call

func (*DB_Close_Call) RunAndReturn added in v0.46.0

func (_c *DB_Close_Call) RunAndReturn(run func() error) *DB_Close_Call

type DB_Expecter added in v0.46.0

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

func (*DB_Expecter) Close added in v0.46.0

func (_e *DB_Expecter) Close() *DB_Close_Call

Close is a helper method to define mock.On call

func (*DB_Expecter) NewBatch added in v0.46.0

func (_e *DB_Expecter) NewBatch() *DB_NewBatch_Call

NewBatch is a helper method to define mock.On call

func (*DB_Expecter) Reader added in v0.46.0

func (_e *DB_Expecter) Reader() *DB_Reader_Call

Reader is a helper method to define mock.On call

func (*DB_Expecter) WithReaderBatchWriter added in v0.46.0

func (_e *DB_Expecter) WithReaderBatchWriter(fn interface{}) *DB_WithReaderBatchWriter_Call

WithReaderBatchWriter is a helper method to define mock.On call

  • fn func(storage.ReaderBatchWriter) error

type DB_NewBatch_Call added in v0.46.0

type DB_NewBatch_Call struct {
	*mock.Call
}

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

func (*DB_NewBatch_Call) Return added in v0.46.0

func (_c *DB_NewBatch_Call) Return(batch storage.Batch) *DB_NewBatch_Call

func (*DB_NewBatch_Call) Run added in v0.46.0

func (_c *DB_NewBatch_Call) Run(run func()) *DB_NewBatch_Call

func (*DB_NewBatch_Call) RunAndReturn added in v0.46.0

func (_c *DB_NewBatch_Call) RunAndReturn(run func() storage.Batch) *DB_NewBatch_Call

type DB_Reader_Call added in v0.46.0

type DB_Reader_Call struct {
	*mock.Call
}

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

func (*DB_Reader_Call) Return added in v0.46.0

func (_c *DB_Reader_Call) Return(reader storage.Reader) *DB_Reader_Call

func (*DB_Reader_Call) Run added in v0.46.0

func (_c *DB_Reader_Call) Run(run func()) *DB_Reader_Call

func (*DB_Reader_Call) RunAndReturn added in v0.46.0

func (_c *DB_Reader_Call) RunAndReturn(run func() storage.Reader) *DB_Reader_Call

type DB_WithReaderBatchWriter_Call added in v0.46.0

type DB_WithReaderBatchWriter_Call struct {
	*mock.Call
}

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

func (*DB_WithReaderBatchWriter_Call) Return added in v0.46.0

func (*DB_WithReaderBatchWriter_Call) Run added in v0.46.0

func (*DB_WithReaderBatchWriter_Call) RunAndReturn added in v0.46.0

type DKGState added in v0.23.9

type DKGState struct {
	mock.Mock
}

DKGState is an autogenerated mock type for the DKGState type

func NewDKGState added in v0.26.1

func NewDKGState(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKGState

NewDKGState creates a new instance of DKGState. 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 (*DKGState) CommitMyBeaconPrivateKey added in v0.39.0

func (_mock *DKGState) CommitMyBeaconPrivateKey(epochCounter uint64, commit *flow.EpochCommit) error

CommitMyBeaconPrivateKey provides a mock function for the type DKGState

func (*DKGState) EXPECT added in v0.46.0

func (_m *DKGState) EXPECT() *DKGState_Expecter

func (*DKGState) GetDKGState added in v0.39.0

func (_mock *DKGState) GetDKGState(epochCounter uint64) (flow.DKGState, error)

GetDKGState provides a mock function for the type DKGState

func (*DKGState) InsertMyBeaconPrivateKey added in v0.23.9

func (_mock *DKGState) InsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey) error

InsertMyBeaconPrivateKey provides a mock function for the type DKGState

func (*DKGState) IsDKGStarted added in v0.39.0

func (_mock *DKGState) IsDKGStarted(epochCounter uint64) (bool, error)

IsDKGStarted provides a mock function for the type DKGState

func (*DKGState) RetrieveMyBeaconPrivateKey added in v0.23.9

func (_mock *DKGState) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function for the type DKGState

func (*DKGState) SetDKGState added in v0.39.0

func (_mock *DKGState) SetDKGState(epochCounter uint64, newState flow.DKGState) error

SetDKGState provides a mock function for the type DKGState

func (*DKGState) UnsafeRetrieveMyBeaconPrivateKey added in v0.39.0

func (_mock *DKGState) UnsafeRetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)

UnsafeRetrieveMyBeaconPrivateKey provides a mock function for the type DKGState

type DKGStateReader added in v0.39.0

type DKGStateReader struct {
	mock.Mock
}

DKGStateReader is an autogenerated mock type for the DKGStateReader type

func NewDKGStateReader added in v0.39.0

func NewDKGStateReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKGStateReader

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

func (*DKGStateReader) GetDKGState added in v0.39.0

func (_mock *DKGStateReader) GetDKGState(epochCounter uint64) (flow.DKGState, error)

GetDKGState provides a mock function for the type DKGStateReader

func (*DKGStateReader) IsDKGStarted added in v0.39.0

func (_mock *DKGStateReader) IsDKGStarted(epochCounter uint64) (bool, error)

IsDKGStarted provides a mock function for the type DKGStateReader

func (*DKGStateReader) RetrieveMyBeaconPrivateKey added in v0.39.0

func (_mock *DKGStateReader) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function for the type DKGStateReader

func (*DKGStateReader) UnsafeRetrieveMyBeaconPrivateKey added in v0.39.0

func (_mock *DKGStateReader) UnsafeRetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)

UnsafeRetrieveMyBeaconPrivateKey provides a mock function for the type DKGStateReader

type DKGStateReader_Expecter added in v0.46.0

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

func (*DKGStateReader_Expecter) GetDKGState added in v0.46.0

func (_e *DKGStateReader_Expecter) GetDKGState(epochCounter interface{}) *DKGStateReader_GetDKGState_Call

GetDKGState is a helper method to define mock.On call

  • epochCounter uint64

func (*DKGStateReader_Expecter) IsDKGStarted added in v0.46.0

func (_e *DKGStateReader_Expecter) IsDKGStarted(epochCounter interface{}) *DKGStateReader_IsDKGStarted_Call

IsDKGStarted is a helper method to define mock.On call

  • epochCounter uint64

func (*DKGStateReader_Expecter) RetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *DKGStateReader_Expecter) RetrieveMyBeaconPrivateKey(epochCounter interface{}) *DKGStateReader_RetrieveMyBeaconPrivateKey_Call

RetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

func (*DKGStateReader_Expecter) UnsafeRetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *DKGStateReader_Expecter) UnsafeRetrieveMyBeaconPrivateKey(epochCounter interface{}) *DKGStateReader_UnsafeRetrieveMyBeaconPrivateKey_Call

UnsafeRetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

type DKGStateReader_GetDKGState_Call added in v0.46.0

type DKGStateReader_GetDKGState_Call struct {
	*mock.Call
}

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

func (*DKGStateReader_GetDKGState_Call) Return added in v0.46.0

func (*DKGStateReader_GetDKGState_Call) Run added in v0.46.0

func (*DKGStateReader_GetDKGState_Call) RunAndReturn added in v0.46.0

func (_c *DKGStateReader_GetDKGState_Call) RunAndReturn(run func(epochCounter uint64) (flow.DKGState, error)) *DKGStateReader_GetDKGState_Call

type DKGStateReader_IsDKGStarted_Call added in v0.46.0

type DKGStateReader_IsDKGStarted_Call struct {
	*mock.Call
}

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

func (*DKGStateReader_IsDKGStarted_Call) Return added in v0.46.0

func (*DKGStateReader_IsDKGStarted_Call) Run added in v0.46.0

func (*DKGStateReader_IsDKGStarted_Call) RunAndReturn added in v0.46.0

func (_c *DKGStateReader_IsDKGStarted_Call) RunAndReturn(run func(epochCounter uint64) (bool, error)) *DKGStateReader_IsDKGStarted_Call

type DKGStateReader_RetrieveMyBeaconPrivateKey_Call added in v0.46.0

type DKGStateReader_RetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*DKGStateReader_RetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*DKGStateReader_RetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*DKGStateReader_RetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type DKGStateReader_UnsafeRetrieveMyBeaconPrivateKey_Call added in v0.46.0

type DKGStateReader_UnsafeRetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*DKGStateReader_UnsafeRetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*DKGStateReader_UnsafeRetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*DKGStateReader_UnsafeRetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type DKGState_CommitMyBeaconPrivateKey_Call added in v0.46.0

type DKGState_CommitMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*DKGState_CommitMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*DKGState_CommitMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*DKGState_CommitMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type DKGState_Expecter added in v0.46.0

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

func (*DKGState_Expecter) CommitMyBeaconPrivateKey added in v0.46.0

func (_e *DKGState_Expecter) CommitMyBeaconPrivateKey(epochCounter interface{}, commit interface{}) *DKGState_CommitMyBeaconPrivateKey_Call

CommitMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64
  • commit *flow.EpochCommit

func (*DKGState_Expecter) GetDKGState added in v0.46.0

func (_e *DKGState_Expecter) GetDKGState(epochCounter interface{}) *DKGState_GetDKGState_Call

GetDKGState is a helper method to define mock.On call

  • epochCounter uint64

func (*DKGState_Expecter) InsertMyBeaconPrivateKey added in v0.46.0

func (_e *DKGState_Expecter) InsertMyBeaconPrivateKey(epochCounter interface{}, key interface{}) *DKGState_InsertMyBeaconPrivateKey_Call

InsertMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64
  • key crypto.PrivateKey

func (*DKGState_Expecter) IsDKGStarted added in v0.46.0

func (_e *DKGState_Expecter) IsDKGStarted(epochCounter interface{}) *DKGState_IsDKGStarted_Call

IsDKGStarted is a helper method to define mock.On call

  • epochCounter uint64

func (*DKGState_Expecter) RetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *DKGState_Expecter) RetrieveMyBeaconPrivateKey(epochCounter interface{}) *DKGState_RetrieveMyBeaconPrivateKey_Call

RetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

func (*DKGState_Expecter) SetDKGState added in v0.46.0

func (_e *DKGState_Expecter) SetDKGState(epochCounter interface{}, newState interface{}) *DKGState_SetDKGState_Call

SetDKGState is a helper method to define mock.On call

  • epochCounter uint64
  • newState flow.DKGState

func (*DKGState_Expecter) UnsafeRetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *DKGState_Expecter) UnsafeRetrieveMyBeaconPrivateKey(epochCounter interface{}) *DKGState_UnsafeRetrieveMyBeaconPrivateKey_Call

UnsafeRetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

type DKGState_GetDKGState_Call added in v0.46.0

type DKGState_GetDKGState_Call struct {
	*mock.Call
}

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

func (*DKGState_GetDKGState_Call) Return added in v0.46.0

func (*DKGState_GetDKGState_Call) Run added in v0.46.0

func (_c *DKGState_GetDKGState_Call) Run(run func(epochCounter uint64)) *DKGState_GetDKGState_Call

func (*DKGState_GetDKGState_Call) RunAndReturn added in v0.46.0

func (_c *DKGState_GetDKGState_Call) RunAndReturn(run func(epochCounter uint64) (flow.DKGState, error)) *DKGState_GetDKGState_Call

type DKGState_InsertMyBeaconPrivateKey_Call added in v0.46.0

type DKGState_InsertMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*DKGState_InsertMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*DKGState_InsertMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*DKGState_InsertMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type DKGState_IsDKGStarted_Call added in v0.46.0

type DKGState_IsDKGStarted_Call struct {
	*mock.Call
}

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

func (*DKGState_IsDKGStarted_Call) Return added in v0.46.0

func (*DKGState_IsDKGStarted_Call) Run added in v0.46.0

func (_c *DKGState_IsDKGStarted_Call) Run(run func(epochCounter uint64)) *DKGState_IsDKGStarted_Call

func (*DKGState_IsDKGStarted_Call) RunAndReturn added in v0.46.0

func (_c *DKGState_IsDKGStarted_Call) RunAndReturn(run func(epochCounter uint64) (bool, error)) *DKGState_IsDKGStarted_Call

type DKGState_RetrieveMyBeaconPrivateKey_Call added in v0.46.0

type DKGState_RetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*DKGState_RetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*DKGState_RetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*DKGState_RetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type DKGState_SetDKGState_Call added in v0.46.0

type DKGState_SetDKGState_Call struct {
	*mock.Call
}

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

func (*DKGState_SetDKGState_Call) Return added in v0.46.0

func (*DKGState_SetDKGState_Call) Run added in v0.46.0

func (_c *DKGState_SetDKGState_Call) Run(run func(epochCounter uint64, newState flow.DKGState)) *DKGState_SetDKGState_Call

func (*DKGState_SetDKGState_Call) RunAndReturn added in v0.46.0

func (_c *DKGState_SetDKGState_Call) RunAndReturn(run func(epochCounter uint64, newState flow.DKGState) error) *DKGState_SetDKGState_Call

type DKGState_UnsafeRetrieveMyBeaconPrivateKey_Call added in v0.46.0

type DKGState_UnsafeRetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*DKGState_UnsafeRetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*DKGState_UnsafeRetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*DKGState_UnsafeRetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type EpochCommits

type EpochCommits struct {
	mock.Mock
}

EpochCommits is an autogenerated mock type for the EpochCommits type

func NewEpochCommits added in v0.26.1

func NewEpochCommits(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochCommits

NewEpochCommits creates a new instance of EpochCommits. 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 (*EpochCommits) BatchStore added in v0.43.0

func (_mock *EpochCommits) BatchStore(rw storage.ReaderBatchWriter, commit *flow.EpochCommit) error

BatchStore provides a mock function for the type EpochCommits

func (*EpochCommits) ByID

func (_mock *EpochCommits) ByID(identifier flow.Identifier) (*flow.EpochCommit, error)

ByID provides a mock function for the type EpochCommits

func (*EpochCommits) EXPECT added in v0.46.0

func (_m *EpochCommits) EXPECT() *EpochCommits_Expecter

type EpochCommits_BatchStore_Call added in v0.46.0

type EpochCommits_BatchStore_Call struct {
	*mock.Call
}

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

func (*EpochCommits_BatchStore_Call) Return added in v0.46.0

func (*EpochCommits_BatchStore_Call) Run added in v0.46.0

func (*EpochCommits_BatchStore_Call) RunAndReturn added in v0.46.0

type EpochCommits_ByID_Call added in v0.46.0

type EpochCommits_ByID_Call struct {
	*mock.Call
}

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

func (*EpochCommits_ByID_Call) Return added in v0.46.0

func (_c *EpochCommits_ByID_Call) Return(epochCommit *flow.EpochCommit, err error) *EpochCommits_ByID_Call

func (*EpochCommits_ByID_Call) Run added in v0.46.0

func (_c *EpochCommits_ByID_Call) Run(run func(identifier flow.Identifier)) *EpochCommits_ByID_Call

func (*EpochCommits_ByID_Call) RunAndReturn added in v0.46.0

func (_c *EpochCommits_ByID_Call) RunAndReturn(run func(identifier flow.Identifier) (*flow.EpochCommit, error)) *EpochCommits_ByID_Call

type EpochCommits_Expecter added in v0.46.0

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

func (*EpochCommits_Expecter) BatchStore added in v0.46.0

func (_e *EpochCommits_Expecter) BatchStore(rw interface{}, commit interface{}) *EpochCommits_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • rw storage.ReaderBatchWriter
  • commit *flow.EpochCommit

func (*EpochCommits_Expecter) ByID added in v0.46.0

func (_e *EpochCommits_Expecter) ByID(identifier interface{}) *EpochCommits_ByID_Call

ByID is a helper method to define mock.On call

  • identifier flow.Identifier

type EpochProtocolStateEntries added in v0.33.30

type EpochProtocolStateEntries struct {
	mock.Mock
}

EpochProtocolStateEntries is an autogenerated mock type for the EpochProtocolStateEntries type

func NewEpochProtocolStateEntries added in v0.33.30

func NewEpochProtocolStateEntries(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochProtocolStateEntries

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

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

BatchIndex provides a mock function for the type EpochProtocolStateEntries

func (*EpochProtocolStateEntries) BatchStore added in v0.43.0

func (_mock *EpochProtocolStateEntries) BatchStore(w storage.Writer, epochProtocolStateID flow.Identifier, epochProtocolStateEntry *flow.MinEpochStateEntry) error

BatchStore provides a mock function for the type EpochProtocolStateEntries

func (*EpochProtocolStateEntries) ByBlockID added in v0.33.30

ByBlockID provides a mock function for the type EpochProtocolStateEntries

func (*EpochProtocolStateEntries) ByID added in v0.33.30

ByID provides a mock function for the type EpochProtocolStateEntries

func (*EpochProtocolStateEntries) EXPECT added in v0.46.0

type EpochProtocolStateEntries_BatchIndex_Call added in v0.46.0

type EpochProtocolStateEntries_BatchIndex_Call struct {
	*mock.Call
}

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

func (*EpochProtocolStateEntries_BatchIndex_Call) Return added in v0.46.0

func (*EpochProtocolStateEntries_BatchIndex_Call) Run added in v0.46.0

func (*EpochProtocolStateEntries_BatchIndex_Call) RunAndReturn added in v0.46.0

type EpochProtocolStateEntries_BatchStore_Call added in v0.46.0

type EpochProtocolStateEntries_BatchStore_Call struct {
	*mock.Call
}

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

func (*EpochProtocolStateEntries_BatchStore_Call) Return added in v0.46.0

func (*EpochProtocolStateEntries_BatchStore_Call) Run added in v0.46.0

func (*EpochProtocolStateEntries_BatchStore_Call) RunAndReturn added in v0.46.0

func (_c *EpochProtocolStateEntries_BatchStore_Call) RunAndReturn(run func(w storage.Writer, epochProtocolStateID flow.Identifier, epochProtocolStateEntry *flow.MinEpochStateEntry) error) *EpochProtocolStateEntries_BatchStore_Call

type EpochProtocolStateEntries_ByBlockID_Call added in v0.46.0

type EpochProtocolStateEntries_ByBlockID_Call struct {
	*mock.Call
}

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

func (*EpochProtocolStateEntries_ByBlockID_Call) Return added in v0.46.0

func (*EpochProtocolStateEntries_ByBlockID_Call) Run added in v0.46.0

func (*EpochProtocolStateEntries_ByBlockID_Call) RunAndReturn added in v0.46.0

type EpochProtocolStateEntries_ByID_Call added in v0.46.0

type EpochProtocolStateEntries_ByID_Call struct {
	*mock.Call
}

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

func (*EpochProtocolStateEntries_ByID_Call) Return added in v0.46.0

func (*EpochProtocolStateEntries_ByID_Call) Run added in v0.46.0

func (*EpochProtocolStateEntries_ByID_Call) RunAndReturn added in v0.46.0

type EpochProtocolStateEntries_Expecter added in v0.46.0

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

func (*EpochProtocolStateEntries_Expecter) BatchIndex added in v0.46.0

func (_e *EpochProtocolStateEntries_Expecter) BatchIndex(lctx interface{}, rw interface{}, blockID interface{}, epochProtocolStateID interface{}) *EpochProtocolStateEntries_BatchIndex_Call

BatchIndex is a helper method to define mock.On call

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

func (*EpochProtocolStateEntries_Expecter) BatchStore added in v0.46.0

func (_e *EpochProtocolStateEntries_Expecter) BatchStore(w interface{}, epochProtocolStateID interface{}, epochProtocolStateEntry interface{}) *EpochProtocolStateEntries_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • w storage.Writer
  • epochProtocolStateID flow.Identifier
  • epochProtocolStateEntry *flow.MinEpochStateEntry

func (*EpochProtocolStateEntries_Expecter) ByBlockID added in v0.46.0

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*EpochProtocolStateEntries_Expecter) ByID added in v0.46.0

ByID is a helper method to define mock.On call

  • id flow.Identifier

type EpochRecoveryMyBeaconKey added in v0.39.0

type EpochRecoveryMyBeaconKey struct {
	mock.Mock
}

EpochRecoveryMyBeaconKey is an autogenerated mock type for the EpochRecoveryMyBeaconKey type

func NewEpochRecoveryMyBeaconKey added in v0.39.0

func NewEpochRecoveryMyBeaconKey(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochRecoveryMyBeaconKey

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

func (*EpochRecoveryMyBeaconKey) GetDKGState added in v0.39.0

func (_mock *EpochRecoveryMyBeaconKey) GetDKGState(epochCounter uint64) (flow.DKGState, error)

GetDKGState provides a mock function for the type EpochRecoveryMyBeaconKey

func (*EpochRecoveryMyBeaconKey) IsDKGStarted added in v0.39.0

func (_mock *EpochRecoveryMyBeaconKey) IsDKGStarted(epochCounter uint64) (bool, error)

IsDKGStarted provides a mock function for the type EpochRecoveryMyBeaconKey

func (*EpochRecoveryMyBeaconKey) RetrieveMyBeaconPrivateKey added in v0.39.0

func (_mock *EpochRecoveryMyBeaconKey) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function for the type EpochRecoveryMyBeaconKey

func (*EpochRecoveryMyBeaconKey) UnsafeRetrieveMyBeaconPrivateKey added in v0.39.0

func (_mock *EpochRecoveryMyBeaconKey) UnsafeRetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)

UnsafeRetrieveMyBeaconPrivateKey provides a mock function for the type EpochRecoveryMyBeaconKey

func (*EpochRecoveryMyBeaconKey) UpsertMyBeaconPrivateKey added in v0.39.0

func (_mock *EpochRecoveryMyBeaconKey) UpsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey, commit *flow.EpochCommit) error

UpsertMyBeaconPrivateKey provides a mock function for the type EpochRecoveryMyBeaconKey

type EpochRecoveryMyBeaconKey_Expecter added in v0.46.0

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

func (*EpochRecoveryMyBeaconKey_Expecter) GetDKGState added in v0.46.0

func (_e *EpochRecoveryMyBeaconKey_Expecter) GetDKGState(epochCounter interface{}) *EpochRecoveryMyBeaconKey_GetDKGState_Call

GetDKGState is a helper method to define mock.On call

  • epochCounter uint64

func (*EpochRecoveryMyBeaconKey_Expecter) IsDKGStarted added in v0.46.0

func (_e *EpochRecoveryMyBeaconKey_Expecter) IsDKGStarted(epochCounter interface{}) *EpochRecoveryMyBeaconKey_IsDKGStarted_Call

IsDKGStarted is a helper method to define mock.On call

  • epochCounter uint64

func (*EpochRecoveryMyBeaconKey_Expecter) RetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *EpochRecoveryMyBeaconKey_Expecter) RetrieveMyBeaconPrivateKey(epochCounter interface{}) *EpochRecoveryMyBeaconKey_RetrieveMyBeaconPrivateKey_Call

RetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

func (*EpochRecoveryMyBeaconKey_Expecter) UnsafeRetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *EpochRecoveryMyBeaconKey_Expecter) UnsafeRetrieveMyBeaconPrivateKey(epochCounter interface{}) *EpochRecoveryMyBeaconKey_UnsafeRetrieveMyBeaconPrivateKey_Call

UnsafeRetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

func (*EpochRecoveryMyBeaconKey_Expecter) UpsertMyBeaconPrivateKey added in v0.46.0

func (_e *EpochRecoveryMyBeaconKey_Expecter) UpsertMyBeaconPrivateKey(epochCounter interface{}, key interface{}, commit interface{}) *EpochRecoveryMyBeaconKey_UpsertMyBeaconPrivateKey_Call

UpsertMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64
  • key crypto.PrivateKey
  • commit *flow.EpochCommit

type EpochRecoveryMyBeaconKey_GetDKGState_Call added in v0.46.0

type EpochRecoveryMyBeaconKey_GetDKGState_Call struct {
	*mock.Call
}

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

func (*EpochRecoveryMyBeaconKey_GetDKGState_Call) Return added in v0.46.0

func (*EpochRecoveryMyBeaconKey_GetDKGState_Call) Run added in v0.46.0

func (*EpochRecoveryMyBeaconKey_GetDKGState_Call) RunAndReturn added in v0.46.0

type EpochRecoveryMyBeaconKey_IsDKGStarted_Call added in v0.46.0

type EpochRecoveryMyBeaconKey_IsDKGStarted_Call struct {
	*mock.Call
}

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

func (*EpochRecoveryMyBeaconKey_IsDKGStarted_Call) Return added in v0.46.0

func (*EpochRecoveryMyBeaconKey_IsDKGStarted_Call) Run added in v0.46.0

func (*EpochRecoveryMyBeaconKey_IsDKGStarted_Call) RunAndReturn added in v0.46.0

type EpochRecoveryMyBeaconKey_RetrieveMyBeaconPrivateKey_Call added in v0.46.0

type EpochRecoveryMyBeaconKey_RetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*EpochRecoveryMyBeaconKey_RetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*EpochRecoveryMyBeaconKey_RetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*EpochRecoveryMyBeaconKey_RetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type EpochRecoveryMyBeaconKey_UnsafeRetrieveMyBeaconPrivateKey_Call added in v0.46.0

type EpochRecoveryMyBeaconKey_UnsafeRetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*EpochRecoveryMyBeaconKey_UnsafeRetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*EpochRecoveryMyBeaconKey_UnsafeRetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*EpochRecoveryMyBeaconKey_UnsafeRetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type EpochRecoveryMyBeaconKey_UpsertMyBeaconPrivateKey_Call added in v0.46.0

type EpochRecoveryMyBeaconKey_UpsertMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*EpochRecoveryMyBeaconKey_UpsertMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*EpochRecoveryMyBeaconKey_UpsertMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*EpochRecoveryMyBeaconKey_UpsertMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type EpochSetups

type EpochSetups struct {
	mock.Mock
}

EpochSetups is an autogenerated mock type for the EpochSetups type

func NewEpochSetups added in v0.26.1

func NewEpochSetups(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochSetups

NewEpochSetups creates a new instance of EpochSetups. 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 (*EpochSetups) BatchStore added in v0.43.0

func (_mock *EpochSetups) BatchStore(rw storage.ReaderBatchWriter, setup *flow.EpochSetup) error

BatchStore provides a mock function for the type EpochSetups

func (*EpochSetups) ByID

func (_mock *EpochSetups) ByID(identifier flow.Identifier) (*flow.EpochSetup, error)

ByID provides a mock function for the type EpochSetups

func (*EpochSetups) EXPECT added in v0.46.0

func (_m *EpochSetups) EXPECT() *EpochSetups_Expecter

type EpochSetups_BatchStore_Call added in v0.46.0

type EpochSetups_BatchStore_Call struct {
	*mock.Call
}

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

func (*EpochSetups_BatchStore_Call) Return added in v0.46.0

func (*EpochSetups_BatchStore_Call) Run added in v0.46.0

func (*EpochSetups_BatchStore_Call) RunAndReturn added in v0.46.0

type EpochSetups_ByID_Call added in v0.46.0

type EpochSetups_ByID_Call struct {
	*mock.Call
}

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

func (*EpochSetups_ByID_Call) Return added in v0.46.0

func (_c *EpochSetups_ByID_Call) Return(epochSetup *flow.EpochSetup, err error) *EpochSetups_ByID_Call

func (*EpochSetups_ByID_Call) Run added in v0.46.0

func (_c *EpochSetups_ByID_Call) Run(run func(identifier flow.Identifier)) *EpochSetups_ByID_Call

func (*EpochSetups_ByID_Call) RunAndReturn added in v0.46.0

func (_c *EpochSetups_ByID_Call) RunAndReturn(run func(identifier flow.Identifier) (*flow.EpochSetup, error)) *EpochSetups_ByID_Call

type EpochSetups_Expecter added in v0.46.0

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

func (*EpochSetups_Expecter) BatchStore added in v0.46.0

func (_e *EpochSetups_Expecter) BatchStore(rw interface{}, setup interface{}) *EpochSetups_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • rw storage.ReaderBatchWriter
  • setup *flow.EpochSetup

func (*EpochSetups_Expecter) ByID added in v0.46.0

func (_e *EpochSetups_Expecter) ByID(identifier interface{}) *EpochSetups_ByID_Call

ByID is a helper method to define mock.On call

  • identifier flow.Identifier

type Events

type Events struct {
	mock.Mock
}

Events is an autogenerated mock type for the Events type

func NewEvents added in v0.26.1

func NewEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *Events

NewEvents creates a new instance of Events. 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 (*Events) BatchRemoveByBlockID added in v0.30.0

func (_mock *Events) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function for the type Events

func (*Events) BatchStore added in v0.15.0

func (_mock *Events) BatchStore(lctx lockctx.Proof, blockID flow.Identifier, events []flow.EventsList, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function for the type Events

func (*Events) ByBlockID

func (_mock *Events) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)

ByBlockID provides a mock function for the type Events

func (*Events) ByBlockIDEventType

func (_mock *Events) ByBlockIDEventType(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)

ByBlockIDEventType provides a mock function for the type Events

func (*Events) ByBlockIDTransactionID

func (_mock *Events) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)

ByBlockIDTransactionID provides a mock function for the type Events

func (*Events) ByBlockIDTransactionIndex added in v0.24.8

func (_mock *Events) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) ([]flow.Event, error)

ByBlockIDTransactionIndex provides a mock function for the type Events

func (*Events) EXPECT added in v0.46.0

func (_m *Events) EXPECT() *Events_Expecter

type EventsReader added in v0.41.0

type EventsReader struct {
	mock.Mock
}

EventsReader is an autogenerated mock type for the EventsReader type

func NewEventsReader added in v0.41.0

func NewEventsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventsReader

NewEventsReader creates a new instance of EventsReader. 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 (*EventsReader) ByBlockID added in v0.41.0

func (_mock *EventsReader) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)

ByBlockID provides a mock function for the type EventsReader

func (*EventsReader) ByBlockIDEventType added in v0.41.0

func (_mock *EventsReader) ByBlockIDEventType(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)

ByBlockIDEventType provides a mock function for the type EventsReader

func (*EventsReader) ByBlockIDTransactionID added in v0.41.0

func (_mock *EventsReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)

ByBlockIDTransactionID provides a mock function for the type EventsReader

func (*EventsReader) ByBlockIDTransactionIndex added in v0.41.0

func (_mock *EventsReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) ([]flow.Event, error)

ByBlockIDTransactionIndex provides a mock function for the type EventsReader

func (*EventsReader) EXPECT added in v0.46.0

func (_m *EventsReader) EXPECT() *EventsReader_Expecter

type EventsReader_ByBlockIDEventType_Call added in v0.46.0

type EventsReader_ByBlockIDEventType_Call struct {
	*mock.Call
}

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

func (*EventsReader_ByBlockIDEventType_Call) Return added in v0.46.0

func (*EventsReader_ByBlockIDEventType_Call) Run added in v0.46.0

func (*EventsReader_ByBlockIDEventType_Call) RunAndReturn added in v0.46.0

type EventsReader_ByBlockIDTransactionID_Call added in v0.46.0

type EventsReader_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*EventsReader_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*EventsReader_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*EventsReader_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type EventsReader_ByBlockIDTransactionIndex_Call added in v0.46.0

type EventsReader_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*EventsReader_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*EventsReader_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*EventsReader_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type EventsReader_ByBlockID_Call added in v0.46.0

type EventsReader_ByBlockID_Call struct {
	*mock.Call
}

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

func (*EventsReader_ByBlockID_Call) Return added in v0.46.0

func (*EventsReader_ByBlockID_Call) Run added in v0.46.0

func (*EventsReader_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *EventsReader_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) ([]flow.Event, error)) *EventsReader_ByBlockID_Call

type EventsReader_Expecter added in v0.46.0

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

func (*EventsReader_Expecter) ByBlockID added in v0.46.0

func (_e *EventsReader_Expecter) ByBlockID(blockID interface{}) *EventsReader_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*EventsReader_Expecter) ByBlockIDEventType added in v0.46.0

func (_e *EventsReader_Expecter) ByBlockIDEventType(blockID interface{}, eventType interface{}) *EventsReader_ByBlockIDEventType_Call

ByBlockIDEventType is a helper method to define mock.On call

  • blockID flow.Identifier
  • eventType flow.EventType

func (*EventsReader_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *EventsReader_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *EventsReader_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*EventsReader_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *EventsReader_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *EventsReader_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

type Events_BatchRemoveByBlockID_Call added in v0.46.0

type Events_BatchRemoveByBlockID_Call struct {
	*mock.Call
}

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

func (*Events_BatchRemoveByBlockID_Call) Return added in v0.46.0

func (*Events_BatchRemoveByBlockID_Call) Run added in v0.46.0

func (*Events_BatchRemoveByBlockID_Call) RunAndReturn added in v0.46.0

type Events_BatchStore_Call added in v0.46.0

type Events_BatchStore_Call struct {
	*mock.Call
}

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

func (*Events_BatchStore_Call) Return added in v0.46.0

func (*Events_BatchStore_Call) Run added in v0.46.0

func (*Events_BatchStore_Call) RunAndReturn added in v0.46.0

func (_c *Events_BatchStore_Call) RunAndReturn(run func(lctx lockctx.Proof, blockID flow.Identifier, events []flow.EventsList, batch storage.ReaderBatchWriter) error) *Events_BatchStore_Call

type Events_ByBlockIDEventType_Call added in v0.46.0

type Events_ByBlockIDEventType_Call struct {
	*mock.Call
}

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

func (*Events_ByBlockIDEventType_Call) Return added in v0.46.0

func (*Events_ByBlockIDEventType_Call) Run added in v0.46.0

func (*Events_ByBlockIDEventType_Call) RunAndReturn added in v0.46.0

func (_c *Events_ByBlockIDEventType_Call) RunAndReturn(run func(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)) *Events_ByBlockIDEventType_Call

type Events_ByBlockIDTransactionID_Call added in v0.46.0

type Events_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*Events_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*Events_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*Events_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

func (_c *Events_ByBlockIDTransactionID_Call) RunAndReturn(run func(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)) *Events_ByBlockIDTransactionID_Call

type Events_ByBlockIDTransactionIndex_Call added in v0.46.0

type Events_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*Events_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*Events_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*Events_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type Events_ByBlockID_Call added in v0.46.0

type Events_ByBlockID_Call struct {
	*mock.Call
}

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

func (*Events_ByBlockID_Call) Return added in v0.46.0

func (_c *Events_ByBlockID_Call) Return(events []flow.Event, err error) *Events_ByBlockID_Call

func (*Events_ByBlockID_Call) Run added in v0.46.0

func (_c *Events_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *Events_ByBlockID_Call

func (*Events_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *Events_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) ([]flow.Event, error)) *Events_ByBlockID_Call

type Events_Expecter added in v0.46.0

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

func (*Events_Expecter) BatchRemoveByBlockID added in v0.46.0

func (_e *Events_Expecter) BatchRemoveByBlockID(blockID interface{}, batch interface{}) *Events_BatchRemoveByBlockID_Call

BatchRemoveByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier
  • batch storage.ReaderBatchWriter

func (*Events_Expecter) BatchStore added in v0.46.0

func (_e *Events_Expecter) BatchStore(lctx interface{}, blockID interface{}, events interface{}, batch interface{}) *Events_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • blockID flow.Identifier
  • events []flow.EventsList
  • batch storage.ReaderBatchWriter

func (*Events_Expecter) ByBlockID added in v0.46.0

func (_e *Events_Expecter) ByBlockID(blockID interface{}) *Events_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Events_Expecter) ByBlockIDEventType added in v0.46.0

func (_e *Events_Expecter) ByBlockIDEventType(blockID interface{}, eventType interface{}) *Events_ByBlockIDEventType_Call

ByBlockIDEventType is a helper method to define mock.On call

  • blockID flow.Identifier
  • eventType flow.EventType

func (*Events_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *Events_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *Events_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*Events_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *Events_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *Events_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

type ExecutionForkEvidence added in v0.43.0

type ExecutionForkEvidence struct {
	mock.Mock
}

ExecutionForkEvidence is an autogenerated mock type for the ExecutionForkEvidence type

func NewExecutionForkEvidence added in v0.43.0

func NewExecutionForkEvidence(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionForkEvidence

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

func (*ExecutionForkEvidence) Retrieve added in v0.43.0

func (_mock *ExecutionForkEvidence) Retrieve() ([]*flow.IncorporatedResultSeal, error)

Retrieve provides a mock function for the type ExecutionForkEvidence

func (*ExecutionForkEvidence) StoreIfNotExists added in v0.43.0

func (_mock *ExecutionForkEvidence) StoreIfNotExists(lctx lockctx.Proof, conflictingSeals []*flow.IncorporatedResultSeal) error

StoreIfNotExists provides a mock function for the type ExecutionForkEvidence

type ExecutionForkEvidence_Expecter added in v0.46.0

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

func (*ExecutionForkEvidence_Expecter) Retrieve added in v0.46.0

Retrieve is a helper method to define mock.On call

func (*ExecutionForkEvidence_Expecter) StoreIfNotExists added in v0.46.0

func (_e *ExecutionForkEvidence_Expecter) StoreIfNotExists(lctx interface{}, conflictingSeals interface{}) *ExecutionForkEvidence_StoreIfNotExists_Call

StoreIfNotExists is a helper method to define mock.On call

  • lctx lockctx.Proof
  • conflictingSeals []*flow.IncorporatedResultSeal

type ExecutionForkEvidence_Retrieve_Call added in v0.46.0

type ExecutionForkEvidence_Retrieve_Call struct {
	*mock.Call
}

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

func (*ExecutionForkEvidence_Retrieve_Call) Return added in v0.46.0

func (*ExecutionForkEvidence_Retrieve_Call) Run added in v0.46.0

func (*ExecutionForkEvidence_Retrieve_Call) RunAndReturn added in v0.46.0

type ExecutionForkEvidence_StoreIfNotExists_Call added in v0.46.0

type ExecutionForkEvidence_StoreIfNotExists_Call struct {
	*mock.Call
}

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

func (*ExecutionForkEvidence_StoreIfNotExists_Call) Return added in v0.46.0

func (*ExecutionForkEvidence_StoreIfNotExists_Call) Run added in v0.46.0

func (*ExecutionForkEvidence_StoreIfNotExists_Call) RunAndReturn added in v0.46.0

type ExecutionReceipts

type ExecutionReceipts struct {
	mock.Mock
}

ExecutionReceipts is an autogenerated mock type for the ExecutionReceipts type

func NewExecutionReceipts added in v0.26.1

func NewExecutionReceipts(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionReceipts

NewExecutionReceipts creates a new instance of ExecutionReceipts. 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 (*ExecutionReceipts) BatchStore added in v0.15.1

func (_mock *ExecutionReceipts) BatchStore(receipt *flow.ExecutionReceipt, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function for the type ExecutionReceipts

func (*ExecutionReceipts) ByBlockID

func (_mock *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (flow.ExecutionReceiptList, error)

ByBlockID provides a mock function for the type ExecutionReceipts

func (*ExecutionReceipts) ByID

func (_mock *ExecutionReceipts) ByID(receiptID flow.Identifier) (*flow.ExecutionReceipt, error)

ByID provides a mock function for the type ExecutionReceipts

func (*ExecutionReceipts) EXPECT added in v0.46.0

func (*ExecutionReceipts) Store

func (_mock *ExecutionReceipts) Store(receipt *flow.ExecutionReceipt) error

Store provides a mock function for the type ExecutionReceipts

type ExecutionReceipts_BatchStore_Call added in v0.46.0

type ExecutionReceipts_BatchStore_Call struct {
	*mock.Call
}

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

func (*ExecutionReceipts_BatchStore_Call) Return added in v0.46.0

func (*ExecutionReceipts_BatchStore_Call) Run added in v0.46.0

func (*ExecutionReceipts_BatchStore_Call) RunAndReturn added in v0.46.0

type ExecutionReceipts_ByBlockID_Call added in v0.46.0

type ExecutionReceipts_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionReceipts_ByBlockID_Call) Return added in v0.46.0

func (*ExecutionReceipts_ByBlockID_Call) Run added in v0.46.0

func (*ExecutionReceipts_ByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionReceipts_ByID_Call added in v0.46.0

type ExecutionReceipts_ByID_Call struct {
	*mock.Call
}

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

func (*ExecutionReceipts_ByID_Call) Return added in v0.46.0

func (*ExecutionReceipts_ByID_Call) Run added in v0.46.0

func (*ExecutionReceipts_ByID_Call) RunAndReturn added in v0.46.0

type ExecutionReceipts_Expecter added in v0.46.0

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

func (*ExecutionReceipts_Expecter) BatchStore added in v0.46.0

func (_e *ExecutionReceipts_Expecter) BatchStore(receipt interface{}, batch interface{}) *ExecutionReceipts_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • receipt *flow.ExecutionReceipt
  • batch storage.ReaderBatchWriter

func (*ExecutionReceipts_Expecter) ByBlockID added in v0.46.0

func (_e *ExecutionReceipts_Expecter) ByBlockID(blockID interface{}) *ExecutionReceipts_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ExecutionReceipts_Expecter) ByID added in v0.46.0

func (_e *ExecutionReceipts_Expecter) ByID(receiptID interface{}) *ExecutionReceipts_ByID_Call

ByID is a helper method to define mock.On call

  • receiptID flow.Identifier

func (*ExecutionReceipts_Expecter) Store added in v0.46.0

func (_e *ExecutionReceipts_Expecter) Store(receipt interface{}) *ExecutionReceipts_Store_Call

Store is a helper method to define mock.On call

  • receipt *flow.ExecutionReceipt

type ExecutionReceipts_Store_Call added in v0.46.0

type ExecutionReceipts_Store_Call struct {
	*mock.Call
}

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

func (*ExecutionReceipts_Store_Call) Return added in v0.46.0

func (*ExecutionReceipts_Store_Call) Run added in v0.46.0

func (*ExecutionReceipts_Store_Call) RunAndReturn added in v0.46.0

type ExecutionResults

type ExecutionResults struct {
	mock.Mock
}

ExecutionResults is an autogenerated mock type for the ExecutionResults type

func NewExecutionResults added in v0.26.1

func NewExecutionResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionResults

NewExecutionResults creates a new instance of ExecutionResults. 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 (*ExecutionResults) BatchIndex added in v0.15.0

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

BatchIndex provides a mock function for the type ExecutionResults

func (*ExecutionResults) BatchRemoveIndexByBlockID added in v0.30.0

func (_mock *ExecutionResults) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveIndexByBlockID provides a mock function for the type ExecutionResults

func (*ExecutionResults) BatchStore added in v0.15.0

func (_mock *ExecutionResults) BatchStore(result *flow.ExecutionResult, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function for the type ExecutionResults

func (*ExecutionResults) ByBlockID

func (_mock *ExecutionResults) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)

ByBlockID provides a mock function for the type ExecutionResults

func (*ExecutionResults) ByID

func (_mock *ExecutionResults) ByID(resultID flow.Identifier) (*flow.ExecutionResult, error)

ByID provides a mock function for the type ExecutionResults

func (*ExecutionResults) EXPECT added in v0.46.0

func (*ExecutionResults) IDByBlockID added in v0.45.0

func (_mock *ExecutionResults) IDByBlockID(blockID flow.Identifier) (flow.Identifier, error)

IDByBlockID provides a mock function for the type ExecutionResults

type ExecutionResultsReader added in v0.41.0

type ExecutionResultsReader struct {
	mock.Mock
}

ExecutionResultsReader is an autogenerated mock type for the ExecutionResultsReader type

func NewExecutionResultsReader added in v0.41.0

func NewExecutionResultsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionResultsReader

NewExecutionResultsReader creates a new instance of ExecutionResultsReader. 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 (*ExecutionResultsReader) ByBlockID added in v0.41.0

func (_mock *ExecutionResultsReader) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)

ByBlockID provides a mock function for the type ExecutionResultsReader

func (*ExecutionResultsReader) ByID added in v0.41.0

func (_mock *ExecutionResultsReader) ByID(resultID flow.Identifier) (*flow.ExecutionResult, error)

ByID provides a mock function for the type ExecutionResultsReader

func (*ExecutionResultsReader) EXPECT added in v0.46.0

func (*ExecutionResultsReader) IDByBlockID added in v0.45.0

func (_mock *ExecutionResultsReader) IDByBlockID(blockID flow.Identifier) (flow.Identifier, error)

IDByBlockID provides a mock function for the type ExecutionResultsReader

type ExecutionResultsReader_ByBlockID_Call added in v0.46.0

type ExecutionResultsReader_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionResultsReader_ByBlockID_Call) Return added in v0.46.0

func (*ExecutionResultsReader_ByBlockID_Call) Run added in v0.46.0

func (*ExecutionResultsReader_ByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionResultsReader_ByID_Call added in v0.46.0

type ExecutionResultsReader_ByID_Call struct {
	*mock.Call
}

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

func (*ExecutionResultsReader_ByID_Call) Return added in v0.46.0

func (*ExecutionResultsReader_ByID_Call) Run added in v0.46.0

func (*ExecutionResultsReader_ByID_Call) RunAndReturn added in v0.46.0

type ExecutionResultsReader_Expecter added in v0.46.0

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

func (*ExecutionResultsReader_Expecter) ByBlockID added in v0.46.0

func (_e *ExecutionResultsReader_Expecter) ByBlockID(blockID interface{}) *ExecutionResultsReader_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ExecutionResultsReader_Expecter) ByID added in v0.46.0

func (_e *ExecutionResultsReader_Expecter) ByID(resultID interface{}) *ExecutionResultsReader_ByID_Call

ByID is a helper method to define mock.On call

  • resultID flow.Identifier

func (*ExecutionResultsReader_Expecter) IDByBlockID added in v0.46.0

func (_e *ExecutionResultsReader_Expecter) IDByBlockID(blockID interface{}) *ExecutionResultsReader_IDByBlockID_Call

IDByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type ExecutionResultsReader_IDByBlockID_Call added in v0.46.0

type ExecutionResultsReader_IDByBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionResultsReader_IDByBlockID_Call) Return added in v0.46.0

func (*ExecutionResultsReader_IDByBlockID_Call) Run added in v0.46.0

func (*ExecutionResultsReader_IDByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionResults_BatchIndex_Call added in v0.46.0

type ExecutionResults_BatchIndex_Call struct {
	*mock.Call
}

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

func (*ExecutionResults_BatchIndex_Call) Return added in v0.46.0

func (*ExecutionResults_BatchIndex_Call) Run added in v0.46.0

func (*ExecutionResults_BatchIndex_Call) RunAndReturn added in v0.46.0

type ExecutionResults_BatchRemoveIndexByBlockID_Call added in v0.46.0

type ExecutionResults_BatchRemoveIndexByBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionResults_BatchRemoveIndexByBlockID_Call) Return added in v0.46.0

func (*ExecutionResults_BatchRemoveIndexByBlockID_Call) Run added in v0.46.0

func (*ExecutionResults_BatchRemoveIndexByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionResults_BatchStore_Call added in v0.46.0

type ExecutionResults_BatchStore_Call struct {
	*mock.Call
}

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

func (*ExecutionResults_BatchStore_Call) Return added in v0.46.0

func (*ExecutionResults_BatchStore_Call) Run added in v0.46.0

func (*ExecutionResults_BatchStore_Call) RunAndReturn added in v0.46.0

type ExecutionResults_ByBlockID_Call added in v0.46.0

type ExecutionResults_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionResults_ByBlockID_Call) Return added in v0.46.0

func (*ExecutionResults_ByBlockID_Call) Run added in v0.46.0

func (*ExecutionResults_ByBlockID_Call) RunAndReturn added in v0.46.0

type ExecutionResults_ByID_Call added in v0.46.0

type ExecutionResults_ByID_Call struct {
	*mock.Call
}

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

func (*ExecutionResults_ByID_Call) Return added in v0.46.0

func (*ExecutionResults_ByID_Call) Run added in v0.46.0

func (*ExecutionResults_ByID_Call) RunAndReturn added in v0.46.0

type ExecutionResults_Expecter added in v0.46.0

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

func (*ExecutionResults_Expecter) BatchIndex added in v0.46.0

func (_e *ExecutionResults_Expecter) BatchIndex(lctx interface{}, rw interface{}, blockID interface{}, resultID interface{}) *ExecutionResults_BatchIndex_Call

BatchIndex is a helper method to define mock.On call

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

func (*ExecutionResults_Expecter) BatchRemoveIndexByBlockID added in v0.46.0

func (_e *ExecutionResults_Expecter) BatchRemoveIndexByBlockID(blockID interface{}, batch interface{}) *ExecutionResults_BatchRemoveIndexByBlockID_Call

BatchRemoveIndexByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier
  • batch storage.ReaderBatchWriter

func (*ExecutionResults_Expecter) BatchStore added in v0.46.0

func (_e *ExecutionResults_Expecter) BatchStore(result interface{}, batch interface{}) *ExecutionResults_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • result *flow.ExecutionResult
  • batch storage.ReaderBatchWriter

func (*ExecutionResults_Expecter) ByBlockID added in v0.46.0

func (_e *ExecutionResults_Expecter) ByBlockID(blockID interface{}) *ExecutionResults_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ExecutionResults_Expecter) ByID added in v0.46.0

func (_e *ExecutionResults_Expecter) ByID(resultID interface{}) *ExecutionResults_ByID_Call

ByID is a helper method to define mock.On call

  • resultID flow.Identifier

func (*ExecutionResults_Expecter) IDByBlockID added in v0.46.0

func (_e *ExecutionResults_Expecter) IDByBlockID(blockID interface{}) *ExecutionResults_IDByBlockID_Call

IDByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type ExecutionResults_IDByBlockID_Call added in v0.46.0

type ExecutionResults_IDByBlockID_Call struct {
	*mock.Call
}

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

func (*ExecutionResults_IDByBlockID_Call) Return added in v0.46.0

func (*ExecutionResults_IDByBlockID_Call) Run added in v0.46.0

func (*ExecutionResults_IDByBlockID_Call) RunAndReturn added in v0.46.0

type Guarantees

type Guarantees struct {
	mock.Mock
}

Guarantees is an autogenerated mock type for the Guarantees type

func NewGuarantees added in v0.26.1

func NewGuarantees(t interface {
	mock.TestingT
	Cleanup(func())
}) *Guarantees

NewGuarantees creates a new instance of Guarantees. 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 (*Guarantees) ByCollectionID

func (_mock *Guarantees) ByCollectionID(collID flow.Identifier) (*flow.CollectionGuarantee, error)

ByCollectionID provides a mock function for the type Guarantees

func (*Guarantees) ByID added in v0.43.0

func (_mock *Guarantees) ByID(guaranteeID flow.Identifier) (*flow.CollectionGuarantee, error)

ByID provides a mock function for the type Guarantees

func (*Guarantees) EXPECT added in v0.46.0

func (_m *Guarantees) EXPECT() *Guarantees_Expecter

type Guarantees_ByCollectionID_Call added in v0.46.0

type Guarantees_ByCollectionID_Call struct {
	*mock.Call
}

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

func (*Guarantees_ByCollectionID_Call) Return added in v0.46.0

func (*Guarantees_ByCollectionID_Call) Run added in v0.46.0

func (*Guarantees_ByCollectionID_Call) RunAndReturn added in v0.46.0

type Guarantees_ByID_Call added in v0.46.0

type Guarantees_ByID_Call struct {
	*mock.Call
}

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

func (*Guarantees_ByID_Call) Return added in v0.46.0

func (_c *Guarantees_ByID_Call) Return(collectionGuarantee *flow.CollectionGuarantee, err error) *Guarantees_ByID_Call

func (*Guarantees_ByID_Call) Run added in v0.46.0

func (_c *Guarantees_ByID_Call) Run(run func(guaranteeID flow.Identifier)) *Guarantees_ByID_Call

func (*Guarantees_ByID_Call) RunAndReturn added in v0.46.0

func (_c *Guarantees_ByID_Call) RunAndReturn(run func(guaranteeID flow.Identifier) (*flow.CollectionGuarantee, error)) *Guarantees_ByID_Call

type Guarantees_Expecter added in v0.46.0

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

func (*Guarantees_Expecter) ByCollectionID added in v0.46.0

func (_e *Guarantees_Expecter) ByCollectionID(collID interface{}) *Guarantees_ByCollectionID_Call

ByCollectionID is a helper method to define mock.On call

  • collID flow.Identifier

func (*Guarantees_Expecter) ByID added in v0.46.0

func (_e *Guarantees_Expecter) ByID(guaranteeID interface{}) *Guarantees_ByID_Call

ByID is a helper method to define mock.On call

  • guaranteeID flow.Identifier

type Headers

type Headers struct {
	mock.Mock
}

Headers is an autogenerated mock type for the Headers type

func NewHeaders added in v0.26.1

func NewHeaders(t interface {
	mock.TestingT
	Cleanup(func())
}) *Headers

NewHeaders creates a new instance of Headers. 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 (*Headers) BlockIDByHeight added in v0.30.0

func (_mock *Headers) BlockIDByHeight(height uint64) (flow.Identifier, error)

BlockIDByHeight provides a mock function for the type Headers

func (*Headers) ByBlockID

func (_mock *Headers) ByBlockID(blockID flow.Identifier) (*flow.Header, error)

ByBlockID provides a mock function for the type Headers

func (*Headers) ByHeight

func (_mock *Headers) ByHeight(height uint64) (*flow.Header, error)

ByHeight provides a mock function for the type Headers

func (*Headers) ByParentID

func (_mock *Headers) ByParentID(parentID flow.Identifier) ([]*flow.Header, error)

ByParentID provides a mock function for the type Headers

func (*Headers) ByView added in v0.43.0

func (_mock *Headers) ByView(view uint64) (*flow.Header, error)

ByView provides a mock function for the type Headers

func (*Headers) EXPECT added in v0.46.0

func (_m *Headers) EXPECT() *Headers_Expecter

func (*Headers) Exists added in v0.31.0

func (_mock *Headers) Exists(blockID flow.Identifier) (bool, error)

Exists provides a mock function for the type Headers

func (*Headers) ProposalByBlockID added in v0.43.0

func (_mock *Headers) ProposalByBlockID(blockID flow.Identifier) (*flow.ProposalHeader, error)

ProposalByBlockID provides a mock function for the type Headers

type Headers_BlockIDByHeight_Call added in v0.46.0

type Headers_BlockIDByHeight_Call struct {
	*mock.Call
}

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

func (*Headers_BlockIDByHeight_Call) Return added in v0.46.0

func (*Headers_BlockIDByHeight_Call) Run added in v0.46.0

func (*Headers_BlockIDByHeight_Call) RunAndReturn added in v0.46.0

type Headers_ByBlockID_Call added in v0.46.0

type Headers_ByBlockID_Call struct {
	*mock.Call
}

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

func (*Headers_ByBlockID_Call) Return added in v0.46.0

func (*Headers_ByBlockID_Call) Run added in v0.46.0

func (_c *Headers_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *Headers_ByBlockID_Call

func (*Headers_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *Headers_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (*flow.Header, error)) *Headers_ByBlockID_Call

type Headers_ByHeight_Call added in v0.46.0

type Headers_ByHeight_Call struct {
	*mock.Call
}

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

func (*Headers_ByHeight_Call) Return added in v0.46.0

func (_c *Headers_ByHeight_Call) Return(header *flow.Header, err error) *Headers_ByHeight_Call

func (*Headers_ByHeight_Call) Run added in v0.46.0

func (_c *Headers_ByHeight_Call) Run(run func(height uint64)) *Headers_ByHeight_Call

func (*Headers_ByHeight_Call) RunAndReturn added in v0.46.0

func (_c *Headers_ByHeight_Call) RunAndReturn(run func(height uint64) (*flow.Header, error)) *Headers_ByHeight_Call

type Headers_ByParentID_Call added in v0.46.0

type Headers_ByParentID_Call struct {
	*mock.Call
}

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

func (*Headers_ByParentID_Call) Return added in v0.46.0

func (_c *Headers_ByParentID_Call) Return(headers []*flow.Header, err error) *Headers_ByParentID_Call

func (*Headers_ByParentID_Call) Run added in v0.46.0

func (_c *Headers_ByParentID_Call) Run(run func(parentID flow.Identifier)) *Headers_ByParentID_Call

func (*Headers_ByParentID_Call) RunAndReturn added in v0.46.0

func (_c *Headers_ByParentID_Call) RunAndReturn(run func(parentID flow.Identifier) ([]*flow.Header, error)) *Headers_ByParentID_Call

type Headers_ByView_Call added in v0.46.0

type Headers_ByView_Call struct {
	*mock.Call
}

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

func (*Headers_ByView_Call) Return added in v0.46.0

func (_c *Headers_ByView_Call) Return(header *flow.Header, err error) *Headers_ByView_Call

func (*Headers_ByView_Call) Run added in v0.46.0

func (_c *Headers_ByView_Call) Run(run func(view uint64)) *Headers_ByView_Call

func (*Headers_ByView_Call) RunAndReturn added in v0.46.0

func (_c *Headers_ByView_Call) RunAndReturn(run func(view uint64) (*flow.Header, error)) *Headers_ByView_Call

type Headers_Exists_Call added in v0.46.0

type Headers_Exists_Call struct {
	*mock.Call
}

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

func (*Headers_Exists_Call) Return added in v0.46.0

func (_c *Headers_Exists_Call) Return(b bool, err error) *Headers_Exists_Call

func (*Headers_Exists_Call) Run added in v0.46.0

func (_c *Headers_Exists_Call) Run(run func(blockID flow.Identifier)) *Headers_Exists_Call

func (*Headers_Exists_Call) RunAndReturn added in v0.46.0

func (_c *Headers_Exists_Call) RunAndReturn(run func(blockID flow.Identifier) (bool, error)) *Headers_Exists_Call

type Headers_Expecter added in v0.46.0

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

func (*Headers_Expecter) BlockIDByHeight added in v0.46.0

func (_e *Headers_Expecter) BlockIDByHeight(height interface{}) *Headers_BlockIDByHeight_Call

BlockIDByHeight is a helper method to define mock.On call

  • height uint64

func (*Headers_Expecter) ByBlockID added in v0.46.0

func (_e *Headers_Expecter) ByBlockID(blockID interface{}) *Headers_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Headers_Expecter) ByHeight added in v0.46.0

func (_e *Headers_Expecter) ByHeight(height interface{}) *Headers_ByHeight_Call

ByHeight is a helper method to define mock.On call

  • height uint64

func (*Headers_Expecter) ByParentID added in v0.46.0

func (_e *Headers_Expecter) ByParentID(parentID interface{}) *Headers_ByParentID_Call

ByParentID is a helper method to define mock.On call

  • parentID flow.Identifier

func (*Headers_Expecter) ByView added in v0.46.0

func (_e *Headers_Expecter) ByView(view interface{}) *Headers_ByView_Call

ByView is a helper method to define mock.On call

  • view uint64

func (*Headers_Expecter) Exists added in v0.46.0

func (_e *Headers_Expecter) Exists(blockID interface{}) *Headers_Exists_Call

Exists is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Headers_Expecter) ProposalByBlockID added in v0.46.0

func (_e *Headers_Expecter) ProposalByBlockID(blockID interface{}) *Headers_ProposalByBlockID_Call

ProposalByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type Headers_ProposalByBlockID_Call added in v0.46.0

type Headers_ProposalByBlockID_Call struct {
	*mock.Call
}

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

func (*Headers_ProposalByBlockID_Call) Return added in v0.46.0

func (*Headers_ProposalByBlockID_Call) Run added in v0.46.0

func (*Headers_ProposalByBlockID_Call) RunAndReturn added in v0.46.0

type HeightIndex added in v0.32.0

type HeightIndex struct {
	mock.Mock
}

HeightIndex is an autogenerated mock type for the HeightIndex type

func NewHeightIndex added in v0.32.0

func NewHeightIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *HeightIndex

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

func (_m *HeightIndex) EXPECT() *HeightIndex_Expecter

func (*HeightIndex) FirstHeight added in v0.32.0

func (_mock *HeightIndex) FirstHeight() (uint64, error)

FirstHeight provides a mock function for the type HeightIndex

func (*HeightIndex) LatestHeight added in v0.32.0

func (_mock *HeightIndex) LatestHeight() (uint64, error)

LatestHeight provides a mock function for the type HeightIndex

func (*HeightIndex) SetLatestHeight added in v0.32.0

func (_mock *HeightIndex) SetLatestHeight(height uint64) error

SetLatestHeight provides a mock function for the type HeightIndex

type HeightIndex_Expecter added in v0.46.0

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

func (*HeightIndex_Expecter) FirstHeight added in v0.46.0

FirstHeight is a helper method to define mock.On call

func (*HeightIndex_Expecter) LatestHeight added in v0.46.0

LatestHeight is a helper method to define mock.On call

func (*HeightIndex_Expecter) SetLatestHeight added in v0.46.0

func (_e *HeightIndex_Expecter) SetLatestHeight(height interface{}) *HeightIndex_SetLatestHeight_Call

SetLatestHeight is a helper method to define mock.On call

  • height uint64

type HeightIndex_FirstHeight_Call added in v0.46.0

type HeightIndex_FirstHeight_Call struct {
	*mock.Call
}

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

func (*HeightIndex_FirstHeight_Call) Return added in v0.46.0

func (*HeightIndex_FirstHeight_Call) Run added in v0.46.0

func (*HeightIndex_FirstHeight_Call) RunAndReturn added in v0.46.0

func (_c *HeightIndex_FirstHeight_Call) RunAndReturn(run func() (uint64, error)) *HeightIndex_FirstHeight_Call

type HeightIndex_LatestHeight_Call added in v0.46.0

type HeightIndex_LatestHeight_Call struct {
	*mock.Call
}

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

func (*HeightIndex_LatestHeight_Call) Return added in v0.46.0

func (*HeightIndex_LatestHeight_Call) Run added in v0.46.0

func (*HeightIndex_LatestHeight_Call) RunAndReturn added in v0.46.0

type HeightIndex_SetLatestHeight_Call added in v0.46.0

type HeightIndex_SetLatestHeight_Call struct {
	*mock.Call
}

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

func (*HeightIndex_SetLatestHeight_Call) Return added in v0.46.0

func (*HeightIndex_SetLatestHeight_Call) Run added in v0.46.0

func (*HeightIndex_SetLatestHeight_Call) RunAndReturn added in v0.46.0

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func NewIndex added in v0.26.1

func NewIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *Index

NewIndex creates a new instance of Index. 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 (*Index) ByBlockID

func (_mock *Index) ByBlockID(blockID flow.Identifier) (*flow.Index, error)

ByBlockID provides a mock function for the type Index

func (*Index) EXPECT added in v0.46.0

func (_m *Index) EXPECT() *Index_Expecter

type Index_ByBlockID_Call added in v0.46.0

type Index_ByBlockID_Call struct {
	*mock.Call
}

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

func (*Index_ByBlockID_Call) Return added in v0.46.0

func (_c *Index_ByBlockID_Call) Return(index *flow.Index, err error) *Index_ByBlockID_Call

func (*Index_ByBlockID_Call) Run added in v0.46.0

func (_c *Index_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *Index_ByBlockID_Call

func (*Index_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *Index_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (*flow.Index, error)) *Index_ByBlockID_Call

type Index_Expecter added in v0.46.0

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

func (*Index_Expecter) ByBlockID added in v0.46.0

func (_e *Index_Expecter) ByBlockID(blockID interface{}) *Index_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type IterItem added in v0.38.0

type IterItem struct {
	mock.Mock
}

IterItem is an autogenerated mock type for the IterItem type

func NewIterItem added in v0.38.0

func NewIterItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *IterItem

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

func (_m *IterItem) EXPECT() *IterItem_Expecter

func (*IterItem) Key added in v0.38.0

func (_mock *IterItem) Key() []byte

Key provides a mock function for the type IterItem

func (*IterItem) KeyCopy added in v0.38.0

func (_mock *IterItem) KeyCopy(dst []byte) []byte

KeyCopy provides a mock function for the type IterItem

func (*IterItem) Value added in v0.38.0

func (_mock *IterItem) Value(fn func(val []byte) error) error

Value provides a mock function for the type IterItem

type IterItem_Expecter added in v0.46.0

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

func (*IterItem_Expecter) Key added in v0.46.0

Key is a helper method to define mock.On call

func (*IterItem_Expecter) KeyCopy added in v0.46.0

func (_e *IterItem_Expecter) KeyCopy(dst interface{}) *IterItem_KeyCopy_Call

KeyCopy is a helper method to define mock.On call

  • dst []byte

func (*IterItem_Expecter) Value added in v0.46.0

func (_e *IterItem_Expecter) Value(fn interface{}) *IterItem_Value_Call

Value is a helper method to define mock.On call

  • fn func(val []byte) error

type IterItem_KeyCopy_Call added in v0.46.0

type IterItem_KeyCopy_Call struct {
	*mock.Call
}

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

func (*IterItem_KeyCopy_Call) Return added in v0.46.0

func (_c *IterItem_KeyCopy_Call) Return(bytes []byte) *IterItem_KeyCopy_Call

func (*IterItem_KeyCopy_Call) Run added in v0.46.0

func (_c *IterItem_KeyCopy_Call) Run(run func(dst []byte)) *IterItem_KeyCopy_Call

func (*IterItem_KeyCopy_Call) RunAndReturn added in v0.46.0

func (_c *IterItem_KeyCopy_Call) RunAndReturn(run func(dst []byte) []byte) *IterItem_KeyCopy_Call

type IterItem_Key_Call added in v0.46.0

type IterItem_Key_Call struct {
	*mock.Call
}

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

func (*IterItem_Key_Call) Return added in v0.46.0

func (_c *IterItem_Key_Call) Return(bytes []byte) *IterItem_Key_Call

func (*IterItem_Key_Call) Run added in v0.46.0

func (_c *IterItem_Key_Call) Run(run func()) *IterItem_Key_Call

func (*IterItem_Key_Call) RunAndReturn added in v0.46.0

func (_c *IterItem_Key_Call) RunAndReturn(run func() []byte) *IterItem_Key_Call

type IterItem_Value_Call added in v0.46.0

type IterItem_Value_Call struct {
	*mock.Call
}

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

func (*IterItem_Value_Call) Return added in v0.46.0

func (*IterItem_Value_Call) Run added in v0.46.0

func (_c *IterItem_Value_Call) Run(run func(fn func(val []byte) error)) *IterItem_Value_Call

func (*IterItem_Value_Call) RunAndReturn added in v0.46.0

func (_c *IterItem_Value_Call) RunAndReturn(run func(fn func(val []byte) error) error) *IterItem_Value_Call

type Iterator added in v0.38.0

type Iterator struct {
	mock.Mock
}

Iterator is an autogenerated mock type for the Iterator type

func NewIterator added in v0.38.0

func NewIterator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Iterator

NewIterator creates a new instance of Iterator. 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 (*Iterator) Close added in v0.38.0

func (_mock *Iterator) Close() error

Close provides a mock function for the type Iterator

func (*Iterator) EXPECT added in v0.46.0

func (_m *Iterator) EXPECT() *Iterator_Expecter

func (*Iterator) First added in v0.38.0

func (_mock *Iterator) First() bool

First provides a mock function for the type Iterator

func (*Iterator) IterItem added in v0.38.0

func (_mock *Iterator) IterItem() storage.IterItem

IterItem provides a mock function for the type Iterator

func (*Iterator) Next added in v0.38.0

func (_mock *Iterator) Next()

Next provides a mock function for the type Iterator

func (*Iterator) Valid added in v0.38.0

func (_mock *Iterator) Valid() bool

Valid provides a mock function for the type Iterator

type Iterator_Close_Call added in v0.46.0

type Iterator_Close_Call struct {
	*mock.Call
}

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

func (*Iterator_Close_Call) Return added in v0.46.0

func (*Iterator_Close_Call) Run added in v0.46.0

func (_c *Iterator_Close_Call) Run(run func()) *Iterator_Close_Call

func (*Iterator_Close_Call) RunAndReturn added in v0.46.0

func (_c *Iterator_Close_Call) RunAndReturn(run func() error) *Iterator_Close_Call

type Iterator_Expecter added in v0.46.0

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

func (*Iterator_Expecter) Close added in v0.46.0

Close is a helper method to define mock.On call

func (*Iterator_Expecter) First added in v0.46.0

First is a helper method to define mock.On call

func (*Iterator_Expecter) IterItem added in v0.46.0

func (_e *Iterator_Expecter) IterItem() *Iterator_IterItem_Call

IterItem is a helper method to define mock.On call

func (*Iterator_Expecter) Next added in v0.46.0

Next is a helper method to define mock.On call

func (*Iterator_Expecter) Valid added in v0.46.0

Valid is a helper method to define mock.On call

type Iterator_First_Call added in v0.46.0

type Iterator_First_Call struct {
	*mock.Call
}

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

func (*Iterator_First_Call) Return added in v0.46.0

func (*Iterator_First_Call) Run added in v0.46.0

func (_c *Iterator_First_Call) Run(run func()) *Iterator_First_Call

func (*Iterator_First_Call) RunAndReturn added in v0.46.0

func (_c *Iterator_First_Call) RunAndReturn(run func() bool) *Iterator_First_Call

type Iterator_IterItem_Call added in v0.46.0

type Iterator_IterItem_Call struct {
	*mock.Call
}

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

func (*Iterator_IterItem_Call) Return added in v0.46.0

func (*Iterator_IterItem_Call) Run added in v0.46.0

func (_c *Iterator_IterItem_Call) Run(run func()) *Iterator_IterItem_Call

func (*Iterator_IterItem_Call) RunAndReturn added in v0.46.0

func (_c *Iterator_IterItem_Call) RunAndReturn(run func() storage.IterItem) *Iterator_IterItem_Call

type Iterator_Next_Call added in v0.46.0

type Iterator_Next_Call struct {
	*mock.Call
}

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

func (*Iterator_Next_Call) Return added in v0.46.0

func (_c *Iterator_Next_Call) Return() *Iterator_Next_Call

func (*Iterator_Next_Call) Run added in v0.46.0

func (_c *Iterator_Next_Call) Run(run func()) *Iterator_Next_Call

func (*Iterator_Next_Call) RunAndReturn added in v0.46.0

func (_c *Iterator_Next_Call) RunAndReturn(run func()) *Iterator_Next_Call

type Iterator_Valid_Call added in v0.46.0

type Iterator_Valid_Call struct {
	*mock.Call
}

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

func (*Iterator_Valid_Call) Return added in v0.46.0

func (*Iterator_Valid_Call) Run added in v0.46.0

func (_c *Iterator_Valid_Call) Run(run func()) *Iterator_Valid_Call

func (*Iterator_Valid_Call) RunAndReturn added in v0.46.0

func (_c *Iterator_Valid_Call) RunAndReturn(run func() bool) *Iterator_Valid_Call

type LatestPersistedSealedResult added in v0.43.0

type LatestPersistedSealedResult struct {
	mock.Mock
}

LatestPersistedSealedResult is an autogenerated mock type for the LatestPersistedSealedResult type

func NewLatestPersistedSealedResult added in v0.43.0

func NewLatestPersistedSealedResult(t interface {
	mock.TestingT
	Cleanup(func())
}) *LatestPersistedSealedResult

NewLatestPersistedSealedResult creates a new instance of LatestPersistedSealedResult. 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 (*LatestPersistedSealedResult) BatchSet added in v0.43.0

func (_mock *LatestPersistedSealedResult) BatchSet(resultID flow.Identifier, height uint64, batch storage.ReaderBatchWriter) error

BatchSet provides a mock function for the type LatestPersistedSealedResult

func (*LatestPersistedSealedResult) EXPECT added in v0.46.0

func (*LatestPersistedSealedResult) Latest added in v0.43.0

Latest provides a mock function for the type LatestPersistedSealedResult

type LatestPersistedSealedResult_BatchSet_Call added in v0.46.0

type LatestPersistedSealedResult_BatchSet_Call struct {
	*mock.Call
}

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

func (*LatestPersistedSealedResult_BatchSet_Call) Return added in v0.46.0

func (*LatestPersistedSealedResult_BatchSet_Call) Run added in v0.46.0

func (*LatestPersistedSealedResult_BatchSet_Call) RunAndReturn added in v0.46.0

type LatestPersistedSealedResult_Expecter added in v0.46.0

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

func (*LatestPersistedSealedResult_Expecter) BatchSet added in v0.46.0

func (_e *LatestPersistedSealedResult_Expecter) BatchSet(resultID interface{}, height interface{}, batch interface{}) *LatestPersistedSealedResult_BatchSet_Call

BatchSet is a helper method to define mock.On call

  • resultID flow.Identifier
  • height uint64
  • batch storage.ReaderBatchWriter

func (*LatestPersistedSealedResult_Expecter) Latest added in v0.46.0

Latest is a helper method to define mock.On call

type LatestPersistedSealedResult_Latest_Call added in v0.46.0

type LatestPersistedSealedResult_Latest_Call struct {
	*mock.Call
}

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

func (*LatestPersistedSealedResult_Latest_Call) Return added in v0.46.0

func (*LatestPersistedSealedResult_Latest_Call) Run added in v0.46.0

func (*LatestPersistedSealedResult_Latest_Call) RunAndReturn added in v0.46.0

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func NewLedger added in v0.26.1

func NewLedger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Ledger

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

func (_m *Ledger) EXPECT() *Ledger_Expecter

func (*Ledger) EmptyStateCommitment

func (_mock *Ledger) EmptyStateCommitment() flow.StateCommitment

EmptyStateCommitment provides a mock function for the type Ledger

func (*Ledger) GetRegisters

func (_mock *Ledger) GetRegisters(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([]flow.RegisterValue, error)

GetRegisters provides a mock function for the type Ledger

func (*Ledger) GetRegistersWithProof

func (_mock *Ledger) GetRegistersWithProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([]flow.RegisterValue, []flow.StorageProof, error)

GetRegistersWithProof provides a mock function for the type Ledger

func (*Ledger) UpdateRegisters

func (_mock *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values []flow.RegisterValue, stateCommitment flow.StateCommitment) (flow.StateCommitment, error)

UpdateRegisters provides a mock function for the type Ledger

func (*Ledger) UpdateRegistersWithProof

func (_mock *Ledger) UpdateRegistersWithProof(registerIDs []flow.RegisterID, values []flow.RegisterValue, stateCommitment flow.StateCommitment) (flow.StateCommitment, []flow.StorageProof, error)

UpdateRegistersWithProof provides a mock function for the type Ledger

type LedgerVerifier

type LedgerVerifier struct {
	mock.Mock
}

LedgerVerifier is an autogenerated mock type for the LedgerVerifier type

func NewLedgerVerifier added in v0.26.1

func NewLedgerVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *LedgerVerifier

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

func (*LedgerVerifier) VerifyRegistersProof

func (_mock *LedgerVerifier) VerifyRegistersProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment, values []flow.RegisterValue, proof []flow.StorageProof) (bool, error)

VerifyRegistersProof provides a mock function for the type LedgerVerifier

type LedgerVerifier_Expecter added in v0.46.0

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

func (*LedgerVerifier_Expecter) VerifyRegistersProof added in v0.46.0

func (_e *LedgerVerifier_Expecter) VerifyRegistersProof(registerIDs interface{}, stateCommitment interface{}, values interface{}, proof interface{}) *LedgerVerifier_VerifyRegistersProof_Call

VerifyRegistersProof is a helper method to define mock.On call

  • registerIDs []flow.RegisterID
  • stateCommitment flow.StateCommitment
  • values []flow.RegisterValue
  • proof []flow.StorageProof

type LedgerVerifier_VerifyRegistersProof_Call added in v0.46.0

type LedgerVerifier_VerifyRegistersProof_Call struct {
	*mock.Call
}

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

func (*LedgerVerifier_VerifyRegistersProof_Call) Return added in v0.46.0

func (*LedgerVerifier_VerifyRegistersProof_Call) Run added in v0.46.0

func (*LedgerVerifier_VerifyRegistersProof_Call) RunAndReturn added in v0.46.0

type Ledger_EmptyStateCommitment_Call added in v0.46.0

type Ledger_EmptyStateCommitment_Call struct {
	*mock.Call
}

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

func (*Ledger_EmptyStateCommitment_Call) Return added in v0.46.0

func (*Ledger_EmptyStateCommitment_Call) Run added in v0.46.0

func (*Ledger_EmptyStateCommitment_Call) RunAndReturn added in v0.46.0

type Ledger_Expecter added in v0.46.0

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

func (*Ledger_Expecter) EmptyStateCommitment added in v0.46.0

func (_e *Ledger_Expecter) EmptyStateCommitment() *Ledger_EmptyStateCommitment_Call

EmptyStateCommitment is a helper method to define mock.On call

func (*Ledger_Expecter) GetRegisters added in v0.46.0

func (_e *Ledger_Expecter) GetRegisters(registerIDs interface{}, stateCommitment interface{}) *Ledger_GetRegisters_Call

GetRegisters is a helper method to define mock.On call

  • registerIDs []flow.RegisterID
  • stateCommitment flow.StateCommitment

func (*Ledger_Expecter) GetRegistersWithProof added in v0.46.0

func (_e *Ledger_Expecter) GetRegistersWithProof(registerIDs interface{}, stateCommitment interface{}) *Ledger_GetRegistersWithProof_Call

GetRegistersWithProof is a helper method to define mock.On call

  • registerIDs []flow.RegisterID
  • stateCommitment flow.StateCommitment

func (*Ledger_Expecter) UpdateRegisters added in v0.46.0

func (_e *Ledger_Expecter) UpdateRegisters(registerIDs interface{}, values interface{}, stateCommitment interface{}) *Ledger_UpdateRegisters_Call

UpdateRegisters is a helper method to define mock.On call

  • registerIDs []flow.RegisterID
  • values []flow.RegisterValue
  • stateCommitment flow.StateCommitment

func (*Ledger_Expecter) UpdateRegistersWithProof added in v0.46.0

func (_e *Ledger_Expecter) UpdateRegistersWithProof(registerIDs interface{}, values interface{}, stateCommitment interface{}) *Ledger_UpdateRegistersWithProof_Call

UpdateRegistersWithProof is a helper method to define mock.On call

  • registerIDs []flow.RegisterID
  • values []flow.RegisterValue
  • stateCommitment flow.StateCommitment

type Ledger_GetRegistersWithProof_Call added in v0.46.0

type Ledger_GetRegistersWithProof_Call struct {
	*mock.Call
}

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

func (*Ledger_GetRegistersWithProof_Call) Return added in v0.46.0

func (*Ledger_GetRegistersWithProof_Call) Run added in v0.46.0

func (*Ledger_GetRegistersWithProof_Call) RunAndReturn added in v0.46.0

type Ledger_GetRegisters_Call added in v0.46.0

type Ledger_GetRegisters_Call struct {
	*mock.Call
}

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

func (*Ledger_GetRegisters_Call) Return added in v0.46.0

func (*Ledger_GetRegisters_Call) Run added in v0.46.0

func (_c *Ledger_GetRegisters_Call) Run(run func(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment)) *Ledger_GetRegisters_Call

func (*Ledger_GetRegisters_Call) RunAndReturn added in v0.46.0

func (_c *Ledger_GetRegisters_Call) RunAndReturn(run func(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([]flow.RegisterValue, error)) *Ledger_GetRegisters_Call

type Ledger_UpdateRegistersWithProof_Call added in v0.46.0

type Ledger_UpdateRegistersWithProof_Call struct {
	*mock.Call
}

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

func (*Ledger_UpdateRegistersWithProof_Call) Return added in v0.46.0

func (*Ledger_UpdateRegistersWithProof_Call) Run added in v0.46.0

func (*Ledger_UpdateRegistersWithProof_Call) RunAndReturn added in v0.46.0

type Ledger_UpdateRegisters_Call added in v0.46.0

type Ledger_UpdateRegisters_Call struct {
	*mock.Call
}

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

func (*Ledger_UpdateRegisters_Call) Return added in v0.46.0

func (*Ledger_UpdateRegisters_Call) Run added in v0.46.0

func (_c *Ledger_UpdateRegisters_Call) Run(run func(registerIDs []flow.RegisterID, values []flow.RegisterValue, stateCommitment flow.StateCommitment)) *Ledger_UpdateRegisters_Call

func (*Ledger_UpdateRegisters_Call) RunAndReturn added in v0.46.0

func (_c *Ledger_UpdateRegisters_Call) RunAndReturn(run func(registerIDs []flow.RegisterID, values []flow.RegisterValue, stateCommitment flow.StateCommitment) (flow.StateCommitment, error)) *Ledger_UpdateRegisters_Call

type LightTransactionResults added in v0.32.0

type LightTransactionResults struct {
	mock.Mock
}

LightTransactionResults is an autogenerated mock type for the LightTransactionResults type

func NewLightTransactionResults added in v0.32.0

func NewLightTransactionResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *LightTransactionResults

NewLightTransactionResults creates a new instance of LightTransactionResults. 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 (*LightTransactionResults) BatchStore added in v0.32.0

func (_mock *LightTransactionResults) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, transactionResults []flow.LightTransactionResult) error

BatchStore provides a mock function for the type LightTransactionResults

func (*LightTransactionResults) ByBlockID added in v0.32.0

ByBlockID provides a mock function for the type LightTransactionResults

func (*LightTransactionResults) ByBlockIDTransactionID added in v0.32.0

func (_mock *LightTransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.LightTransactionResult, error)

ByBlockIDTransactionID provides a mock function for the type LightTransactionResults

func (*LightTransactionResults) ByBlockIDTransactionIndex added in v0.32.0

func (_mock *LightTransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.LightTransactionResult, error)

ByBlockIDTransactionIndex provides a mock function for the type LightTransactionResults

func (*LightTransactionResults) EXPECT added in v0.46.0

type LightTransactionResultsReader added in v0.41.0

type LightTransactionResultsReader struct {
	mock.Mock
}

LightTransactionResultsReader is an autogenerated mock type for the LightTransactionResultsReader type

func NewLightTransactionResultsReader added in v0.41.0

func NewLightTransactionResultsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *LightTransactionResultsReader

NewLightTransactionResultsReader creates a new instance of LightTransactionResultsReader. 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 (*LightTransactionResultsReader) ByBlockID added in v0.41.0

ByBlockID provides a mock function for the type LightTransactionResultsReader

func (*LightTransactionResultsReader) ByBlockIDTransactionID added in v0.41.0

func (_mock *LightTransactionResultsReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.LightTransactionResult, error)

ByBlockIDTransactionID provides a mock function for the type LightTransactionResultsReader

func (*LightTransactionResultsReader) ByBlockIDTransactionIndex added in v0.41.0

func (_mock *LightTransactionResultsReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.LightTransactionResult, error)

ByBlockIDTransactionIndex provides a mock function for the type LightTransactionResultsReader

func (*LightTransactionResultsReader) EXPECT added in v0.46.0

type LightTransactionResultsReader_ByBlockIDTransactionID_Call added in v0.46.0

type LightTransactionResultsReader_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*LightTransactionResultsReader_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*LightTransactionResultsReader_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*LightTransactionResultsReader_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type LightTransactionResultsReader_ByBlockIDTransactionIndex_Call added in v0.46.0

type LightTransactionResultsReader_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*LightTransactionResultsReader_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*LightTransactionResultsReader_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*LightTransactionResultsReader_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type LightTransactionResultsReader_ByBlockID_Call added in v0.46.0

type LightTransactionResultsReader_ByBlockID_Call struct {
	*mock.Call
}

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

func (*LightTransactionResultsReader_ByBlockID_Call) Return added in v0.46.0

func (*LightTransactionResultsReader_ByBlockID_Call) Run added in v0.46.0

func (*LightTransactionResultsReader_ByBlockID_Call) RunAndReturn added in v0.46.0

type LightTransactionResultsReader_Expecter added in v0.46.0

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

func (*LightTransactionResultsReader_Expecter) ByBlockID added in v0.46.0

ByBlockID is a helper method to define mock.On call

  • id flow.Identifier

func (*LightTransactionResultsReader_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *LightTransactionResultsReader_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *LightTransactionResultsReader_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*LightTransactionResultsReader_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *LightTransactionResultsReader_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *LightTransactionResultsReader_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

type LightTransactionResults_BatchStore_Call added in v0.46.0

type LightTransactionResults_BatchStore_Call struct {
	*mock.Call
}

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

func (*LightTransactionResults_BatchStore_Call) Return added in v0.46.0

func (*LightTransactionResults_BatchStore_Call) Run added in v0.46.0

func (*LightTransactionResults_BatchStore_Call) RunAndReturn added in v0.46.0

type LightTransactionResults_ByBlockIDTransactionID_Call added in v0.46.0

type LightTransactionResults_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*LightTransactionResults_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*LightTransactionResults_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*LightTransactionResults_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type LightTransactionResults_ByBlockIDTransactionIndex_Call added in v0.46.0

type LightTransactionResults_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*LightTransactionResults_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*LightTransactionResults_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*LightTransactionResults_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type LightTransactionResults_ByBlockID_Call added in v0.46.0

type LightTransactionResults_ByBlockID_Call struct {
	*mock.Call
}

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

func (*LightTransactionResults_ByBlockID_Call) Return added in v0.46.0

func (*LightTransactionResults_ByBlockID_Call) Run added in v0.46.0

func (*LightTransactionResults_ByBlockID_Call) RunAndReturn added in v0.46.0

type LightTransactionResults_Expecter added in v0.46.0

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

func (*LightTransactionResults_Expecter) BatchStore added in v0.46.0

func (_e *LightTransactionResults_Expecter) BatchStore(lctx interface{}, rw interface{}, blockID interface{}, transactionResults interface{}) *LightTransactionResults_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • rw storage.ReaderBatchWriter
  • blockID flow.Identifier
  • transactionResults []flow.LightTransactionResult

func (*LightTransactionResults_Expecter) ByBlockID added in v0.46.0

ByBlockID is a helper method to define mock.On call

  • id flow.Identifier

func (*LightTransactionResults_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *LightTransactionResults_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *LightTransactionResults_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*LightTransactionResults_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *LightTransactionResults_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *LightTransactionResults_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

type LockManager added in v0.43.0

type LockManager struct {
	mock.Mock
}

LockManager is an autogenerated mock type for the LockManager type

func NewLockManager added in v0.43.0

func NewLockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *LockManager

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

func (_m *LockManager) EXPECT() *LockManager_Expecter

func (*LockManager) NewContext added in v0.43.0

func (_mock *LockManager) NewContext() lockctx.Context

NewContext provides a mock function for the type LockManager

type LockManager_Expecter added in v0.46.0

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

func (*LockManager_Expecter) NewContext added in v0.46.0

NewContext is a helper method to define mock.On call

type LockManager_NewContext_Call added in v0.46.0

type LockManager_NewContext_Call struct {
	*mock.Call
}

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

func (*LockManager_NewContext_Call) Return added in v0.46.0

func (*LockManager_NewContext_Call) Run added in v0.46.0

func (*LockManager_NewContext_Call) RunAndReturn added in v0.46.0

type MyExecutionReceipts added in v0.15.0

type MyExecutionReceipts struct {
	mock.Mock
}

MyExecutionReceipts is an autogenerated mock type for the MyExecutionReceipts type

func NewMyExecutionReceipts added in v0.26.1

func NewMyExecutionReceipts(t interface {
	mock.TestingT
	Cleanup(func())
}) *MyExecutionReceipts

NewMyExecutionReceipts creates a new instance of MyExecutionReceipts. 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 (*MyExecutionReceipts) BatchRemoveIndexByBlockID added in v0.30.0

func (_mock *MyExecutionReceipts) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveIndexByBlockID provides a mock function for the type MyExecutionReceipts

func (*MyExecutionReceipts) BatchStoreMyReceipt added in v0.15.1

func (_mock *MyExecutionReceipts) BatchStoreMyReceipt(lctx lockctx.Proof, receipt *flow.ExecutionReceipt, batch storage.ReaderBatchWriter) error

BatchStoreMyReceipt provides a mock function for the type MyExecutionReceipts

func (*MyExecutionReceipts) EXPECT added in v0.46.0

func (*MyExecutionReceipts) MyReceipt added in v0.15.0

func (_mock *MyExecutionReceipts) MyReceipt(blockID flow.Identifier) (*flow.ExecutionReceipt, error)

MyReceipt provides a mock function for the type MyExecutionReceipts

type MyExecutionReceipts_BatchRemoveIndexByBlockID_Call added in v0.46.0

type MyExecutionReceipts_BatchRemoveIndexByBlockID_Call struct {
	*mock.Call
}

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

func (*MyExecutionReceipts_BatchRemoveIndexByBlockID_Call) Return added in v0.46.0

func (*MyExecutionReceipts_BatchRemoveIndexByBlockID_Call) Run added in v0.46.0

func (*MyExecutionReceipts_BatchRemoveIndexByBlockID_Call) RunAndReturn added in v0.46.0

type MyExecutionReceipts_BatchStoreMyReceipt_Call added in v0.46.0

type MyExecutionReceipts_BatchStoreMyReceipt_Call struct {
	*mock.Call
}

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

func (*MyExecutionReceipts_BatchStoreMyReceipt_Call) Return added in v0.46.0

func (*MyExecutionReceipts_BatchStoreMyReceipt_Call) Run added in v0.46.0

func (*MyExecutionReceipts_BatchStoreMyReceipt_Call) RunAndReturn added in v0.46.0

type MyExecutionReceipts_Expecter added in v0.46.0

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

func (*MyExecutionReceipts_Expecter) BatchRemoveIndexByBlockID added in v0.46.0

func (_e *MyExecutionReceipts_Expecter) BatchRemoveIndexByBlockID(blockID interface{}, batch interface{}) *MyExecutionReceipts_BatchRemoveIndexByBlockID_Call

BatchRemoveIndexByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier
  • batch storage.ReaderBatchWriter

func (*MyExecutionReceipts_Expecter) BatchStoreMyReceipt added in v0.46.0

func (_e *MyExecutionReceipts_Expecter) BatchStoreMyReceipt(lctx interface{}, receipt interface{}, batch interface{}) *MyExecutionReceipts_BatchStoreMyReceipt_Call

BatchStoreMyReceipt is a helper method to define mock.On call

  • lctx lockctx.Proof
  • receipt *flow.ExecutionReceipt
  • batch storage.ReaderBatchWriter

func (*MyExecutionReceipts_Expecter) MyReceipt added in v0.46.0

func (_e *MyExecutionReceipts_Expecter) MyReceipt(blockID interface{}) *MyExecutionReceipts_MyReceipt_Call

MyReceipt is a helper method to define mock.On call

  • blockID flow.Identifier

type MyExecutionReceipts_MyReceipt_Call added in v0.46.0

type MyExecutionReceipts_MyReceipt_Call struct {
	*mock.Call
}

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

func (*MyExecutionReceipts_MyReceipt_Call) Return added in v0.46.0

func (*MyExecutionReceipts_MyReceipt_Call) Run added in v0.46.0

func (*MyExecutionReceipts_MyReceipt_Call) RunAndReturn added in v0.46.0

type NodeDisallowList added in v0.42.1

type NodeDisallowList struct {
	mock.Mock
}

NodeDisallowList is an autogenerated mock type for the NodeDisallowList type

func NewNodeDisallowList added in v0.42.1

func NewNodeDisallowList(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeDisallowList

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

func (*NodeDisallowList) Retrieve added in v0.42.1

func (_mock *NodeDisallowList) Retrieve(disallowList *map[flow.Identifier]struct{}) error

Retrieve provides a mock function for the type NodeDisallowList

func (*NodeDisallowList) Store added in v0.42.1

func (_mock *NodeDisallowList) Store(disallowList map[flow.Identifier]struct{}) error

Store provides a mock function for the type NodeDisallowList

type NodeDisallowList_Expecter added in v0.46.0

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

func (*NodeDisallowList_Expecter) Retrieve added in v0.46.0

func (_e *NodeDisallowList_Expecter) Retrieve(disallowList interface{}) *NodeDisallowList_Retrieve_Call

Retrieve is a helper method to define mock.On call

  • disallowList *map[flow.Identifier]struct{}

func (*NodeDisallowList_Expecter) Store added in v0.46.0

func (_e *NodeDisallowList_Expecter) Store(disallowList interface{}) *NodeDisallowList_Store_Call

Store is a helper method to define mock.On call

  • disallowList map[flow.Identifier]struct{}

type NodeDisallowList_Retrieve_Call added in v0.46.0

type NodeDisallowList_Retrieve_Call struct {
	*mock.Call
}

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

func (*NodeDisallowList_Retrieve_Call) Return added in v0.46.0

func (*NodeDisallowList_Retrieve_Call) Run added in v0.46.0

func (_c *NodeDisallowList_Retrieve_Call) Run(run func(disallowList *map[flow.Identifier]struct{})) *NodeDisallowList_Retrieve_Call

func (*NodeDisallowList_Retrieve_Call) RunAndReturn added in v0.46.0

func (_c *NodeDisallowList_Retrieve_Call) RunAndReturn(run func(disallowList *map[flow.Identifier]struct{}) error) *NodeDisallowList_Retrieve_Call

type NodeDisallowList_Store_Call added in v0.46.0

type NodeDisallowList_Store_Call struct {
	*mock.Call
}

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

func (*NodeDisallowList_Store_Call) Return added in v0.46.0

func (*NodeDisallowList_Store_Call) Run added in v0.46.0

func (_c *NodeDisallowList_Store_Call) Run(run func(disallowList map[flow.Identifier]struct{})) *NodeDisallowList_Store_Call

func (*NodeDisallowList_Store_Call) RunAndReturn added in v0.46.0

func (_c *NodeDisallowList_Store_Call) RunAndReturn(run func(disallowList map[flow.Identifier]struct{}) error) *NodeDisallowList_Store_Call

type Payloads

type Payloads struct {
	mock.Mock
}

Payloads is an autogenerated mock type for the Payloads type

func NewPayloads added in v0.26.1

func NewPayloads(t interface {
	mock.TestingT
	Cleanup(func())
}) *Payloads

NewPayloads creates a new instance of Payloads. 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 (*Payloads) ByBlockID

func (_mock *Payloads) ByBlockID(blockID flow.Identifier) (*flow.Payload, error)

ByBlockID provides a mock function for the type Payloads

func (*Payloads) EXPECT added in v0.46.0

func (_m *Payloads) EXPECT() *Payloads_Expecter

type Payloads_ByBlockID_Call added in v0.46.0

type Payloads_ByBlockID_Call struct {
	*mock.Call
}

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

func (*Payloads_ByBlockID_Call) Return added in v0.46.0

func (*Payloads_ByBlockID_Call) Run added in v0.46.0

func (_c *Payloads_ByBlockID_Call) Run(run func(blockID flow.Identifier)) *Payloads_ByBlockID_Call

func (*Payloads_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *Payloads_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (*flow.Payload, error)) *Payloads_ByBlockID_Call

type Payloads_Expecter added in v0.46.0

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

func (*Payloads_Expecter) ByBlockID added in v0.46.0

func (_e *Payloads_Expecter) ByBlockID(blockID interface{}) *Payloads_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type ProtocolKVStore added in v0.33.30

type ProtocolKVStore struct {
	mock.Mock
}

ProtocolKVStore is an autogenerated mock type for the ProtocolKVStore type

func NewProtocolKVStore added in v0.33.30

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

NewProtocolKVStore creates a new instance of ProtocolKVStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProtocolKVStore) BatchIndex added in v0.43.0

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

BatchIndex provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) BatchStore added in v0.43.0

func (_mock *ProtocolKVStore) BatchStore(rw storage.ReaderBatchWriter, stateID flow.Identifier, data *flow.PSKeyValueStoreData) error

BatchStore provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) ByBlockID added in v0.33.30

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

ByBlockID provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) ByID added in v0.33.30

ByID provides a mock function for the type ProtocolKVStore

func (*ProtocolKVStore) EXPECT added in v0.46.0

type ProtocolKVStore_BatchIndex_Call added in v0.46.0

type ProtocolKVStore_BatchIndex_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_BatchIndex_Call) Return added in v0.46.0

func (*ProtocolKVStore_BatchIndex_Call) Run added in v0.46.0

func (*ProtocolKVStore_BatchIndex_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_BatchStore_Call added in v0.46.0

type ProtocolKVStore_BatchStore_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_BatchStore_Call) Return added in v0.46.0

func (*ProtocolKVStore_BatchStore_Call) Run added in v0.46.0

func (*ProtocolKVStore_BatchStore_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_ByBlockID_Call added in v0.46.0

type ProtocolKVStore_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_ByBlockID_Call) Return added in v0.46.0

func (*ProtocolKVStore_ByBlockID_Call) Run added in v0.46.0

func (*ProtocolKVStore_ByBlockID_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_ByID_Call added in v0.46.0

type ProtocolKVStore_ByID_Call struct {
	*mock.Call
}

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

func (*ProtocolKVStore_ByID_Call) Return added in v0.46.0

func (_c *ProtocolKVStore_ByID_Call) Return(pSKeyValueStoreData *flow.PSKeyValueStoreData, err error) *ProtocolKVStore_ByID_Call

func (*ProtocolKVStore_ByID_Call) Run added in v0.46.0

func (*ProtocolKVStore_ByID_Call) RunAndReturn added in v0.46.0

type ProtocolKVStore_Expecter added in v0.46.0

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

func (*ProtocolKVStore_Expecter) BatchIndex added in v0.46.0

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

BatchIndex is a helper method to define mock.On call

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

func (*ProtocolKVStore_Expecter) BatchStore added in v0.46.0

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

BatchStore is a helper method to define mock.On call

  • rw storage.ReaderBatchWriter
  • stateID flow.Identifier
  • data *flow.PSKeyValueStoreData

func (*ProtocolKVStore_Expecter) ByBlockID added in v0.46.0

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

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

func (*ProtocolKVStore_Expecter) ByID added in v0.46.0

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

ByID is a helper method to define mock.On call

  • id flow.Identifier

type QuorumCertificates added in v0.30.0

type QuorumCertificates struct {
	mock.Mock
}

QuorumCertificates is an autogenerated mock type for the QuorumCertificates type

func NewQuorumCertificates added in v0.30.0

func NewQuorumCertificates(t interface {
	mock.TestingT
	Cleanup(func())
}) *QuorumCertificates

NewQuorumCertificates creates a new instance of QuorumCertificates. 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 (*QuorumCertificates) BatchStore added in v0.43.0

func (_mock *QuorumCertificates) BatchStore(proof lockctx.Proof, readerBatchWriter storage.ReaderBatchWriter, quorumCertificate *flow.QuorumCertificate) error

BatchStore provides a mock function for the type QuorumCertificates

func (*QuorumCertificates) ByBlockID added in v0.30.0

func (_mock *QuorumCertificates) ByBlockID(blockID flow.Identifier) (*flow.QuorumCertificate, error)

ByBlockID provides a mock function for the type QuorumCertificates

func (*QuorumCertificates) EXPECT added in v0.46.0

type QuorumCertificates_BatchStore_Call added in v0.46.0

type QuorumCertificates_BatchStore_Call struct {
	*mock.Call
}

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

func (*QuorumCertificates_BatchStore_Call) Return added in v0.46.0

func (*QuorumCertificates_BatchStore_Call) Run added in v0.46.0

func (*QuorumCertificates_BatchStore_Call) RunAndReturn added in v0.46.0

func (_c *QuorumCertificates_BatchStore_Call) RunAndReturn(run func(proof lockctx.Proof, readerBatchWriter storage.ReaderBatchWriter, quorumCertificate *flow.QuorumCertificate) error) *QuorumCertificates_BatchStore_Call

type QuorumCertificates_ByBlockID_Call added in v0.46.0

type QuorumCertificates_ByBlockID_Call struct {
	*mock.Call
}

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

func (*QuorumCertificates_ByBlockID_Call) Return added in v0.46.0

func (*QuorumCertificates_ByBlockID_Call) Run added in v0.46.0

func (*QuorumCertificates_ByBlockID_Call) RunAndReturn added in v0.46.0

type QuorumCertificates_Expecter added in v0.46.0

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

func (*QuorumCertificates_Expecter) BatchStore added in v0.46.0

func (_e *QuorumCertificates_Expecter) BatchStore(proof interface{}, readerBatchWriter interface{}, quorumCertificate interface{}) *QuorumCertificates_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • proof lockctx.Proof
  • readerBatchWriter storage.ReaderBatchWriter
  • quorumCertificate *flow.QuorumCertificate

func (*QuorumCertificates_Expecter) ByBlockID added in v0.46.0

func (_e *QuorumCertificates_Expecter) ByBlockID(blockID interface{}) *QuorumCertificates_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type Reader added in v0.38.0

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader added in v0.38.0

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

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

func (_m *Reader) EXPECT() *Reader_Expecter

func (*Reader) Get added in v0.38.0

func (_mock *Reader) Get(key []byte) ([]byte, io.Closer, error)

Get provides a mock function for the type Reader

func (*Reader) NewIter added in v0.38.0

func (_mock *Reader) NewIter(startPrefix []byte, endPrefix []byte, ops storage.IteratorOption) (storage.Iterator, error)

NewIter provides a mock function for the type Reader

func (*Reader) NewSeeker added in v0.41.0

func (_mock *Reader) NewSeeker() storage.Seeker

NewSeeker provides a mock function for the type Reader

type ReaderBatchWriter added in v0.38.0

type ReaderBatchWriter struct {
	mock.Mock
}

ReaderBatchWriter is an autogenerated mock type for the ReaderBatchWriter type

func NewReaderBatchWriter added in v0.38.0

func NewReaderBatchWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReaderBatchWriter

NewReaderBatchWriter creates a new instance of ReaderBatchWriter. 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 (*ReaderBatchWriter) AddCallback added in v0.38.0

func (_mock *ReaderBatchWriter) AddCallback(fn func(error))

AddCallback provides a mock function for the type ReaderBatchWriter

func (*ReaderBatchWriter) EXPECT added in v0.46.0

func (*ReaderBatchWriter) GlobalReader added in v0.38.0

func (_mock *ReaderBatchWriter) GlobalReader() storage.Reader

GlobalReader provides a mock function for the type ReaderBatchWriter

func (*ReaderBatchWriter) ScopedValue added in v0.43.2

func (_mock *ReaderBatchWriter) ScopedValue(key string) (any, bool)

ScopedValue provides a mock function for the type ReaderBatchWriter

func (*ReaderBatchWriter) SetScopedValue added in v0.43.2

func (_mock *ReaderBatchWriter) SetScopedValue(key string, value any)

SetScopedValue provides a mock function for the type ReaderBatchWriter

func (*ReaderBatchWriter) Writer added in v0.38.0

func (_mock *ReaderBatchWriter) Writer() storage.Writer

Writer provides a mock function for the type ReaderBatchWriter

type ReaderBatchWriter_AddCallback_Call added in v0.46.0

type ReaderBatchWriter_AddCallback_Call struct {
	*mock.Call
}

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

func (*ReaderBatchWriter_AddCallback_Call) Return added in v0.46.0

func (*ReaderBatchWriter_AddCallback_Call) Run added in v0.46.0

func (*ReaderBatchWriter_AddCallback_Call) RunAndReturn added in v0.46.0

func (_c *ReaderBatchWriter_AddCallback_Call) RunAndReturn(run func(fn func(error))) *ReaderBatchWriter_AddCallback_Call

type ReaderBatchWriter_Expecter added in v0.46.0

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

func (*ReaderBatchWriter_Expecter) AddCallback added in v0.46.0

func (_e *ReaderBatchWriter_Expecter) AddCallback(fn interface{}) *ReaderBatchWriter_AddCallback_Call

AddCallback is a helper method to define mock.On call

  • fn func(error)

func (*ReaderBatchWriter_Expecter) GlobalReader added in v0.46.0

GlobalReader is a helper method to define mock.On call

func (*ReaderBatchWriter_Expecter) ScopedValue added in v0.46.0

func (_e *ReaderBatchWriter_Expecter) ScopedValue(key interface{}) *ReaderBatchWriter_ScopedValue_Call

ScopedValue is a helper method to define mock.On call

  • key string

func (*ReaderBatchWriter_Expecter) SetScopedValue added in v0.46.0

func (_e *ReaderBatchWriter_Expecter) SetScopedValue(key interface{}, value interface{}) *ReaderBatchWriter_SetScopedValue_Call

SetScopedValue is a helper method to define mock.On call

  • key string
  • value any

func (*ReaderBatchWriter_Expecter) Writer added in v0.46.0

Writer is a helper method to define mock.On call

type ReaderBatchWriter_GlobalReader_Call added in v0.46.0

type ReaderBatchWriter_GlobalReader_Call struct {
	*mock.Call
}

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

func (*ReaderBatchWriter_GlobalReader_Call) Return added in v0.46.0

func (*ReaderBatchWriter_GlobalReader_Call) Run added in v0.46.0

func (*ReaderBatchWriter_GlobalReader_Call) RunAndReturn added in v0.46.0

type ReaderBatchWriter_ScopedValue_Call added in v0.46.0

type ReaderBatchWriter_ScopedValue_Call struct {
	*mock.Call
}

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

func (*ReaderBatchWriter_ScopedValue_Call) Return added in v0.46.0

func (*ReaderBatchWriter_ScopedValue_Call) Run added in v0.46.0

func (*ReaderBatchWriter_ScopedValue_Call) RunAndReturn added in v0.46.0

type ReaderBatchWriter_SetScopedValue_Call added in v0.46.0

type ReaderBatchWriter_SetScopedValue_Call struct {
	*mock.Call
}

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

func (*ReaderBatchWriter_SetScopedValue_Call) Return added in v0.46.0

func (*ReaderBatchWriter_SetScopedValue_Call) Run added in v0.46.0

func (*ReaderBatchWriter_SetScopedValue_Call) RunAndReturn added in v0.46.0

type ReaderBatchWriter_Writer_Call added in v0.46.0

type ReaderBatchWriter_Writer_Call struct {
	*mock.Call
}

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

func (*ReaderBatchWriter_Writer_Call) Return added in v0.46.0

func (*ReaderBatchWriter_Writer_Call) Run added in v0.46.0

func (*ReaderBatchWriter_Writer_Call) RunAndReturn added in v0.46.0

type Reader_Expecter added in v0.46.0

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

func (*Reader_Expecter) Get added in v0.46.0

func (_e *Reader_Expecter) Get(key interface{}) *Reader_Get_Call

Get is a helper method to define mock.On call

  • key []byte

func (*Reader_Expecter) NewIter added in v0.46.0

func (_e *Reader_Expecter) NewIter(startPrefix interface{}, endPrefix interface{}, ops interface{}) *Reader_NewIter_Call

NewIter is a helper method to define mock.On call

  • startPrefix []byte
  • endPrefix []byte
  • ops storage.IteratorOption

func (*Reader_Expecter) NewSeeker added in v0.46.0

func (_e *Reader_Expecter) NewSeeker() *Reader_NewSeeker_Call

NewSeeker is a helper method to define mock.On call

type Reader_Get_Call added in v0.46.0

type Reader_Get_Call struct {
	*mock.Call
}

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

func (*Reader_Get_Call) Return added in v0.46.0

func (_c *Reader_Get_Call) Return(value []byte, closer io.Closer, err error) *Reader_Get_Call

func (*Reader_Get_Call) Run added in v0.46.0

func (_c *Reader_Get_Call) Run(run func(key []byte)) *Reader_Get_Call

func (*Reader_Get_Call) RunAndReturn added in v0.46.0

func (_c *Reader_Get_Call) RunAndReturn(run func(key []byte) ([]byte, io.Closer, error)) *Reader_Get_Call

type Reader_NewIter_Call added in v0.46.0

type Reader_NewIter_Call struct {
	*mock.Call
}

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

func (*Reader_NewIter_Call) Return added in v0.46.0

func (_c *Reader_NewIter_Call) Return(iterator storage.Iterator, err error) *Reader_NewIter_Call

func (*Reader_NewIter_Call) Run added in v0.46.0

func (_c *Reader_NewIter_Call) Run(run func(startPrefix []byte, endPrefix []byte, ops storage.IteratorOption)) *Reader_NewIter_Call

func (*Reader_NewIter_Call) RunAndReturn added in v0.46.0

func (_c *Reader_NewIter_Call) RunAndReturn(run func(startPrefix []byte, endPrefix []byte, ops storage.IteratorOption) (storage.Iterator, error)) *Reader_NewIter_Call

type Reader_NewSeeker_Call added in v0.46.0

type Reader_NewSeeker_Call struct {
	*mock.Call
}

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

func (*Reader_NewSeeker_Call) Return added in v0.46.0

func (*Reader_NewSeeker_Call) Run added in v0.46.0

func (_c *Reader_NewSeeker_Call) Run(run func()) *Reader_NewSeeker_Call

func (*Reader_NewSeeker_Call) RunAndReturn added in v0.46.0

func (_c *Reader_NewSeeker_Call) RunAndReturn(run func() storage.Seeker) *Reader_NewSeeker_Call

type RegisterIndex added in v0.32.0

type RegisterIndex struct {
	mock.Mock
}

RegisterIndex is an autogenerated mock type for the RegisterIndex type

func NewRegisterIndex added in v0.32.0

func NewRegisterIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegisterIndex

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

func (_m *RegisterIndex) EXPECT() *RegisterIndex_Expecter

func (*RegisterIndex) FirstHeight added in v0.32.0

func (_mock *RegisterIndex) FirstHeight() uint64

FirstHeight provides a mock function for the type RegisterIndex

func (*RegisterIndex) Get added in v0.32.0

func (_mock *RegisterIndex) Get(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)

Get provides a mock function for the type RegisterIndex

func (*RegisterIndex) LatestHeight added in v0.32.0

func (_mock *RegisterIndex) LatestHeight() uint64

LatestHeight provides a mock function for the type RegisterIndex

func (*RegisterIndex) Store added in v0.32.0

func (_mock *RegisterIndex) Store(entries flow.RegisterEntries, height uint64) error

Store provides a mock function for the type RegisterIndex

type RegisterIndexReader added in v0.41.0

type RegisterIndexReader struct {
	mock.Mock
}

RegisterIndexReader is an autogenerated mock type for the RegisterIndexReader type

func NewRegisterIndexReader added in v0.41.0

func NewRegisterIndexReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegisterIndexReader

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

func (*RegisterIndexReader) FirstHeight added in v0.41.0

func (_mock *RegisterIndexReader) FirstHeight() uint64

FirstHeight provides a mock function for the type RegisterIndexReader

func (*RegisterIndexReader) Get added in v0.41.0

func (_mock *RegisterIndexReader) Get(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)

Get provides a mock function for the type RegisterIndexReader

func (*RegisterIndexReader) LatestHeight added in v0.41.0

func (_mock *RegisterIndexReader) LatestHeight() uint64

LatestHeight provides a mock function for the type RegisterIndexReader

type RegisterIndexReader_Expecter added in v0.46.0

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

func (*RegisterIndexReader_Expecter) FirstHeight added in v0.46.0

FirstHeight is a helper method to define mock.On call

func (*RegisterIndexReader_Expecter) Get added in v0.46.0

func (_e *RegisterIndexReader_Expecter) Get(ID interface{}, height interface{}) *RegisterIndexReader_Get_Call

Get is a helper method to define mock.On call

  • ID flow.RegisterID
  • height uint64

func (*RegisterIndexReader_Expecter) LatestHeight added in v0.46.0

LatestHeight is a helper method to define mock.On call

type RegisterIndexReader_FirstHeight_Call added in v0.46.0

type RegisterIndexReader_FirstHeight_Call struct {
	*mock.Call
}

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

func (*RegisterIndexReader_FirstHeight_Call) Return added in v0.46.0

func (*RegisterIndexReader_FirstHeight_Call) Run added in v0.46.0

func (*RegisterIndexReader_FirstHeight_Call) RunAndReturn added in v0.46.0

type RegisterIndexReader_Get_Call added in v0.46.0

type RegisterIndexReader_Get_Call struct {
	*mock.Call
}

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

func (*RegisterIndexReader_Get_Call) Return added in v0.46.0

func (*RegisterIndexReader_Get_Call) Run added in v0.46.0

func (*RegisterIndexReader_Get_Call) RunAndReturn added in v0.46.0

type RegisterIndexReader_LatestHeight_Call added in v0.46.0

type RegisterIndexReader_LatestHeight_Call struct {
	*mock.Call
}

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

func (*RegisterIndexReader_LatestHeight_Call) Return added in v0.46.0

func (*RegisterIndexReader_LatestHeight_Call) Run added in v0.46.0

func (*RegisterIndexReader_LatestHeight_Call) RunAndReturn added in v0.46.0

type RegisterIndex_Expecter added in v0.46.0

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

func (*RegisterIndex_Expecter) FirstHeight added in v0.46.0

FirstHeight is a helper method to define mock.On call

func (*RegisterIndex_Expecter) Get added in v0.46.0

func (_e *RegisterIndex_Expecter) Get(ID interface{}, height interface{}) *RegisterIndex_Get_Call

Get is a helper method to define mock.On call

  • ID flow.RegisterID
  • height uint64

func (*RegisterIndex_Expecter) LatestHeight added in v0.46.0

LatestHeight is a helper method to define mock.On call

func (*RegisterIndex_Expecter) Store added in v0.46.0

func (_e *RegisterIndex_Expecter) Store(entries interface{}, height interface{}) *RegisterIndex_Store_Call

Store is a helper method to define mock.On call

  • entries flow.RegisterEntries
  • height uint64

type RegisterIndex_FirstHeight_Call added in v0.46.0

type RegisterIndex_FirstHeight_Call struct {
	*mock.Call
}

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

func (*RegisterIndex_FirstHeight_Call) Return added in v0.46.0

func (*RegisterIndex_FirstHeight_Call) Run added in v0.46.0

func (*RegisterIndex_FirstHeight_Call) RunAndReturn added in v0.46.0

type RegisterIndex_Get_Call added in v0.46.0

type RegisterIndex_Get_Call struct {
	*mock.Call
}

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

func (*RegisterIndex_Get_Call) Return added in v0.46.0

func (*RegisterIndex_Get_Call) Run added in v0.46.0

func (_c *RegisterIndex_Get_Call) Run(run func(ID flow.RegisterID, height uint64)) *RegisterIndex_Get_Call

func (*RegisterIndex_Get_Call) RunAndReturn added in v0.46.0

func (_c *RegisterIndex_Get_Call) RunAndReturn(run func(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)) *RegisterIndex_Get_Call

type RegisterIndex_LatestHeight_Call added in v0.46.0

type RegisterIndex_LatestHeight_Call struct {
	*mock.Call
}

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

func (*RegisterIndex_LatestHeight_Call) Return added in v0.46.0

func (*RegisterIndex_LatestHeight_Call) Run added in v0.46.0

func (*RegisterIndex_LatestHeight_Call) RunAndReturn added in v0.46.0

type RegisterIndex_Store_Call added in v0.46.0

type RegisterIndex_Store_Call struct {
	*mock.Call
}

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

func (*RegisterIndex_Store_Call) Return added in v0.46.0

func (*RegisterIndex_Store_Call) Run added in v0.46.0

func (_c *RegisterIndex_Store_Call) Run(run func(entries flow.RegisterEntries, height uint64)) *RegisterIndex_Store_Call

func (*RegisterIndex_Store_Call) RunAndReturn added in v0.46.0

func (_c *RegisterIndex_Store_Call) RunAndReturn(run func(entries flow.RegisterEntries, height uint64) error) *RegisterIndex_Store_Call

type ResultApprovals added in v0.14.0

type ResultApprovals struct {
	mock.Mock
}

ResultApprovals is an autogenerated mock type for the ResultApprovals type

func NewResultApprovals added in v0.26.1

func NewResultApprovals(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResultApprovals

NewResultApprovals creates a new instance of ResultApprovals. 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 (*ResultApprovals) ByChunk added in v0.14.0

func (_mock *ResultApprovals) ByChunk(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error)

ByChunk provides a mock function for the type ResultApprovals

func (*ResultApprovals) ByID added in v0.14.0

func (_mock *ResultApprovals) ByID(approvalID flow.Identifier) (*flow.ResultApproval, error)

ByID provides a mock function for the type ResultApprovals

func (*ResultApprovals) EXPECT added in v0.46.0

func (*ResultApprovals) StoreMyApproval added in v0.43.0

func (_mock *ResultApprovals) StoreMyApproval(approval *flow.ResultApproval) func(lctx lockctx.Proof) error

StoreMyApproval provides a mock function for the type ResultApprovals

type ResultApprovals_ByChunk_Call added in v0.46.0

type ResultApprovals_ByChunk_Call struct {
	*mock.Call
}

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

func (*ResultApprovals_ByChunk_Call) Return added in v0.46.0

func (*ResultApprovals_ByChunk_Call) Run added in v0.46.0

func (_c *ResultApprovals_ByChunk_Call) Run(run func(resultID flow.Identifier, chunkIndex uint64)) *ResultApprovals_ByChunk_Call

func (*ResultApprovals_ByChunk_Call) RunAndReturn added in v0.46.0

func (_c *ResultApprovals_ByChunk_Call) RunAndReturn(run func(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error)) *ResultApprovals_ByChunk_Call

type ResultApprovals_ByID_Call added in v0.46.0

type ResultApprovals_ByID_Call struct {
	*mock.Call
}

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

func (*ResultApprovals_ByID_Call) Return added in v0.46.0

func (*ResultApprovals_ByID_Call) Run added in v0.46.0

func (_c *ResultApprovals_ByID_Call) Run(run func(approvalID flow.Identifier)) *ResultApprovals_ByID_Call

func (*ResultApprovals_ByID_Call) RunAndReturn added in v0.46.0

func (_c *ResultApprovals_ByID_Call) RunAndReturn(run func(approvalID flow.Identifier) (*flow.ResultApproval, error)) *ResultApprovals_ByID_Call

type ResultApprovals_Expecter added in v0.46.0

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

func (*ResultApprovals_Expecter) ByChunk added in v0.46.0

func (_e *ResultApprovals_Expecter) ByChunk(resultID interface{}, chunkIndex interface{}) *ResultApprovals_ByChunk_Call

ByChunk is a helper method to define mock.On call

  • resultID flow.Identifier
  • chunkIndex uint64

func (*ResultApprovals_Expecter) ByID added in v0.46.0

func (_e *ResultApprovals_Expecter) ByID(approvalID interface{}) *ResultApprovals_ByID_Call

ByID is a helper method to define mock.On call

  • approvalID flow.Identifier

func (*ResultApprovals_Expecter) StoreMyApproval added in v0.46.0

func (_e *ResultApprovals_Expecter) StoreMyApproval(approval interface{}) *ResultApprovals_StoreMyApproval_Call

StoreMyApproval is a helper method to define mock.On call

  • approval *flow.ResultApproval

type ResultApprovals_StoreMyApproval_Call added in v0.46.0

type ResultApprovals_StoreMyApproval_Call struct {
	*mock.Call
}

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

func (*ResultApprovals_StoreMyApproval_Call) Return added in v0.46.0

func (*ResultApprovals_StoreMyApproval_Call) Run added in v0.46.0

func (*ResultApprovals_StoreMyApproval_Call) RunAndReturn added in v0.46.0

type SafeBeaconKeys added in v0.23.9

type SafeBeaconKeys struct {
	mock.Mock
}

SafeBeaconKeys is an autogenerated mock type for the SafeBeaconKeys type

func NewSafeBeaconKeys added in v0.26.1

func NewSafeBeaconKeys(t interface {
	mock.TestingT
	Cleanup(func())
}) *SafeBeaconKeys

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

func (*SafeBeaconKeys) RetrieveMyBeaconPrivateKey added in v0.23.9

func (_mock *SafeBeaconKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function for the type SafeBeaconKeys

type SafeBeaconKeys_Expecter added in v0.46.0

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

func (*SafeBeaconKeys_Expecter) RetrieveMyBeaconPrivateKey added in v0.46.0

func (_e *SafeBeaconKeys_Expecter) RetrieveMyBeaconPrivateKey(epochCounter interface{}) *SafeBeaconKeys_RetrieveMyBeaconPrivateKey_Call

RetrieveMyBeaconPrivateKey is a helper method to define mock.On call

  • epochCounter uint64

type SafeBeaconKeys_RetrieveMyBeaconPrivateKey_Call added in v0.46.0

type SafeBeaconKeys_RetrieveMyBeaconPrivateKey_Call struct {
	*mock.Call
}

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

func (*SafeBeaconKeys_RetrieveMyBeaconPrivateKey_Call) Return added in v0.46.0

func (*SafeBeaconKeys_RetrieveMyBeaconPrivateKey_Call) Run added in v0.46.0

func (*SafeBeaconKeys_RetrieveMyBeaconPrivateKey_Call) RunAndReturn added in v0.46.0

type ScheduledTransactions added in v0.43.2

type ScheduledTransactions struct {
	mock.Mock
}

ScheduledTransactions is an autogenerated mock type for the ScheduledTransactions type

func NewScheduledTransactions added in v0.43.2

func NewScheduledTransactions(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScheduledTransactions

NewScheduledTransactions creates a new instance of ScheduledTransactions. 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 (*ScheduledTransactions) BatchIndex added in v0.43.2

func (_mock *ScheduledTransactions) BatchIndex(lctx lockctx.Proof, blockID flow.Identifier, txID flow.Identifier, scheduledTxID uint64, batch storage.ReaderBatchWriter) error

BatchIndex provides a mock function for the type ScheduledTransactions

func (*ScheduledTransactions) BlockIDByTransactionID added in v0.43.2

func (_mock *ScheduledTransactions) BlockIDByTransactionID(txID flow.Identifier) (flow.Identifier, error)

BlockIDByTransactionID provides a mock function for the type ScheduledTransactions

func (*ScheduledTransactions) EXPECT added in v0.46.0

func (*ScheduledTransactions) TransactionIDByID added in v0.43.2

func (_mock *ScheduledTransactions) TransactionIDByID(scheduledTxID uint64) (flow.Identifier, error)

TransactionIDByID provides a mock function for the type ScheduledTransactions

type ScheduledTransactionsReader added in v0.43.2

type ScheduledTransactionsReader struct {
	mock.Mock
}

ScheduledTransactionsReader is an autogenerated mock type for the ScheduledTransactionsReader type

func NewScheduledTransactionsReader added in v0.43.2

func NewScheduledTransactionsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScheduledTransactionsReader

NewScheduledTransactionsReader creates a new instance of ScheduledTransactionsReader. 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 (*ScheduledTransactionsReader) BlockIDByTransactionID added in v0.43.2

func (_mock *ScheduledTransactionsReader) BlockIDByTransactionID(txID flow.Identifier) (flow.Identifier, error)

BlockIDByTransactionID provides a mock function for the type ScheduledTransactionsReader

func (*ScheduledTransactionsReader) EXPECT added in v0.46.0

func (*ScheduledTransactionsReader) TransactionIDByID added in v0.43.2

func (_mock *ScheduledTransactionsReader) TransactionIDByID(scheduledTxID uint64) (flow.Identifier, error)

TransactionIDByID provides a mock function for the type ScheduledTransactionsReader

type ScheduledTransactionsReader_BlockIDByTransactionID_Call added in v0.46.0

type ScheduledTransactionsReader_BlockIDByTransactionID_Call struct {
	*mock.Call
}

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

func (*ScheduledTransactionsReader_BlockIDByTransactionID_Call) Return added in v0.46.0

func (*ScheduledTransactionsReader_BlockIDByTransactionID_Call) Run added in v0.46.0

func (*ScheduledTransactionsReader_BlockIDByTransactionID_Call) RunAndReturn added in v0.46.0

type ScheduledTransactionsReader_Expecter added in v0.46.0

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

func (*ScheduledTransactionsReader_Expecter) BlockIDByTransactionID added in v0.46.0

BlockIDByTransactionID is a helper method to define mock.On call

  • txID flow.Identifier

func (*ScheduledTransactionsReader_Expecter) TransactionIDByID added in v0.46.0

func (_e *ScheduledTransactionsReader_Expecter) TransactionIDByID(scheduledTxID interface{}) *ScheduledTransactionsReader_TransactionIDByID_Call

TransactionIDByID is a helper method to define mock.On call

  • scheduledTxID uint64

type ScheduledTransactionsReader_TransactionIDByID_Call added in v0.46.0

type ScheduledTransactionsReader_TransactionIDByID_Call struct {
	*mock.Call
}

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

func (*ScheduledTransactionsReader_TransactionIDByID_Call) Return added in v0.46.0

func (*ScheduledTransactionsReader_TransactionIDByID_Call) Run added in v0.46.0

func (*ScheduledTransactionsReader_TransactionIDByID_Call) RunAndReturn added in v0.46.0

type ScheduledTransactions_BatchIndex_Call added in v0.46.0

type ScheduledTransactions_BatchIndex_Call struct {
	*mock.Call
}

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

func (*ScheduledTransactions_BatchIndex_Call) Return added in v0.46.0

func (*ScheduledTransactions_BatchIndex_Call) Run added in v0.46.0

func (*ScheduledTransactions_BatchIndex_Call) RunAndReturn added in v0.46.0

type ScheduledTransactions_BlockIDByTransactionID_Call added in v0.46.0

type ScheduledTransactions_BlockIDByTransactionID_Call struct {
	*mock.Call
}

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

func (*ScheduledTransactions_BlockIDByTransactionID_Call) Return added in v0.46.0

func (*ScheduledTransactions_BlockIDByTransactionID_Call) Run added in v0.46.0

func (*ScheduledTransactions_BlockIDByTransactionID_Call) RunAndReturn added in v0.46.0

type ScheduledTransactions_Expecter added in v0.46.0

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

func (*ScheduledTransactions_Expecter) BatchIndex added in v0.46.0

func (_e *ScheduledTransactions_Expecter) BatchIndex(lctx interface{}, blockID interface{}, txID interface{}, scheduledTxID interface{}, batch interface{}) *ScheduledTransactions_BatchIndex_Call

BatchIndex is a helper method to define mock.On call

  • lctx lockctx.Proof
  • blockID flow.Identifier
  • txID flow.Identifier
  • scheduledTxID uint64
  • batch storage.ReaderBatchWriter

func (*ScheduledTransactions_Expecter) BlockIDByTransactionID added in v0.46.0

func (_e *ScheduledTransactions_Expecter) BlockIDByTransactionID(txID interface{}) *ScheduledTransactions_BlockIDByTransactionID_Call

BlockIDByTransactionID is a helper method to define mock.On call

  • txID flow.Identifier

func (*ScheduledTransactions_Expecter) TransactionIDByID added in v0.46.0

func (_e *ScheduledTransactions_Expecter) TransactionIDByID(scheduledTxID interface{}) *ScheduledTransactions_TransactionIDByID_Call

TransactionIDByID is a helper method to define mock.On call

  • scheduledTxID uint64

type ScheduledTransactions_TransactionIDByID_Call added in v0.46.0

type ScheduledTransactions_TransactionIDByID_Call struct {
	*mock.Call
}

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

func (*ScheduledTransactions_TransactionIDByID_Call) Return added in v0.46.0

func (*ScheduledTransactions_TransactionIDByID_Call) Run added in v0.46.0

func (*ScheduledTransactions_TransactionIDByID_Call) RunAndReturn added in v0.46.0

type Seals

type Seals struct {
	mock.Mock
}

Seals is an autogenerated mock type for the Seals type

func NewSeals added in v0.26.1

func NewSeals(t interface {
	mock.TestingT
	Cleanup(func())
}) *Seals

NewSeals creates a new instance of Seals. 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 (*Seals) ByID

func (_mock *Seals) ByID(sealID flow.Identifier) (*flow.Seal, error)

ByID provides a mock function for the type Seals

func (*Seals) EXPECT added in v0.46.0

func (_m *Seals) EXPECT() *Seals_Expecter

func (*Seals) FinalizedSealForBlock added in v0.26.6

func (_mock *Seals) FinalizedSealForBlock(blockID flow.Identifier) (*flow.Seal, error)

FinalizedSealForBlock provides a mock function for the type Seals

func (*Seals) HighestInFork added in v0.26.6

func (_mock *Seals) HighestInFork(blockID flow.Identifier) (*flow.Seal, error)

HighestInFork provides a mock function for the type Seals

func (*Seals) Store

func (_mock *Seals) Store(seal *flow.Seal) error

Store provides a mock function for the type Seals

type Seals_ByID_Call added in v0.46.0

type Seals_ByID_Call struct {
	*mock.Call
}

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

func (*Seals_ByID_Call) Return added in v0.46.0

func (_c *Seals_ByID_Call) Return(seal *flow.Seal, err error) *Seals_ByID_Call

func (*Seals_ByID_Call) Run added in v0.46.0

func (_c *Seals_ByID_Call) Run(run func(sealID flow.Identifier)) *Seals_ByID_Call

func (*Seals_ByID_Call) RunAndReturn added in v0.46.0

func (_c *Seals_ByID_Call) RunAndReturn(run func(sealID flow.Identifier) (*flow.Seal, error)) *Seals_ByID_Call

type Seals_Expecter added in v0.46.0

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

func (*Seals_Expecter) ByID added in v0.46.0

func (_e *Seals_Expecter) ByID(sealID interface{}) *Seals_ByID_Call

ByID is a helper method to define mock.On call

  • sealID flow.Identifier

func (*Seals_Expecter) FinalizedSealForBlock added in v0.46.0

func (_e *Seals_Expecter) FinalizedSealForBlock(blockID interface{}) *Seals_FinalizedSealForBlock_Call

FinalizedSealForBlock is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Seals_Expecter) HighestInFork added in v0.46.0

func (_e *Seals_Expecter) HighestInFork(blockID interface{}) *Seals_HighestInFork_Call

HighestInFork is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Seals_Expecter) Store added in v0.46.0

func (_e *Seals_Expecter) Store(seal interface{}) *Seals_Store_Call

Store is a helper method to define mock.On call

  • seal *flow.Seal

type Seals_FinalizedSealForBlock_Call added in v0.46.0

type Seals_FinalizedSealForBlock_Call struct {
	*mock.Call
}

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

func (*Seals_FinalizedSealForBlock_Call) Return added in v0.46.0

func (*Seals_FinalizedSealForBlock_Call) Run added in v0.46.0

func (*Seals_FinalizedSealForBlock_Call) RunAndReturn added in v0.46.0

type Seals_HighestInFork_Call added in v0.46.0

type Seals_HighestInFork_Call struct {
	*mock.Call
}

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

func (*Seals_HighestInFork_Call) Return added in v0.46.0

func (*Seals_HighestInFork_Call) Run added in v0.46.0

func (*Seals_HighestInFork_Call) RunAndReturn added in v0.46.0

func (_c *Seals_HighestInFork_Call) RunAndReturn(run func(blockID flow.Identifier) (*flow.Seal, error)) *Seals_HighestInFork_Call

type Seals_Store_Call added in v0.46.0

type Seals_Store_Call struct {
	*mock.Call
}

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

func (*Seals_Store_Call) Return added in v0.46.0

func (_c *Seals_Store_Call) Return(err error) *Seals_Store_Call

func (*Seals_Store_Call) Run added in v0.46.0

func (_c *Seals_Store_Call) Run(run func(seal *flow.Seal)) *Seals_Store_Call

func (*Seals_Store_Call) RunAndReturn added in v0.46.0

func (_c *Seals_Store_Call) RunAndReturn(run func(seal *flow.Seal) error) *Seals_Store_Call

type Seeker added in v0.41.0

type Seeker struct {
	mock.Mock
}

Seeker is an autogenerated mock type for the Seeker type

func NewSeeker added in v0.41.0

func NewSeeker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Seeker

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

func (_m *Seeker) EXPECT() *Seeker_Expecter

func (*Seeker) SeekLE added in v0.41.0

func (_mock *Seeker) SeekLE(startPrefix []byte, key []byte) ([]byte, error)

SeekLE provides a mock function for the type Seeker

type Seeker_Expecter added in v0.46.0

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

func (*Seeker_Expecter) SeekLE added in v0.46.0

func (_e *Seeker_Expecter) SeekLE(startPrefix interface{}, key interface{}) *Seeker_SeekLE_Call

SeekLE is a helper method to define mock.On call

  • startPrefix []byte
  • key []byte

type Seeker_SeekLE_Call added in v0.46.0

type Seeker_SeekLE_Call struct {
	*mock.Call
}

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

func (*Seeker_SeekLE_Call) Return added in v0.46.0

func (_c *Seeker_SeekLE_Call) Return(bytes []byte, err error) *Seeker_SeekLE_Call

func (*Seeker_SeekLE_Call) Run added in v0.46.0

func (_c *Seeker_SeekLE_Call) Run(run func(startPrefix []byte, key []byte)) *Seeker_SeekLE_Call

func (*Seeker_SeekLE_Call) RunAndReturn added in v0.46.0

func (_c *Seeker_SeekLE_Call) RunAndReturn(run func(startPrefix []byte, key []byte) ([]byte, error)) *Seeker_SeekLE_Call

type ServiceEvents added in v0.14.0

type ServiceEvents struct {
	mock.Mock
}

ServiceEvents is an autogenerated mock type for the ServiceEvents type

func NewServiceEvents added in v0.26.1

func NewServiceEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceEvents

NewServiceEvents creates a new instance of ServiceEvents. 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 (*ServiceEvents) BatchRemoveByBlockID added in v0.30.0

func (_mock *ServiceEvents) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function for the type ServiceEvents

func (*ServiceEvents) BatchStore added in v0.15.0

func (_mock *ServiceEvents) BatchStore(lctx lockctx.Proof, blockID flow.Identifier, events []flow.Event, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function for the type ServiceEvents

func (*ServiceEvents) ByBlockID added in v0.14.0

func (_mock *ServiceEvents) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)

ByBlockID provides a mock function for the type ServiceEvents

func (*ServiceEvents) EXPECT added in v0.46.0

func (_m *ServiceEvents) EXPECT() *ServiceEvents_Expecter

type ServiceEvents_BatchRemoveByBlockID_Call added in v0.46.0

type ServiceEvents_BatchRemoveByBlockID_Call struct {
	*mock.Call
}

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

func (*ServiceEvents_BatchRemoveByBlockID_Call) Return added in v0.46.0

func (*ServiceEvents_BatchRemoveByBlockID_Call) Run added in v0.46.0

func (*ServiceEvents_BatchRemoveByBlockID_Call) RunAndReturn added in v0.46.0

type ServiceEvents_BatchStore_Call added in v0.46.0

type ServiceEvents_BatchStore_Call struct {
	*mock.Call
}

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

func (*ServiceEvents_BatchStore_Call) Return added in v0.46.0

func (*ServiceEvents_BatchStore_Call) Run added in v0.46.0

func (*ServiceEvents_BatchStore_Call) RunAndReturn added in v0.46.0

type ServiceEvents_ByBlockID_Call added in v0.46.0

type ServiceEvents_ByBlockID_Call struct {
	*mock.Call
}

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

func (*ServiceEvents_ByBlockID_Call) Return added in v0.46.0

func (*ServiceEvents_ByBlockID_Call) Run added in v0.46.0

func (*ServiceEvents_ByBlockID_Call) RunAndReturn added in v0.46.0

func (_c *ServiceEvents_ByBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) ([]flow.Event, error)) *ServiceEvents_ByBlockID_Call

type ServiceEvents_Expecter added in v0.46.0

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

func (*ServiceEvents_Expecter) BatchRemoveByBlockID added in v0.46.0

func (_e *ServiceEvents_Expecter) BatchRemoveByBlockID(blockID interface{}, batch interface{}) *ServiceEvents_BatchRemoveByBlockID_Call

BatchRemoveByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier
  • batch storage.ReaderBatchWriter

func (*ServiceEvents_Expecter) BatchStore added in v0.46.0

func (_e *ServiceEvents_Expecter) BatchStore(lctx interface{}, blockID interface{}, events interface{}, batch interface{}) *ServiceEvents_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • blockID flow.Identifier
  • events []flow.Event
  • batch storage.ReaderBatchWriter

func (*ServiceEvents_Expecter) ByBlockID added in v0.46.0

func (_e *ServiceEvents_Expecter) ByBlockID(blockID interface{}) *ServiceEvents_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • blockID flow.Identifier

type StoredChunkDataPacks added in v0.43.2

type StoredChunkDataPacks struct {
	mock.Mock
}

StoredChunkDataPacks is an autogenerated mock type for the StoredChunkDataPacks type

func NewStoredChunkDataPacks added in v0.43.2

func NewStoredChunkDataPacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *StoredChunkDataPacks

NewStoredChunkDataPacks creates a new instance of StoredChunkDataPacks. 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 (*StoredChunkDataPacks) BatchRemove added in v0.43.2

func (_mock *StoredChunkDataPacks) BatchRemove(chunkDataPackIDs []flow.Identifier, rw storage.ReaderBatchWriter) error

BatchRemove provides a mock function for the type StoredChunkDataPacks

func (*StoredChunkDataPacks) ByID added in v0.43.2

ByID provides a mock function for the type StoredChunkDataPacks

func (*StoredChunkDataPacks) EXPECT added in v0.46.0

func (*StoredChunkDataPacks) Remove added in v0.43.2

func (_mock *StoredChunkDataPacks) Remove(chunkDataPackIDs []flow.Identifier) error

Remove provides a mock function for the type StoredChunkDataPacks

func (*StoredChunkDataPacks) StoreChunkDataPacks added in v0.43.2

func (_mock *StoredChunkDataPacks) StoreChunkDataPacks(cs []*storage.StoredChunkDataPack) ([]flow.Identifier, error)

StoreChunkDataPacks provides a mock function for the type StoredChunkDataPacks

type StoredChunkDataPacks_BatchRemove_Call added in v0.46.0

type StoredChunkDataPacks_BatchRemove_Call struct {
	*mock.Call
}

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

func (*StoredChunkDataPacks_BatchRemove_Call) Return added in v0.46.0

func (*StoredChunkDataPacks_BatchRemove_Call) Run added in v0.46.0

func (*StoredChunkDataPacks_BatchRemove_Call) RunAndReturn added in v0.46.0

type StoredChunkDataPacks_ByID_Call added in v0.46.0

type StoredChunkDataPacks_ByID_Call struct {
	*mock.Call
}

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

func (*StoredChunkDataPacks_ByID_Call) Return added in v0.46.0

func (*StoredChunkDataPacks_ByID_Call) Run added in v0.46.0

func (*StoredChunkDataPacks_ByID_Call) RunAndReturn added in v0.46.0

type StoredChunkDataPacks_Expecter added in v0.46.0

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

func (*StoredChunkDataPacks_Expecter) BatchRemove added in v0.46.0

func (_e *StoredChunkDataPacks_Expecter) BatchRemove(chunkDataPackIDs interface{}, rw interface{}) *StoredChunkDataPacks_BatchRemove_Call

BatchRemove is a helper method to define mock.On call

  • chunkDataPackIDs []flow.Identifier
  • rw storage.ReaderBatchWriter

func (*StoredChunkDataPacks_Expecter) ByID added in v0.46.0

ByID is a helper method to define mock.On call

  • id flow.Identifier

func (*StoredChunkDataPacks_Expecter) Remove added in v0.46.0

func (_e *StoredChunkDataPacks_Expecter) Remove(chunkDataPackIDs interface{}) *StoredChunkDataPacks_Remove_Call

Remove is a helper method to define mock.On call

  • chunkDataPackIDs []flow.Identifier

func (*StoredChunkDataPacks_Expecter) StoreChunkDataPacks added in v0.46.0

func (_e *StoredChunkDataPacks_Expecter) StoreChunkDataPacks(cs interface{}) *StoredChunkDataPacks_StoreChunkDataPacks_Call

StoreChunkDataPacks is a helper method to define mock.On call

  • cs []*storage.StoredChunkDataPack

type StoredChunkDataPacks_Remove_Call added in v0.46.0

type StoredChunkDataPacks_Remove_Call struct {
	*mock.Call
}

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

func (*StoredChunkDataPacks_Remove_Call) Return added in v0.46.0

func (*StoredChunkDataPacks_Remove_Call) Run added in v0.46.0

func (*StoredChunkDataPacks_Remove_Call) RunAndReturn added in v0.46.0

func (_c *StoredChunkDataPacks_Remove_Call) RunAndReturn(run func(chunkDataPackIDs []flow.Identifier) error) *StoredChunkDataPacks_Remove_Call

type StoredChunkDataPacks_StoreChunkDataPacks_Call added in v0.46.0

type StoredChunkDataPacks_StoreChunkDataPacks_Call struct {
	*mock.Call
}

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

func (*StoredChunkDataPacks_StoreChunkDataPacks_Call) Return added in v0.46.0

func (*StoredChunkDataPacks_StoreChunkDataPacks_Call) Run added in v0.46.0

func (*StoredChunkDataPacks_StoreChunkDataPacks_Call) RunAndReturn added in v0.46.0

type Transaction added in v0.15.2

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction added in v0.26.1

func NewTransaction(t interface {
	mock.TestingT
	Cleanup(func())
}) *Transaction

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

func (_m *Transaction) EXPECT() *Transaction_Expecter

func (*Transaction) Set added in v0.15.2

func (_mock *Transaction) Set(key []byte, val []byte) error

Set provides a mock function for the type Transaction

type TransactionResultErrorMessages added in v0.38.0

type TransactionResultErrorMessages struct {
	mock.Mock
}

TransactionResultErrorMessages is an autogenerated mock type for the TransactionResultErrorMessages type

func NewTransactionResultErrorMessages added in v0.38.0

func NewTransactionResultErrorMessages(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResultErrorMessages

NewTransactionResultErrorMessages creates a new instance of TransactionResultErrorMessages. 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 (*TransactionResultErrorMessages) BatchStore added in v0.43.0

func (_mock *TransactionResultErrorMessages) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, transactionResultErrorMessages []flow.TransactionResultErrorMessage) error

BatchStore provides a mock function for the type TransactionResultErrorMessages

func (*TransactionResultErrorMessages) ByBlockID added in v0.38.0

ByBlockID provides a mock function for the type TransactionResultErrorMessages

func (*TransactionResultErrorMessages) ByBlockIDTransactionID added in v0.38.0

func (_mock *TransactionResultErrorMessages) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionID provides a mock function for the type TransactionResultErrorMessages

func (*TransactionResultErrorMessages) ByBlockIDTransactionIndex added in v0.38.0

func (_mock *TransactionResultErrorMessages) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionIndex provides a mock function for the type TransactionResultErrorMessages

func (*TransactionResultErrorMessages) EXPECT added in v0.46.0

func (*TransactionResultErrorMessages) Exists added in v0.38.0

func (_mock *TransactionResultErrorMessages) Exists(blockID flow.Identifier) (bool, error)

Exists provides a mock function for the type TransactionResultErrorMessages

func (*TransactionResultErrorMessages) Store added in v0.38.0

func (_mock *TransactionResultErrorMessages) Store(lctx lockctx.Proof, blockID flow.Identifier, transactionResultErrorMessages []flow.TransactionResultErrorMessage) error

Store provides a mock function for the type TransactionResultErrorMessages

type TransactionResultErrorMessagesReader added in v0.41.0

type TransactionResultErrorMessagesReader struct {
	mock.Mock
}

TransactionResultErrorMessagesReader is an autogenerated mock type for the TransactionResultErrorMessagesReader type

func NewTransactionResultErrorMessagesReader added in v0.41.0

func NewTransactionResultErrorMessagesReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResultErrorMessagesReader

NewTransactionResultErrorMessagesReader creates a new instance of TransactionResultErrorMessagesReader. 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 (*TransactionResultErrorMessagesReader) ByBlockID added in v0.41.0

ByBlockID provides a mock function for the type TransactionResultErrorMessagesReader

func (*TransactionResultErrorMessagesReader) ByBlockIDTransactionID added in v0.41.0

func (_mock *TransactionResultErrorMessagesReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionID provides a mock function for the type TransactionResultErrorMessagesReader

func (*TransactionResultErrorMessagesReader) ByBlockIDTransactionIndex added in v0.41.0

func (_mock *TransactionResultErrorMessagesReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionIndex provides a mock function for the type TransactionResultErrorMessagesReader

func (*TransactionResultErrorMessagesReader) EXPECT added in v0.46.0

func (*TransactionResultErrorMessagesReader) Exists added in v0.41.0

Exists provides a mock function for the type TransactionResultErrorMessagesReader

type TransactionResultErrorMessagesReader_ByBlockIDTransactionID_Call added in v0.46.0

type TransactionResultErrorMessagesReader_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessagesReader_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*TransactionResultErrorMessagesReader_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*TransactionResultErrorMessagesReader_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessagesReader_ByBlockIDTransactionIndex_Call added in v0.46.0

type TransactionResultErrorMessagesReader_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessagesReader_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*TransactionResultErrorMessagesReader_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*TransactionResultErrorMessagesReader_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessagesReader_ByBlockID_Call added in v0.46.0

type TransactionResultErrorMessagesReader_ByBlockID_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessagesReader_ByBlockID_Call) Return added in v0.46.0

func (*TransactionResultErrorMessagesReader_ByBlockID_Call) Run added in v0.46.0

func (*TransactionResultErrorMessagesReader_ByBlockID_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessagesReader_Exists_Call added in v0.46.0

type TransactionResultErrorMessagesReader_Exists_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessagesReader_Exists_Call) Return added in v0.46.0

func (*TransactionResultErrorMessagesReader_Exists_Call) Run added in v0.46.0

func (*TransactionResultErrorMessagesReader_Exists_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessagesReader_Expecter added in v0.46.0

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

func (*TransactionResultErrorMessagesReader_Expecter) ByBlockID added in v0.46.0

ByBlockID is a helper method to define mock.On call

  • id flow.Identifier

func (*TransactionResultErrorMessagesReader_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *TransactionResultErrorMessagesReader_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *TransactionResultErrorMessagesReader_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*TransactionResultErrorMessagesReader_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *TransactionResultErrorMessagesReader_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *TransactionResultErrorMessagesReader_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

func (*TransactionResultErrorMessagesReader_Expecter) Exists added in v0.46.0

Exists is a helper method to define mock.On call

  • blockID flow.Identifier

type TransactionResultErrorMessages_BatchStore_Call added in v0.46.0

type TransactionResultErrorMessages_BatchStore_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessages_BatchStore_Call) Return added in v0.46.0

func (*TransactionResultErrorMessages_BatchStore_Call) Run added in v0.46.0

func (*TransactionResultErrorMessages_BatchStore_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessages_ByBlockIDTransactionID_Call added in v0.46.0

type TransactionResultErrorMessages_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessages_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*TransactionResultErrorMessages_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*TransactionResultErrorMessages_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessages_ByBlockIDTransactionIndex_Call added in v0.46.0

type TransactionResultErrorMessages_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessages_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*TransactionResultErrorMessages_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*TransactionResultErrorMessages_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessages_ByBlockID_Call added in v0.46.0

type TransactionResultErrorMessages_ByBlockID_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessages_ByBlockID_Call) Return added in v0.46.0

func (*TransactionResultErrorMessages_ByBlockID_Call) Run added in v0.46.0

func (*TransactionResultErrorMessages_ByBlockID_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessages_Exists_Call added in v0.46.0

type TransactionResultErrorMessages_Exists_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessages_Exists_Call) Return added in v0.46.0

func (*TransactionResultErrorMessages_Exists_Call) Run added in v0.46.0

func (*TransactionResultErrorMessages_Exists_Call) RunAndReturn added in v0.46.0

type TransactionResultErrorMessages_Expecter added in v0.46.0

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

func (*TransactionResultErrorMessages_Expecter) BatchStore added in v0.46.0

func (_e *TransactionResultErrorMessages_Expecter) BatchStore(lctx interface{}, rw interface{}, blockID interface{}, transactionResultErrorMessages interface{}) *TransactionResultErrorMessages_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • rw storage.ReaderBatchWriter
  • blockID flow.Identifier
  • transactionResultErrorMessages []flow.TransactionResultErrorMessage

func (*TransactionResultErrorMessages_Expecter) ByBlockID added in v0.46.0

ByBlockID is a helper method to define mock.On call

  • id flow.Identifier

func (*TransactionResultErrorMessages_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *TransactionResultErrorMessages_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *TransactionResultErrorMessages_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*TransactionResultErrorMessages_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *TransactionResultErrorMessages_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *TransactionResultErrorMessages_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

func (*TransactionResultErrorMessages_Expecter) Exists added in v0.46.0

Exists is a helper method to define mock.On call

  • blockID flow.Identifier

func (*TransactionResultErrorMessages_Expecter) Store added in v0.46.0

func (_e *TransactionResultErrorMessages_Expecter) Store(lctx interface{}, blockID interface{}, transactionResultErrorMessages interface{}) *TransactionResultErrorMessages_Store_Call

Store is a helper method to define mock.On call

  • lctx lockctx.Proof
  • blockID flow.Identifier
  • transactionResultErrorMessages []flow.TransactionResultErrorMessage

type TransactionResultErrorMessages_Store_Call added in v0.46.0

type TransactionResultErrorMessages_Store_Call struct {
	*mock.Call
}

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

func (*TransactionResultErrorMessages_Store_Call) Return added in v0.46.0

func (*TransactionResultErrorMessages_Store_Call) Run added in v0.46.0

func (*TransactionResultErrorMessages_Store_Call) RunAndReturn added in v0.46.0

type TransactionResults

type TransactionResults struct {
	mock.Mock
}

TransactionResults is an autogenerated mock type for the TransactionResults type

func NewTransactionResults added in v0.26.1

func NewTransactionResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResults

NewTransactionResults creates a new instance of TransactionResults. 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 (*TransactionResults) BatchRemoveByBlockID added in v0.39.4

func (_mock *TransactionResults) BatchRemoveByBlockID(id flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function for the type TransactionResults

func (*TransactionResults) BatchStore

func (_mock *TransactionResults) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, transactionResults []flow.TransactionResult) error

BatchStore provides a mock function for the type TransactionResults

func (*TransactionResults) ByBlockID added in v0.24.11

func (_mock *TransactionResults) ByBlockID(id flow.Identifier) ([]flow.TransactionResult, error)

ByBlockID provides a mock function for the type TransactionResults

func (*TransactionResults) ByBlockIDTransactionID

func (_mock *TransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)

ByBlockIDTransactionID provides a mock function for the type TransactionResults

func (*TransactionResults) ByBlockIDTransactionIndex added in v0.24.8

func (_mock *TransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResult, error)

ByBlockIDTransactionIndex provides a mock function for the type TransactionResults

func (*TransactionResults) EXPECT added in v0.46.0

type TransactionResultsReader added in v0.41.0

type TransactionResultsReader struct {
	mock.Mock
}

TransactionResultsReader is an autogenerated mock type for the TransactionResultsReader type

func NewTransactionResultsReader added in v0.41.0

func NewTransactionResultsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResultsReader

NewTransactionResultsReader creates a new instance of TransactionResultsReader. 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 (*TransactionResultsReader) ByBlockID added in v0.41.0

ByBlockID provides a mock function for the type TransactionResultsReader

func (*TransactionResultsReader) ByBlockIDTransactionID added in v0.41.0

func (_mock *TransactionResultsReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)

ByBlockIDTransactionID provides a mock function for the type TransactionResultsReader

func (*TransactionResultsReader) ByBlockIDTransactionIndex added in v0.41.0

func (_mock *TransactionResultsReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResult, error)

ByBlockIDTransactionIndex provides a mock function for the type TransactionResultsReader

func (*TransactionResultsReader) EXPECT added in v0.46.0

type TransactionResultsReader_ByBlockIDTransactionID_Call added in v0.46.0

type TransactionResultsReader_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*TransactionResultsReader_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*TransactionResultsReader_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*TransactionResultsReader_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type TransactionResultsReader_ByBlockIDTransactionIndex_Call added in v0.46.0

type TransactionResultsReader_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*TransactionResultsReader_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*TransactionResultsReader_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*TransactionResultsReader_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type TransactionResultsReader_ByBlockID_Call added in v0.46.0

type TransactionResultsReader_ByBlockID_Call struct {
	*mock.Call
}

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

func (*TransactionResultsReader_ByBlockID_Call) Return added in v0.46.0

func (*TransactionResultsReader_ByBlockID_Call) Run added in v0.46.0

func (*TransactionResultsReader_ByBlockID_Call) RunAndReturn added in v0.46.0

type TransactionResultsReader_Expecter added in v0.46.0

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

func (*TransactionResultsReader_Expecter) ByBlockID added in v0.46.0

ByBlockID is a helper method to define mock.On call

  • id flow.Identifier

func (*TransactionResultsReader_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *TransactionResultsReader_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *TransactionResultsReader_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*TransactionResultsReader_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *TransactionResultsReader_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *TransactionResultsReader_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

type TransactionResults_BatchRemoveByBlockID_Call added in v0.46.0

type TransactionResults_BatchRemoveByBlockID_Call struct {
	*mock.Call
}

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

func (*TransactionResults_BatchRemoveByBlockID_Call) Return added in v0.46.0

func (*TransactionResults_BatchRemoveByBlockID_Call) Run added in v0.46.0

func (*TransactionResults_BatchRemoveByBlockID_Call) RunAndReturn added in v0.46.0

type TransactionResults_BatchStore_Call added in v0.46.0

type TransactionResults_BatchStore_Call struct {
	*mock.Call
}

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

func (*TransactionResults_BatchStore_Call) Return added in v0.46.0

func (*TransactionResults_BatchStore_Call) Run added in v0.46.0

func (*TransactionResults_BatchStore_Call) RunAndReturn added in v0.46.0

type TransactionResults_ByBlockIDTransactionID_Call added in v0.46.0

type TransactionResults_ByBlockIDTransactionID_Call struct {
	*mock.Call
}

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

func (*TransactionResults_ByBlockIDTransactionID_Call) Return added in v0.46.0

func (*TransactionResults_ByBlockIDTransactionID_Call) Run added in v0.46.0

func (*TransactionResults_ByBlockIDTransactionID_Call) RunAndReturn added in v0.46.0

type TransactionResults_ByBlockIDTransactionIndex_Call added in v0.46.0

type TransactionResults_ByBlockIDTransactionIndex_Call struct {
	*mock.Call
}

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

func (*TransactionResults_ByBlockIDTransactionIndex_Call) Return added in v0.46.0

func (*TransactionResults_ByBlockIDTransactionIndex_Call) Run added in v0.46.0

func (*TransactionResults_ByBlockIDTransactionIndex_Call) RunAndReturn added in v0.46.0

type TransactionResults_ByBlockID_Call added in v0.46.0

type TransactionResults_ByBlockID_Call struct {
	*mock.Call
}

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

func (*TransactionResults_ByBlockID_Call) Return added in v0.46.0

func (*TransactionResults_ByBlockID_Call) Run added in v0.46.0

func (*TransactionResults_ByBlockID_Call) RunAndReturn added in v0.46.0

type TransactionResults_Expecter added in v0.46.0

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

func (*TransactionResults_Expecter) BatchRemoveByBlockID added in v0.46.0

func (_e *TransactionResults_Expecter) BatchRemoveByBlockID(id interface{}, batch interface{}) *TransactionResults_BatchRemoveByBlockID_Call

BatchRemoveByBlockID is a helper method to define mock.On call

  • id flow.Identifier
  • batch storage.ReaderBatchWriter

func (*TransactionResults_Expecter) BatchStore added in v0.46.0

func (_e *TransactionResults_Expecter) BatchStore(lctx interface{}, rw interface{}, blockID interface{}, transactionResults interface{}) *TransactionResults_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • lctx lockctx.Proof
  • rw storage.ReaderBatchWriter
  • blockID flow.Identifier
  • transactionResults []flow.TransactionResult

func (*TransactionResults_Expecter) ByBlockID added in v0.46.0

func (_e *TransactionResults_Expecter) ByBlockID(id interface{}) *TransactionResults_ByBlockID_Call

ByBlockID is a helper method to define mock.On call

  • id flow.Identifier

func (*TransactionResults_Expecter) ByBlockIDTransactionID added in v0.46.0

func (_e *TransactionResults_Expecter) ByBlockIDTransactionID(blockID interface{}, transactionID interface{}) *TransactionResults_ByBlockIDTransactionID_Call

ByBlockIDTransactionID is a helper method to define mock.On call

  • blockID flow.Identifier
  • transactionID flow.Identifier

func (*TransactionResults_Expecter) ByBlockIDTransactionIndex added in v0.46.0

func (_e *TransactionResults_Expecter) ByBlockIDTransactionIndex(blockID interface{}, txIndex interface{}) *TransactionResults_ByBlockIDTransactionIndex_Call

ByBlockIDTransactionIndex is a helper method to define mock.On call

  • blockID flow.Identifier
  • txIndex uint32

type Transaction_Expecter added in v0.46.0

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

func (*Transaction_Expecter) Set added in v0.46.0

func (_e *Transaction_Expecter) Set(key interface{}, val interface{}) *Transaction_Set_Call

Set is a helper method to define mock.On call

  • key []byte
  • val []byte

type Transaction_Set_Call added in v0.46.0

type Transaction_Set_Call struct {
	*mock.Call
}

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

func (*Transaction_Set_Call) Return added in v0.46.0

func (*Transaction_Set_Call) Run added in v0.46.0

func (_c *Transaction_Set_Call) Run(run func(key []byte, val []byte)) *Transaction_Set_Call

func (*Transaction_Set_Call) RunAndReturn added in v0.46.0

func (_c *Transaction_Set_Call) RunAndReturn(run func(key []byte, val []byte) error) *Transaction_Set_Call

type Transactions

type Transactions struct {
	mock.Mock
}

Transactions is an autogenerated mock type for the Transactions type

func NewTransactions added in v0.26.1

func NewTransactions(t interface {
	mock.TestingT
	Cleanup(func())
}) *Transactions

NewTransactions creates a new instance of Transactions. 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 (*Transactions) BatchStore added in v0.43.0

func (_mock *Transactions) BatchStore(tx *flow.TransactionBody, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function for the type Transactions

func (*Transactions) ByID

func (_mock *Transactions) ByID(txID flow.Identifier) (*flow.TransactionBody, error)

ByID provides a mock function for the type Transactions

func (*Transactions) EXPECT added in v0.46.0

func (_m *Transactions) EXPECT() *Transactions_Expecter

func (*Transactions) Store

func (_mock *Transactions) Store(tx *flow.TransactionBody) error

Store provides a mock function for the type Transactions

type TransactionsReader added in v0.41.0

type TransactionsReader struct {
	mock.Mock
}

TransactionsReader is an autogenerated mock type for the TransactionsReader type

func NewTransactionsReader added in v0.41.0

func NewTransactionsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionsReader

NewTransactionsReader creates a new instance of TransactionsReader. 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 (*TransactionsReader) ByID added in v0.41.0

ByID provides a mock function for the type TransactionsReader

func (*TransactionsReader) EXPECT added in v0.46.0

type TransactionsReader_ByID_Call added in v0.46.0

type TransactionsReader_ByID_Call struct {
	*mock.Call
}

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

func (*TransactionsReader_ByID_Call) Return added in v0.46.0

func (*TransactionsReader_ByID_Call) Run added in v0.46.0

func (*TransactionsReader_ByID_Call) RunAndReturn added in v0.46.0

type TransactionsReader_Expecter added in v0.46.0

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

func (*TransactionsReader_Expecter) ByID added in v0.46.0

func (_e *TransactionsReader_Expecter) ByID(txID interface{}) *TransactionsReader_ByID_Call

ByID is a helper method to define mock.On call

  • txID flow.Identifier

type Transactions_BatchStore_Call added in v0.46.0

type Transactions_BatchStore_Call struct {
	*mock.Call
}

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

func (*Transactions_BatchStore_Call) Return added in v0.46.0

func (*Transactions_BatchStore_Call) Run added in v0.46.0

func (*Transactions_BatchStore_Call) RunAndReturn added in v0.46.0

type Transactions_ByID_Call added in v0.46.0

type Transactions_ByID_Call struct {
	*mock.Call
}

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

func (*Transactions_ByID_Call) Return added in v0.46.0

func (_c *Transactions_ByID_Call) Return(transactionBody *flow.TransactionBody, err error) *Transactions_ByID_Call

func (*Transactions_ByID_Call) Run added in v0.46.0

func (*Transactions_ByID_Call) RunAndReturn added in v0.46.0

type Transactions_Expecter added in v0.46.0

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

func (*Transactions_Expecter) BatchStore added in v0.46.0

func (_e *Transactions_Expecter) BatchStore(tx interface{}, batch interface{}) *Transactions_BatchStore_Call

BatchStore is a helper method to define mock.On call

  • tx *flow.TransactionBody
  • batch storage.ReaderBatchWriter

func (*Transactions_Expecter) ByID added in v0.46.0

func (_e *Transactions_Expecter) ByID(txID interface{}) *Transactions_ByID_Call

ByID is a helper method to define mock.On call

  • txID flow.Identifier

func (*Transactions_Expecter) Store added in v0.46.0

func (_e *Transactions_Expecter) Store(tx interface{}) *Transactions_Store_Call

Store is a helper method to define mock.On call

  • tx *flow.TransactionBody

type Transactions_Store_Call added in v0.46.0

type Transactions_Store_Call struct {
	*mock.Call
}

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

func (*Transactions_Store_Call) Return added in v0.46.0

func (*Transactions_Store_Call) Run added in v0.46.0

func (*Transactions_Store_Call) RunAndReturn added in v0.46.0

type VersionBeacons added in v0.31.0

type VersionBeacons struct {
	mock.Mock
}

VersionBeacons is an autogenerated mock type for the VersionBeacons type

func NewVersionBeacons added in v0.31.0

func NewVersionBeacons(t interface {
	mock.TestingT
	Cleanup(func())
}) *VersionBeacons

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

func (*VersionBeacons) Highest added in v0.31.0

func (_mock *VersionBeacons) Highest(belowOrEqualTo uint64) (*flow.SealedVersionBeacon, error)

Highest provides a mock function for the type VersionBeacons

type VersionBeacons_Expecter added in v0.46.0

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

func (*VersionBeacons_Expecter) Highest added in v0.46.0

func (_e *VersionBeacons_Expecter) Highest(belowOrEqualTo interface{}) *VersionBeacons_Highest_Call

Highest is a helper method to define mock.On call

  • belowOrEqualTo uint64

type VersionBeacons_Highest_Call added in v0.46.0

type VersionBeacons_Highest_Call struct {
	*mock.Call
}

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

func (*VersionBeacons_Highest_Call) Return added in v0.46.0

func (*VersionBeacons_Highest_Call) Run added in v0.46.0

func (_c *VersionBeacons_Highest_Call) Run(run func(belowOrEqualTo uint64)) *VersionBeacons_Highest_Call

func (*VersionBeacons_Highest_Call) RunAndReturn added in v0.46.0

func (_c *VersionBeacons_Highest_Call) RunAndReturn(run func(belowOrEqualTo uint64) (*flow.SealedVersionBeacon, error)) *VersionBeacons_Highest_Call

type Writer added in v0.38.0

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter added in v0.38.0

func NewWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Writer

NewWriter creates a new instance of Writer. 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 (*Writer) Delete added in v0.38.0

func (_mock *Writer) Delete(key []byte) error

Delete provides a mock function for the type Writer

func (*Writer) DeleteByRange added in v0.38.0

func (_mock *Writer) DeleteByRange(globalReader storage.Reader, startPrefix []byte, endPrefix []byte) error

DeleteByRange provides a mock function for the type Writer

func (*Writer) EXPECT added in v0.46.0

func (_m *Writer) EXPECT() *Writer_Expecter

func (*Writer) Set added in v0.38.0

func (_mock *Writer) Set(k []byte, v []byte) error

Set provides a mock function for the type Writer

type Writer_DeleteByRange_Call added in v0.46.0

type Writer_DeleteByRange_Call struct {
	*mock.Call
}

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

func (*Writer_DeleteByRange_Call) Return added in v0.46.0

func (*Writer_DeleteByRange_Call) Run added in v0.46.0

func (_c *Writer_DeleteByRange_Call) Run(run func(globalReader storage.Reader, startPrefix []byte, endPrefix []byte)) *Writer_DeleteByRange_Call

func (*Writer_DeleteByRange_Call) RunAndReturn added in v0.46.0

func (_c *Writer_DeleteByRange_Call) RunAndReturn(run func(globalReader storage.Reader, startPrefix []byte, endPrefix []byte) error) *Writer_DeleteByRange_Call

type Writer_Delete_Call added in v0.46.0

type Writer_Delete_Call struct {
	*mock.Call
}

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

func (*Writer_Delete_Call) Return added in v0.46.0

func (_c *Writer_Delete_Call) Return(err error) *Writer_Delete_Call

func (*Writer_Delete_Call) Run added in v0.46.0

func (_c *Writer_Delete_Call) Run(run func(key []byte)) *Writer_Delete_Call

func (*Writer_Delete_Call) RunAndReturn added in v0.46.0

func (_c *Writer_Delete_Call) RunAndReturn(run func(key []byte) error) *Writer_Delete_Call

type Writer_Expecter added in v0.46.0

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

func (*Writer_Expecter) Delete added in v0.46.0

func (_e *Writer_Expecter) Delete(key interface{}) *Writer_Delete_Call

Delete is a helper method to define mock.On call

  • key []byte

func (*Writer_Expecter) DeleteByRange added in v0.46.0

func (_e *Writer_Expecter) DeleteByRange(globalReader interface{}, startPrefix interface{}, endPrefix interface{}) *Writer_DeleteByRange_Call

DeleteByRange is a helper method to define mock.On call

  • globalReader storage.Reader
  • startPrefix []byte
  • endPrefix []byte

func (*Writer_Expecter) Set added in v0.46.0

func (_e *Writer_Expecter) Set(k interface{}, v interface{}) *Writer_Set_Call

Set is a helper method to define mock.On call

  • k []byte
  • v []byte

type Writer_Set_Call added in v0.46.0

type Writer_Set_Call struct {
	*mock.Call
}

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

func (*Writer_Set_Call) Return added in v0.46.0

func (_c *Writer_Set_Call) Return(err error) *Writer_Set_Call

func (*Writer_Set_Call) Run added in v0.46.0

func (_c *Writer_Set_Call) Run(run func(k []byte, v []byte)) *Writer_Set_Call

func (*Writer_Set_Call) RunAndReturn added in v0.46.0

func (_c *Writer_Set_Call) RunAndReturn(run func(k []byte, v []byte) error) *Writer_Set_Call

Jump to

Keyboard shortcuts

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