mock

package
v0.33.12 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 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 EntropyProviderPerBlock added in v0.32.1

type EntropyProviderPerBlock struct {
	mock.Mock
}

EntropyProviderPerBlock is an autogenerated mock type for the EntropyProviderPerBlock type

func NewEntropyProviderPerBlock added in v0.32.1

func NewEntropyProviderPerBlock(t mockConstructorTestingTNewEntropyProviderPerBlock) *EntropyProviderPerBlock

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

func (*EntropyProviderPerBlock) AtBlockID added in v0.32.1

AtBlockID provides a mock function with given fields: blockID

type Executor

type Executor struct {
	mock.Mock
}

Executor is an autogenerated mock type for the Executor type

func NewExecutor

func NewExecutor(t mockConstructorTestingTNewExecutor) *Executor

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

func (*Executor) ExecuteScript

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

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

func (*Executor) GetAccount

func (_m *Executor) 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