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

mock

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionState

type ExecutionState struct {
	mock.Mock
}

ExecutionState is an autogenerated mock type for the ExecutionState type

func (*ExecutionState) ChunkDataPackByChunkID

func (_m *ExecutionState) ChunkDataPackByChunkID(_a0 context.Context, _a1 flow.Identifier) (*flow.ChunkDataPack, error)

ChunkDataPackByChunkID provides a mock function with given fields: _a0, _a1

func (*ExecutionState) CommitDelta

func (_m *ExecutionState) CommitDelta(_a0 context.Context, _a1 delta.Delta, _a2 []byte) ([]byte, error)

CommitDelta provides a mock function with given fields: _a0, _a1, _a2

func (*ExecutionState) GetCollection

func (_m *ExecutionState) GetCollection(identifier flow.Identifier) (*flow.Collection, error)

GetCollection provides a mock function with given fields: identifier

func (*ExecutionState) GetExecutionResultID

func (_m *ExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)

GetExecutionResultID provides a mock function with given fields: _a0, _a1

func (*ExecutionState) GetHighestExecutedBlockID

func (_m *ExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)

GetHighestExecutedBlockID provides a mock function with given fields: _a0

func (*ExecutionState) GetProof added in v0.10.0

func (_m *ExecutionState) GetProof(_a0 context.Context, _a1 []byte, _a2 []flow.RegisterID) ([]byte, error)

GetProof provides a mock function with given fields: _a0, _a1, _a2

func (*ExecutionState) GetRegisters

func (_m *ExecutionState) GetRegisters(_a0 context.Context, _a1 []byte, _a2 []flow.RegisterID) ([][]byte, error)

GetRegisters provides a mock function with given fields: _a0, _a1, _a2

func (*ExecutionState) NewView

func (_m *ExecutionState) NewView(_a0 []byte) *delta.View

NewView provides a mock function with given fields: _a0

func (*ExecutionState) PersistChunkDataPack

func (_m *ExecutionState) PersistChunkDataPack(_a0 context.Context, _a1 *flow.ChunkDataPack) error

PersistChunkDataPack provides a mock function with given fields: _a0, _a1

func (*ExecutionState) PersistExecutionReceipt

func (_m *ExecutionState) PersistExecutionReceipt(_a0 context.Context, _a1 *flow.ExecutionReceipt) error

PersistExecutionReceipt provides a mock function with given fields: _a0, _a1

func (*ExecutionState) PersistExecutionResult added in v0.11.0

func (_m *ExecutionState) PersistExecutionResult(ctx context.Context, result *flow.ExecutionResult) error

PersistExecutionResult provides a mock function with given fields: ctx, result

func (*ExecutionState) PersistStateCommitment

func (_m *ExecutionState) PersistStateCommitment(_a0 context.Context, _a1 flow.Identifier, _a2 []byte) error

PersistStateCommitment provides a mock function with given fields: _a0, _a1, _a2

func (*ExecutionState) PersistStateInteractions

func (_m *ExecutionState) PersistStateInteractions(_a0 context.Context, _a1 flow.Identifier, _a2 []*delta.Snapshot) error

PersistStateInteractions provides a mock function with given fields: _a0, _a1, _a2

func (*ExecutionState) RetrieveStateDelta

func (_m *ExecutionState) RetrieveStateDelta(_a0 context.Context, _a1 flow.Identifier) (*messages.ExecutionStateDelta, error)

RetrieveStateDelta provides a mock function with given fields: _a0, _a1

func (*ExecutionState) StateCommitmentByBlockID

func (_m *ExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]byte, error)

StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1

func (*ExecutionState) UpdateHighestExecutedBlockIfHigher

func (_m *ExecutionState) UpdateHighestExecutedBlockIfHigher(_a0 context.Context, _a1 *flow.Header) error

UpdateHighestExecutedBlockIfHigher provides a mock function with given fields: _a0, _a1

type ReadOnlyExecutionState

type ReadOnlyExecutionState struct {
	mock.Mock
}

ReadOnlyExecutionState is an autogenerated mock type for the ReadOnlyExecutionState type

func (*ReadOnlyExecutionState) ChunkDataPackByChunkID

func (_m *ReadOnlyExecutionState) ChunkDataPackByChunkID(_a0 context.Context, _a1 flow.Identifier) (*flow.ChunkDataPack, error)

ChunkDataPackByChunkID provides a mock function with given fields: _a0, _a1

func (*ReadOnlyExecutionState) GetCollection

func (_m *ReadOnlyExecutionState) GetCollection(identifier flow.Identifier) (*flow.Collection, error)

GetCollection provides a mock function with given fields: identifier

func (*ReadOnlyExecutionState) GetExecutionResultID

func (_m *ReadOnlyExecutionState) GetExecutionResultID(_a0 context.Context, _a1 flow.Identifier) (flow.Identifier, error)

GetExecutionResultID provides a mock function with given fields: _a0, _a1

func (*ReadOnlyExecutionState) GetHighestExecutedBlockID

func (_m *ReadOnlyExecutionState) GetHighestExecutedBlockID(_a0 context.Context) (uint64, flow.Identifier, error)

GetHighestExecutedBlockID provides a mock function with given fields: _a0

func (*ReadOnlyExecutionState) GetProof added in v0.10.0

func (_m *ReadOnlyExecutionState) GetProof(_a0 context.Context, _a1 []byte, _a2 []flow.RegisterID) ([]byte, error)

GetProof provides a mock function with given fields: _a0, _a1, _a2

func (*ReadOnlyExecutionState) GetRegisters

func (_m *ReadOnlyExecutionState) GetRegisters(_a0 context.Context, _a1 []byte, _a2 []flow.RegisterID) ([][]byte, error)

GetRegisters provides a mock function with given fields: _a0, _a1, _a2

func (*ReadOnlyExecutionState) NewView

func (_m *ReadOnlyExecutionState) NewView(_a0 []byte) *delta.View

NewView provides a mock function with given fields: _a0

func (*ReadOnlyExecutionState) RetrieveStateDelta

RetrieveStateDelta provides a mock function with given fields: _a0, _a1

func (*ReadOnlyExecutionState) StateCommitmentByBlockID

func (_m *ReadOnlyExecutionState) StateCommitmentByBlockID(_a0 context.Context, _a1 flow.Identifier) ([]byte, error)

StateCommitmentByBlockID provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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