mock

package
v0.46.1-ledger-service.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 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) EXPECT added in v0.46.0

func (*ScriptExecutor) ExecuteAtBlockHeight

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

ExecuteAtBlockHeight provides a mock function for the type ScriptExecutor

func (*ScriptExecutor) GetAccountAtBlockHeight

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

GetAccountAtBlockHeight provides a mock function for the type ScriptExecutor

func (*ScriptExecutor) GetAccountAvailableBalance added in v0.36.1

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

GetAccountAvailableBalance provides a mock function for the type ScriptExecutor

func (*ScriptExecutor) GetAccountBalance added in v0.35.17

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

GetAccountBalance provides a mock function for the type ScriptExecutor

func (*ScriptExecutor) GetAccountKey added in v0.36.1

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

GetAccountKey provides a mock function for the type ScriptExecutor

func (*ScriptExecutor) GetAccountKeys added in v0.35.17

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

GetAccountKeys provides a mock function for the type ScriptExecutor

type ScriptExecutor_ExecuteAtBlockHeight_Call added in v0.46.0

type ScriptExecutor_ExecuteAtBlockHeight_Call struct {
	*mock.Call
}

ScriptExecutor_ExecuteAtBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteAtBlockHeight'

func (*ScriptExecutor_ExecuteAtBlockHeight_Call) Return added in v0.46.0

func (*ScriptExecutor_ExecuteAtBlockHeight_Call) Run added in v0.46.0

func (_c *ScriptExecutor_ExecuteAtBlockHeight_Call) Run(run func(ctx context.Context, script []byte, arguments [][]byte, height uint64)) *ScriptExecutor_ExecuteAtBlockHeight_Call

func (*ScriptExecutor_ExecuteAtBlockHeight_Call) RunAndReturn added in v0.46.0

func (_c *ScriptExecutor_ExecuteAtBlockHeight_Call) RunAndReturn(run func(ctx context.Context, script []byte, arguments [][]byte, height uint64) ([]byte, error)) *ScriptExecutor_ExecuteAtBlockHeight_Call

type ScriptExecutor_Expecter added in v0.46.0

type ScriptExecutor_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScriptExecutor_Expecter) ExecuteAtBlockHeight added in v0.46.0

func (_e *ScriptExecutor_Expecter) ExecuteAtBlockHeight(ctx interface{}, script interface{}, arguments interface{}, height interface{}) *ScriptExecutor_ExecuteAtBlockHeight_Call

ExecuteAtBlockHeight is a helper method to define mock.On call

  • ctx context.Context
  • script []byte
  • arguments [][]byte
  • height uint64

func (*ScriptExecutor_Expecter) GetAccountAtBlockHeight added in v0.46.0

func (_e *ScriptExecutor_Expecter) GetAccountAtBlockHeight(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountAtBlockHeight_Call

GetAccountAtBlockHeight is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • height uint64

func (*ScriptExecutor_Expecter) GetAccountAvailableBalance added in v0.46.0

func (_e *ScriptExecutor_Expecter) GetAccountAvailableBalance(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountAvailableBalance_Call

GetAccountAvailableBalance is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • height uint64

func (*ScriptExecutor_Expecter) GetAccountBalance added in v0.46.0

func (_e *ScriptExecutor_Expecter) GetAccountBalance(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountBalance_Call

GetAccountBalance is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • height uint64

func (*ScriptExecutor_Expecter) GetAccountKey added in v0.46.0

func (_e *ScriptExecutor_Expecter) GetAccountKey(ctx interface{}, address interface{}, keyIndex interface{}, height interface{}) *ScriptExecutor_GetAccountKey_Call

GetAccountKey is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • keyIndex uint32
  • height uint64

func (*ScriptExecutor_Expecter) GetAccountKeys added in v0.46.0

func (_e *ScriptExecutor_Expecter) GetAccountKeys(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountKeys_Call

GetAccountKeys is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • height uint64

type ScriptExecutor_GetAccountAtBlockHeight_Call added in v0.46.0

type ScriptExecutor_GetAccountAtBlockHeight_Call struct {
	*mock.Call
}

ScriptExecutor_GetAccountAtBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountAtBlockHeight'

func (*ScriptExecutor_GetAccountAtBlockHeight_Call) Return added in v0.46.0

func (*ScriptExecutor_GetAccountAtBlockHeight_Call) Run added in v0.46.0

func (*ScriptExecutor_GetAccountAtBlockHeight_Call) RunAndReturn added in v0.46.0

type ScriptExecutor_GetAccountAvailableBalance_Call added in v0.46.0

type ScriptExecutor_GetAccountAvailableBalance_Call struct {
	*mock.Call
}

ScriptExecutor_GetAccountAvailableBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountAvailableBalance'

func (*ScriptExecutor_GetAccountAvailableBalance_Call) Return added in v0.46.0

func (*ScriptExecutor_GetAccountAvailableBalance_Call) Run added in v0.46.0

func (*ScriptExecutor_GetAccountAvailableBalance_Call) RunAndReturn added in v0.46.0

type ScriptExecutor_GetAccountBalance_Call added in v0.46.0

type ScriptExecutor_GetAccountBalance_Call struct {
	*mock.Call
}

ScriptExecutor_GetAccountBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountBalance'

func (*ScriptExecutor_GetAccountBalance_Call) Return added in v0.46.0

func (*ScriptExecutor_GetAccountBalance_Call) Run added in v0.46.0

func (*ScriptExecutor_GetAccountBalance_Call) RunAndReturn added in v0.46.0

type ScriptExecutor_GetAccountKey_Call added in v0.46.0

type ScriptExecutor_GetAccountKey_Call struct {
	*mock.Call
}

ScriptExecutor_GetAccountKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountKey'

func (*ScriptExecutor_GetAccountKey_Call) Return added in v0.46.0

func (*ScriptExecutor_GetAccountKey_Call) Run added in v0.46.0

func (*ScriptExecutor_GetAccountKey_Call) RunAndReturn added in v0.46.0

type ScriptExecutor_GetAccountKeys_Call added in v0.46.0

type ScriptExecutor_GetAccountKeys_Call struct {
	*mock.Call
}

ScriptExecutor_GetAccountKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountKeys'

func (*ScriptExecutor_GetAccountKeys_Call) Return added in v0.46.0

func (*ScriptExecutor_GetAccountKeys_Call) Run added in v0.46.0

func (*ScriptExecutor_GetAccountKeys_Call) RunAndReturn added in v0.46.0

Jump to

Keyboard shortcuts

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