mock

package
v0.44.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: AGPL-3.0 Imports: 3 Imported by: ? 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 ScriptExecutor

type ScriptExecutor struct {
	mock.Mock
}

ScriptExecutor is an autogenerated mock type for the ScriptExecutor type

func NewScriptExecutor

func NewScriptExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScriptExecutor

NewScriptExecutor creates a new instance of ScriptExecutor. 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 (*ScriptExecutor) ExecuteAtBlockHeight

func (_m *ScriptExecutor) ExecuteAtBlockHeight(ctx context.Context, script []byte, arguments [][]byte, height uint64) ([]byte, error)

ExecuteAtBlockHeight provides a mock function with given fields: ctx, script, arguments, height

func (*ScriptExecutor) GetAccountAtBlockHeight

func (_m *ScriptExecutor) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)

GetAccountAtBlockHeight provides a mock function with given fields: ctx, address, height

func (*ScriptExecutor) GetAccountAvailableBalance added in v0.36.1

func (_m *ScriptExecutor) GetAccountAvailableBalance(ctx context.Context, address flow.Address, height uint64) (uint64, error)

GetAccountAvailableBalance provides a mock function with given fields: ctx, address, height

func (*ScriptExecutor) GetAccountBalance added in v0.35.17

func (_m *ScriptExecutor) GetAccountBalance(ctx context.Context, address flow.Address, height uint64) (uint64, error)

GetAccountBalance provides a mock function with given fields: ctx, address, height

func (*ScriptExecutor) GetAccountKey added in v0.36.1

func (_m *ScriptExecutor) GetAccountKey(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)

GetAccountKey provides a mock function with given fields: ctx, address, keyIndex, height

func (*ScriptExecutor) GetAccountKeys added in v0.35.17

func (_m *ScriptExecutor) GetAccountKeys(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)

GetAccountKeys provides a mock function with given fields: ctx, address, height

Jump to

Keyboard shortcuts

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