Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: AGPL-3.0 Imports: 4 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) GetAccountCode added in v0.48.0

func (_mock *ScriptExecutor) GetAccountCode(ctx context.Context, address flow.Address, contractName string, height uint64) ([]byte, error)

GetAccountCode 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

func (*ScriptExecutor) GetStorageSnapshot added in v0.48.0

func (_mock *ScriptExecutor) GetStorageSnapshot(height uint64) (snapshot.StorageSnapshot, error)

GetStorageSnapshot provides a mock function for the type ScriptExecutor

func (*ScriptExecutor) RegisterValue added in v0.48.0

func (_mock *ScriptExecutor) RegisterValue(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)

RegisterValue 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) GetAccountCode added in v0.48.0

func (_e *ScriptExecutor_Expecter) GetAccountCode(ctx interface{}, address interface{}, contractName interface{}, height interface{}) *ScriptExecutor_GetAccountCode_Call

GetAccountCode is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • contractName string
  • 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

func (*ScriptExecutor_Expecter) GetStorageSnapshot added in v0.48.0

func (_e *ScriptExecutor_Expecter) GetStorageSnapshot(height interface{}) *ScriptExecutor_GetStorageSnapshot_Call

GetStorageSnapshot is a helper method to define mock.On call

  • height uint64

func (*ScriptExecutor_Expecter) RegisterValue added in v0.48.0

func (_e *ScriptExecutor_Expecter) RegisterValue(ID interface{}, height interface{}) *ScriptExecutor_RegisterValue_Call

RegisterValue is a helper method to define mock.On call

  • ID flow.RegisterID
  • 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_GetAccountCode_Call added in v0.48.0

type ScriptExecutor_GetAccountCode_Call struct {
	*mock.Call
}

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

func (*ScriptExecutor_GetAccountCode_Call) Return added in v0.48.0

func (*ScriptExecutor_GetAccountCode_Call) Run added in v0.48.0

func (_c *ScriptExecutor_GetAccountCode_Call) Run(run func(ctx context.Context, address flow.Address, contractName string, height uint64)) *ScriptExecutor_GetAccountCode_Call

func (*ScriptExecutor_GetAccountCode_Call) RunAndReturn added in v0.48.0

func (_c *ScriptExecutor_GetAccountCode_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, contractName string, height uint64) ([]byte, error)) *ScriptExecutor_GetAccountCode_Call

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

type ScriptExecutor_GetStorageSnapshot_Call added in v0.48.0

type ScriptExecutor_GetStorageSnapshot_Call struct {
	*mock.Call
}

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

func (*ScriptExecutor_GetStorageSnapshot_Call) Return added in v0.48.0

func (*ScriptExecutor_GetStorageSnapshot_Call) Run added in v0.48.0

func (*ScriptExecutor_GetStorageSnapshot_Call) RunAndReturn added in v0.48.0

type ScriptExecutor_RegisterValue_Call added in v0.48.0

type ScriptExecutor_RegisterValue_Call struct {
	*mock.Call
}

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

func (*ScriptExecutor_RegisterValue_Call) Return added in v0.48.0

func (*ScriptExecutor_RegisterValue_Call) Run added in v0.48.0

func (*ScriptExecutor_RegisterValue_Call) RunAndReturn added in v0.48.0

Jump to

Keyboard shortcuts

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