Versions in this module Expand all Collapse all v1 v1.0.2 Jun 11, 2025 Changes in this version + type MockExecContext struct + GasRemaining uint64 + RootTrustBase types.RootTrustBase + RoundNumber uint64 + Unit state.Unit + func NewMockExecutionContext(options ...TestOption) *MockExecContext + func (m *MockExecContext) CalculateCost() uint64 + func (m *MockExecContext) CommittedUC() *types.UnicityCertificate + func (m *MockExecContext) CurrentRound() uint64 + func (m *MockExecContext) ExecutionType() txtypes.ExecutionType + func (m *MockExecContext) ExtraArgument() ([]byte, error) + func (m *MockExecContext) GasAvailable() uint64 + func (m *MockExecContext) GetData() []byte + func (m *MockExecContext) GetUnit(id types.UnitID, committed bool) (state.Unit, error) + func (m *MockExecContext) SetData(data []byte) + func (m *MockExecContext) SetExecutionType(exeType txtypes.ExecutionType) + func (m *MockExecContext) SpendGas(gas uint64) error + func (m *MockExecContext) TrustBase(epoch uint64) (types.RootTrustBase, error) + func (m *MockExecContext) WithExArg(f func() ([]byte, error)) txtypes.ExecutionContext + type TestOption func(*MockExecContext) + func WithCurrentRound(round uint64) TestOption + func WithData(data []byte) TestOption + func WithErr(err error) TestOption + func WithUnit(unit state.Unit) TestOption