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 9, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

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