Documentation ¶
Index ¶
- type ComputationManager
- func (_m *ComputationManager) ComputeBlock(ctx context.Context, parentBlockExecutionResultID flow.Identifier, ...) (*execution.ComputationResult, error)
- func (_m *ComputationManager) ExecuteScript(ctx context.Context, script []byte, arguments [][]byte, ...) ([]byte, uint64, error)
- func (_m *ComputationManager) GetAccount(ctx context.Context, addr flow.Address, header *flow.Header, ...) (*flow.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputationManager ¶
ComputationManager is an autogenerated mock type for the ComputationManager type
func NewComputationManager ¶ added in v0.26.1
func NewComputationManager(t interface { mock.TestingT Cleanup(func()) }) *ComputationManager
NewComputationManager creates a new instance of ComputationManager. 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 (*ComputationManager) ComputeBlock ¶
func (_m *ComputationManager) ComputeBlock(ctx context.Context, parentBlockExecutionResultID flow.Identifier, block *entity.ExecutableBlock, _a3 snapshot.StorageSnapshot) (*execution.ComputationResult, error)
ComputeBlock provides a mock function with given fields: ctx, parentBlockExecutionResultID, block, _a3
func (*ComputationManager) ExecuteScript ¶
func (_m *ComputationManager) ExecuteScript(ctx context.Context, script []byte, arguments [][]byte, blockHeader *flow.Header, _a4 snapshot.StorageSnapshot) ([]byte, uint64, error)
ExecuteScript provides a mock function with given fields: ctx, script, arguments, blockHeader, _a4
func (*ComputationManager) GetAccount ¶
func (_m *ComputationManager) GetAccount(ctx context.Context, addr flow.Address, header *flow.Header, _a3 snapshot.StorageSnapshot) (*flow.Account, error)
GetAccount provides a mock function with given fields: ctx, addr, header, _a3
Click to show internal directories.
Click to hide internal directories.