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, 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 mockConstructorTestingTNewComputationManager) *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.
func (*ComputationManager) ComputeBlock ¶
func (_m *ComputationManager) ComputeBlock(ctx context.Context, parentBlockExecutionResultID flow.Identifier, block *entity.ExecutableBlock, snapshot state.StorageSnapshot) (*execution.ComputationResult, error)
ComputeBlock provides a mock function with given fields: ctx, parentBlockExecutionResultID, block, snapshot
func (*ComputationManager) ExecuteScript ¶
func (_m *ComputationManager) ExecuteScript(ctx context.Context, script []byte, arguments [][]byte, blockHeader *flow.Header, snapshot state.StorageSnapshot) ([]byte, error)
ExecuteScript provides a mock function with given fields: ctx, script, arguments, blockHeader, snapshot
func (*ComputationManager) GetAccount ¶
func (_m *ComputationManager) GetAccount(ctx context.Context, addr flow.Address, header *flow.Header, snapshot state.StorageSnapshot) (*flow.Account, error)
GetAccount provides a mock function with given fields: ctx, addr, header, snapshot
Click to show internal directories.
Click to hide internal directories.