mock

package
v0.30.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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