mock

package
v0.37.0-crescendo-RC4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*ComputationManager) ComputeBlock

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

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

func (*ComputationManager) ExecuteScript

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

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

func (*ComputationManager) GetAccount

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

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

Jump to

Keyboard shortcuts

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