mock

package
v0.30.3-fix-read-leaf-... Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputationManager

type ComputationManager struct {
	mock.Mock
}

ComputationManager is an autogenerated mock type for the ComputationManager type

func NewComputationManager added in v0.26.1

func NewComputationManager(t mockConstructorTestingTNewComputationManager) *ComputationManager

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

func (*ComputationManager) ComputeBlock

func (_m *ComputationManager) ComputeBlock(ctx context.Context, parentBlockExecutionResultID flow.Identifier, block *entity.ExecutableBlock, snapshot state.StorageSnapshot) (*execution.ComputationResult, error)

ComputeBlock provides a mock function with given fields: ctx, parentBlockExecutionResultID, block, snapshot

func (*ComputationManager) ExecuteScript

func (_m *ComputationManager) ExecuteScript(ctx context.Context, script []byte, arguments [][]byte, blockHeader *flow.Header, snapshot state.StorageSnapshot) ([]byte, error)

ExecuteScript provides a mock function with given fields: ctx, script, arguments, blockHeader, snapshot

func (*ComputationManager) GetAccount

func (_m *ComputationManager) GetAccount(ctx context.Context, addr flow.Address, header *flow.Header, snapshot state.StorageSnapshot) (*flow.Account, error)

GetAccount provides a mock function with given fields: ctx, addr, header, snapshot

Jump to

Keyboard shortcuts

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