mock

package
v0.33.22 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutedFinalizedWAL added in v0.33.1

type ExecutedFinalizedWAL struct {
	mock.Mock
}

ExecutedFinalizedWAL is an autogenerated mock type for the ExecutedFinalizedWAL type

func NewExecutedFinalizedWAL added in v0.33.1

func NewExecutedFinalizedWAL(t mockConstructorTestingTNewExecutedFinalizedWAL) *ExecutedFinalizedWAL

NewExecutedFinalizedWAL creates a new instance of ExecutedFinalizedWAL. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecutedFinalizedWAL) Append added in v0.33.1

func (_m *ExecutedFinalizedWAL) Append(height uint64, registers flow.RegisterEntries) error

Append provides a mock function with given fields: height, registers

func (*ExecutedFinalizedWAL) GetReader added in v0.33.1

func (_m *ExecutedFinalizedWAL) GetReader(height uint64) execution.WALReader

GetReader provides a mock function with given fields: height

func (*ExecutedFinalizedWAL) Latest added in v0.33.1

func (_m *ExecutedFinalizedWAL) Latest() (uint64, error)

Latest provides a mock function with given fields:

type ExtendableStorageSnapshot added in v0.33.1

type ExtendableStorageSnapshot struct {
	mock.Mock
}

ExtendableStorageSnapshot is an autogenerated mock type for the ExtendableStorageSnapshot type

func NewExtendableStorageSnapshot added in v0.33.1

func NewExtendableStorageSnapshot(t mockConstructorTestingTNewExtendableStorageSnapshot) *ExtendableStorageSnapshot

NewExtendableStorageSnapshot creates a new instance of ExtendableStorageSnapshot. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExtendableStorageSnapshot) Commitment added in v0.33.1

Commitment provides a mock function with given fields:

func (*ExtendableStorageSnapshot) Extend added in v0.33.1

Extend provides a mock function with given fields: newCommit, updatedRegisters

func (*ExtendableStorageSnapshot) Get added in v0.33.1

Get provides a mock function with given fields: id

type FinalizedReader added in v0.33.1

type FinalizedReader struct {
	mock.Mock
}

FinalizedReader is an autogenerated mock type for the FinalizedReader type

func NewFinalizedReader added in v0.33.1

func NewFinalizedReader(t mockConstructorTestingTNewFinalizedReader) *FinalizedReader

NewFinalizedReader creates a new instance of FinalizedReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FinalizedReader) FinalizedBlockIDAtHeight added in v0.33.1

func (_m *FinalizedReader) FinalizedBlockIDAtHeight(height uint64) (flow.Identifier, error)

FinalizedBlockIDAtHeight provides a mock function with given fields: height

type InMemoryRegisterStore added in v0.33.1

type InMemoryRegisterStore struct {
	mock.Mock
}

InMemoryRegisterStore is an autogenerated mock type for the InMemoryRegisterStore type

func NewInMemoryRegisterStore added in v0.33.1

func NewInMemoryRegisterStore(t mockConstructorTestingTNewInMemoryRegisterStore) *InMemoryRegisterStore

NewInMemoryRegisterStore creates a new instance of InMemoryRegisterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*InMemoryRegisterStore) GetRegister added in v0.33.1

func (_m *InMemoryRegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) ([]byte, error)

GetRegister provides a mock function with given fields: height, blockID, register

func (*InMemoryRegisterStore) GetUpdatedRegisters added in v0.33.1

func (_m *InMemoryRegisterStore) GetUpdatedRegisters(height uint64, blockID flow.Identifier) (flow.RegisterEntries, error)

GetUpdatedRegisters provides a mock function with given fields: height, blockID

func (*InMemoryRegisterStore) IsBlockExecuted added in v0.33.1

func (_m *InMemoryRegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)

IsBlockExecuted provides a mock function with given fields: height, blockID

func (*InMemoryRegisterStore) Prune added in v0.33.1

func (_m *InMemoryRegisterStore) Prune(finalizedHeight uint64, finalizedBlockID flow.Identifier) error

Prune provides a mock function with given fields: finalizedHeight, finalizedBlockID

func (*InMemoryRegisterStore) PrunedHeight added in v0.33.1

func (_m *InMemoryRegisterStore) PrunedHeight() uint64

