Documentation
¶
Index ¶
- type ScriptExecutor
- func (_m *ScriptExecutor) EXPECT() *ScriptExecutor_Expecter
- func (_mock *ScriptExecutor) ExecuteAtBlockHeight(ctx context.Context, script []byte, arguments [][]byte, height uint64) ([]byte, error)
- func (_mock *ScriptExecutor) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
- func (_mock *ScriptExecutor) GetAccountAvailableBalance(ctx context.Context, address flow.Address, height uint64) (uint64, error)
- func (_mock *ScriptExecutor) GetAccountBalance(ctx context.Context, address flow.Address, height uint64) (uint64, error)
- func (_mock *ScriptExecutor) GetAccountKey(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)
- func (_mock *ScriptExecutor) GetAccountKeys(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
- type ScriptExecutor_ExecuteAtBlockHeight_Call
- func (_c *ScriptExecutor_ExecuteAtBlockHeight_Call) Return(bytes []byte, err error) *ScriptExecutor_ExecuteAtBlockHeight_Call
- func (_c *ScriptExecutor_ExecuteAtBlockHeight_Call) Run(...) *ScriptExecutor_ExecuteAtBlockHeight_Call
- func (_c *ScriptExecutor_ExecuteAtBlockHeight_Call) RunAndReturn(...) *ScriptExecutor_ExecuteAtBlockHeight_Call
- type ScriptExecutor_Expecter
- func (_e *ScriptExecutor_Expecter) ExecuteAtBlockHeight(ctx interface{}, script interface{}, arguments interface{}, height interface{}) *ScriptExecutor_ExecuteAtBlockHeight_Call
- func (_e *ScriptExecutor_Expecter) GetAccountAtBlockHeight(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountAtBlockHeight_Call
- func (_e *ScriptExecutor_Expecter) GetAccountAvailableBalance(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountAvailableBalance_Call
- func (_e *ScriptExecutor_Expecter) GetAccountBalance(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountBalance_Call
- func (_e *ScriptExecutor_Expecter) GetAccountKey(ctx interface{}, address interface{}, keyIndex interface{}, height interface{}) *ScriptExecutor_GetAccountKey_Call
- func (_e *ScriptExecutor_Expecter) GetAccountKeys(ctx interface{}, address interface{}, height interface{}) *ScriptExecutor_GetAccountKeys_Call
- type ScriptExecutor_GetAccountAtBlockHeight_Call
- func (_c *ScriptExecutor_GetAccountAtBlockHeight_Call) Return(account *flow.Account, err error) *ScriptExecutor_GetAccountAtBlockHeight_Call
- func (_c *ScriptExecutor_GetAccountAtBlockHeight_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountAtBlockHeight_Call
- func (_c *ScriptExecutor_GetAccountAtBlockHeight_Call) RunAndReturn(...) *ScriptExecutor_GetAccountAtBlockHeight_Call
- type ScriptExecutor_GetAccountAvailableBalance_Call
- func (_c *ScriptExecutor_GetAccountAvailableBalance_Call) Return(v uint64, err error) *ScriptExecutor_GetAccountAvailableBalance_Call
- func (_c *ScriptExecutor_GetAccountAvailableBalance_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountAvailableBalance_Call
- func (_c *ScriptExecutor_GetAccountAvailableBalance_Call) RunAndReturn(...) *ScriptExecutor_GetAccountAvailableBalance_Call
- type ScriptExecutor_GetAccountBalance_Call
- func (_c *ScriptExecutor_GetAccountBalance_Call) Return(v uint64, err error) *ScriptExecutor_GetAccountBalance_Call
- func (_c *ScriptExecutor_GetAccountBalance_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountBalance_Call
- func (_c *ScriptExecutor_GetAccountBalance_Call) RunAndReturn(...) *ScriptExecutor_GetAccountBalance_Call
- type ScriptExecutor_GetAccountKey_Call
- func (_c *ScriptExecutor_GetAccountKey_Call) Return(accountPublicKey *flow.AccountPublicKey, err error) *ScriptExecutor_GetAccountKey_Call
- func (_c *ScriptExecutor_GetAccountKey_Call) Run(...) *ScriptExecutor_GetAccountKey_Call
- func (_c *ScriptExecutor_GetAccountKey_Call) RunAndReturn(...) *ScriptExecutor_GetAccountKey_Call
- type ScriptExecutor_GetAccountKeys_Call
- func (_c *ScriptExecutor_GetAccountKeys_Call) Return(accountPublicKeys []flow.AccountPublicKey, err error) *ScriptExecutor_GetAccountKeys_Call
- func (_c *ScriptExecutor_GetAccountKeys_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountKeys_Call
- func (_c *ScriptExecutor_GetAccountKeys_Call) RunAndReturn(...) *ScriptExecutor_GetAccountKeys_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScriptExecutor ¶
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 (_m *ScriptExecutor) EXPECT() *ScriptExecutor_Expecter
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
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 (_c *ScriptExecutor_ExecuteAtBlockHeight_Call) Return(bytes []byte, err error) *ScriptExecutor_ExecuteAtBlockHeight_Call
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
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 (_c *ScriptExecutor_GetAccountAtBlockHeight_Call) Return(account *flow.Account, err error) *ScriptExecutor_GetAccountAtBlockHeight_Call
func (*ScriptExecutor_GetAccountAtBlockHeight_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountAtBlockHeight_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountAtBlockHeight_Call
func (*ScriptExecutor_GetAccountAtBlockHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountAtBlockHeight_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)) *ScriptExecutor_GetAccountAtBlockHeight_Call
type ScriptExecutor_GetAccountAvailableBalance_Call ¶ added in v0.46.0
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 (_c *ScriptExecutor_GetAccountAvailableBalance_Call) Return(v uint64, err error) *ScriptExecutor_GetAccountAvailableBalance_Call
func (*ScriptExecutor_GetAccountAvailableBalance_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountAvailableBalance_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountAvailableBalance_Call
func (*ScriptExecutor_GetAccountAvailableBalance_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountAvailableBalance_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, height uint64) (uint64, error)) *ScriptExecutor_GetAccountAvailableBalance_Call
type ScriptExecutor_GetAccountBalance_Call ¶ added in v0.46.0
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 (_c *ScriptExecutor_GetAccountBalance_Call) Return(v uint64, err error) *ScriptExecutor_GetAccountBalance_Call
func (*ScriptExecutor_GetAccountBalance_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountBalance_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountBalance_Call
func (*ScriptExecutor_GetAccountBalance_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountBalance_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, height uint64) (uint64, error)) *ScriptExecutor_GetAccountBalance_Call
type ScriptExecutor_GetAccountKey_Call ¶ added in v0.46.0
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 (_c *ScriptExecutor_GetAccountKey_Call) Return(accountPublicKey *flow.AccountPublicKey, err error) *ScriptExecutor_GetAccountKey_Call
func (*ScriptExecutor_GetAccountKey_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountKey_Call) Run(run func(ctx context.Context, address flow.Address, keyIndex uint32, height uint64)) *ScriptExecutor_GetAccountKey_Call
func (*ScriptExecutor_GetAccountKey_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountKey_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)) *ScriptExecutor_GetAccountKey_Call
type ScriptExecutor_GetAccountKeys_Call ¶ added in v0.46.0
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 (_c *ScriptExecutor_GetAccountKeys_Call) Return(accountPublicKeys []flow.AccountPublicKey, err error) *ScriptExecutor_GetAccountKeys_Call
func (*ScriptExecutor_GetAccountKeys_Call) Run ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountKeys_Call) Run(run func(ctx context.Context, address flow.Address, height uint64)) *ScriptExecutor_GetAccountKeys_Call
func (*ScriptExecutor_GetAccountKeys_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ScriptExecutor_GetAccountKeys_Call) RunAndReturn(run func(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)) *ScriptExecutor_GetAccountKeys_Call