PrunedHeight provides a mock function with given fields:

func (*InMemoryRegisterStore) SaveRegisters added in v0.33.1

func (_m *InMemoryRegisterStore) SaveRegisters(height uint64, blockID flow.Identifier, parentID flow.Identifier, registers flow.RegisterEntries) error

SaveRegisters provides a mock function with given fields: height, blockID, parentID, registers

type RegisterStore added in v0.33.1

type RegisterStore struct {
	mock.Mock
}

RegisterStore is an autogenerated mock type for the RegisterStore type

func NewRegisterStore added in v0.33.1

func NewRegisterStore(t mockConstructorTestingTNewRegisterStore) *RegisterStore

NewRegisterStore creates a new instance of RegisterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RegisterStore) GetRegister added in v0.33.1

func (_m *RegisterStore) GetRegister(height uint64, blockID flow.Identifier, register flow.RegisterID) ([]byte, error)

GetRegister provides a mock function with given fields: height, blockID, register

func (*RegisterStore) IsBlockExecuted added in v0.33.1

func (_m *RegisterStore) IsBlockExecuted(height uint64, blockID flow.Identifier) (bool, error)

IsBlockExecuted provides a mock function with given fields: height, blockID

func (*RegisterStore) LastFinalizedAndExecutedHeight added in v0.33.1

func (_m *RegisterStore) LastFinalizedAndExecutedHeight() uint64

LastFinalizedAndExecutedHeight provides a mock function with given fields:

func (*RegisterStore) OnBlockFinalized added in v0.33.1

func (_m *RegisterStore) OnBlockFinalized() error

OnBlockFinalized provides a mock function with given fields:

func (*RegisterStore) SaveRegisters added in v0.33.1

func (_m *RegisterStore) SaveRegisters(header *flow.Header, registers flow.RegisterEntries) error

SaveRegisters provides a mock function with given fields: header, registers

type RegisterStoreNotifier added in v0.33.1

type RegisterStoreNotifier struct {
	mock.Mock
}

RegisterStoreNotifier is an autogenerated mock type for the RegisterStoreNotifier type

func NewRegisterStoreNotifier added in v0.33.1

func NewRegisterStoreNotifier(t mockConstructorTestingTNewRegisterStoreNotifier) *RegisterStoreNotifier

NewRegisterStoreNotifier creates a new instance of RegisterStoreNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RegisterStoreNotifier) OnFinalizedAndExecutedHeightUpdated added in v0.33.1

func (_m *RegisterStoreNotifier) OnFinalizedAndExecutedHeightUpdated(height uint64)

OnFinalizedAndExecutedHeightUpdated provides a mock function with given fields: height

type ScriptExecutor

type ScriptExecutor struct {
	mock.Mock
}

ScriptExecutor is an autogenerated mock type for the ScriptExecutor type

func NewScriptExecutor

func NewScriptExecutor(t mockConstructorTestingTNewScriptExecutor) *ScriptExecutor

NewScriptExecutor creates a new instance of ScriptExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ScriptExecutor) ExecuteScriptAtBlockID

func (_m *ScriptExecutor) ExecuteScriptAtBlockID(ctx context.Context, script []byte, arguments [][]byte, blockID flow.Identifier) ([]byte, error)

ExecuteScriptAtBlockID provides a mock function with given fields: ctx, script, arguments, blockID

func (*ScriptExecutor) GetAccount

func (_m *ScriptExecutor) GetAccount(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)

GetAccount provides a mock function with given fields: ctx, address, blockID

func (*ScriptExecutor) GetRegisterAtBlockID

func (_m *ScriptExecutor) GetRegisterAtBlockID(ctx context.Context, owner []byte, key []byte, blockID flow.Identifier) ([]byte, error)

GetRegisterAtBlockID provides a mock function with given fields: ctx, owner, key, blockID

type WALReader added in v0.33.1

type WALReader struct {
	mock.Mock
}

WALReader is an autogenerated mock type for the WALReader type

func NewWALReader added in v0.33.1

func NewWALReader(t mockConstructorTestingTNewWALReader) *WALReader

NewWALReader creates a new instance of WALReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WALReader) Next added in v0.33.1

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

Next provides a mock function with given fields:

Jump to

Keyboard shortcuts

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