Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockContext
- func (m *MockContext) AddMessageError(id types.TxHash, err error)
- func (m *MockContext) AddTransaction(id types.MessageID, v any, sig *sign.Transaction) (uint64, types.TxHash)
- func (m *MockContext) CurrentTick() uint64
- func (m *MockContext) EXPECT() *MockContextMockRecorder
- func (m *MockContext) EmitEvent(arg0 map[string]any) error
- func (m *MockContext) GetComponentByName(name string) (types.ComponentMetadata, error)
- func (m *MockContext) GetMessageByType(mType reflect.Type) (types.Message, bool)
- func (m *MockContext) GetSignerForPersonaTag(personaTag string, tick uint64) (string, error)
- func (m *MockContext) GetTransactionReceipt(id types.TxHash) (any, []error, bool)
- func (m *MockContext) GetTransactionReceiptsForTick(tick uint64) ([]receipt.Receipt, error)
- func (m *MockContext) GetTxPool() *txpool.TxPool
- func (m *MockContext) IsReadOnly() bool
- func (m *MockContext) IsWorldReady() bool
- func (m *MockContext) Logger() *zerolog.Logger
- func (m *MockContext) Namespace() string
- func (m *MockContext) ReceiptHistorySize() uint64
- func (m *MockContext) SetLogger(logger zerolog.Logger)
- func (m *MockContext) SetMessageResult(id types.TxHash, a any)
- func (m *MockContext) StoreManager() gamestate.Manager
- func (m *MockContext) StoreReader() gamestate.Reader
- func (m *MockContext) Timestamp() uint64
- type MockContextMockRecorder
- func (mr *MockContextMockRecorder) AddMessageError(id, err interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) AddTransaction(id, v, sig interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) CurrentTick() *gomock.Call
- func (mr *MockContextMockRecorder) EmitEvent(arg0 interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) GetComponentByName(name interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) GetMessageByType(mType interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) GetSignerForPersonaTag(personaTag, tick interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) GetTransactionReceipt(id interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) GetTransactionReceiptsForTick(tick interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) GetTxPool() *gomock.Call
- func (mr *MockContextMockRecorder) IsReadOnly() *gomock.Call
- func (mr *MockContextMockRecorder) IsWorldReady() *gomock.Call
- func (mr *MockContextMockRecorder) Logger() *gomock.Call
- func (mr *MockContextMockRecorder) Namespace() *gomock.Call
- func (mr *MockContextMockRecorder) ReceiptHistorySize() *gomock.Call
- func (mr *MockContextMockRecorder) SetLogger(logger interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) SetMessageResult(id, a interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) StoreManager() *gomock.Call
- func (mr *MockContextMockRecorder) StoreReader() *gomock.Call
- func (mr *MockContextMockRecorder) Timestamp() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContext ¶
type MockContext struct {
// contains filtered or unexported fields
}
MockContext is a mock of Context interface.
func NewMockContext ¶
func NewMockContext(ctrl *gomock.Controller) *MockContext
NewMockContext creates a new mock instance.
func (*MockContext) AddMessageError ¶
func (m *MockContext) AddMessageError(id types.TxHash, err error)
AddMessageError mocks base method.
func (*MockContext) AddTransaction ¶
func (m *MockContext) AddTransaction(id types.MessageID, v any, sig *sign.Transaction) (uint64, types.TxHash)
AddTransaction mocks base method.
func (*MockContext) CurrentTick ¶
func (m *MockContext) CurrentTick() uint64
CurrentTick mocks base method.
func (*MockContext) EXPECT ¶
func (m *MockContext) EXPECT() *MockContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContext) EmitEvent ¶
func (m *MockContext) EmitEvent(arg0 map[string]any) error
EmitEvent mocks base method.
func (*MockContext) GetComponentByName ¶
func (m *MockContext) GetComponentByName(name string) (types.ComponentMetadata, error)
GetComponentByName mocks base method.
func (*MockContext) GetMessageByType ¶
GetMessageByType mocks base method.
func (*MockContext) GetSignerForPersonaTag ¶
func (m *MockContext) GetSignerForPersonaTag(personaTag string, tick uint64) (string, error)
GetSignerForPersonaTag mocks base method.
func (*MockContext) GetTransactionReceipt ¶
GetTransactionReceipt mocks base method.
func (*MockContext) GetTransactionReceiptsForTick ¶
func (m *MockContext) GetTransactionReceiptsForTick(tick uint64) ([]receipt.Receipt, error)
GetTransactionReceiptsForTick mocks base method.
func (*MockContext) GetTxPool ¶
func (m *MockContext) GetTxPool() *txpool.TxPool
GetTxPool mocks base method.
func (*MockContext) IsReadOnly ¶
func (m *MockContext) IsReadOnly() bool
IsReadOnly mocks base method.
func (*MockContext) IsWorldReady ¶
func (m *MockContext) IsWorldReady() bool
IsWorldReady mocks base method.
func (*MockContext) Logger ¶
func (m *MockContext) Logger() *zerolog.Logger
Logger mocks base method.
func (*MockContext) Namespace ¶
func (m *MockContext) Namespace() string
Namespace mocks base method.
func (*MockContext) ReceiptHistorySize ¶
func (m *MockContext) ReceiptHistorySize() uint64
ReceiptHistorySize mocks base method.
func (*MockContext) SetLogger ¶
func (m *MockContext) SetLogger(logger zerolog.Logger)
SetLogger mocks base method.
func (*MockContext) SetMessageResult ¶
func (m *MockContext) SetMessageResult(id types.TxHash, a any)
SetMessageResult mocks base method.
func (*MockContext) StoreManager ¶
func (m *MockContext) StoreManager() gamestate.Manager
StoreManager mocks base method.
func (*MockContext) StoreReader ¶
func (m *MockContext) StoreReader() gamestate.Reader
StoreReader mocks base method.
func (*MockContext) Timestamp ¶
func (m *MockContext) Timestamp() uint64
Timestamp mocks base method.
type MockContextMockRecorder ¶
type MockContextMockRecorder struct {
// contains filtered or unexported fields
}
MockContextMockRecorder is the mock recorder for MockContext.
func (*MockContextMockRecorder) AddMessageError ¶
func (mr *MockContextMockRecorder) AddMessageError(id, err interface{}) *gomock.Call
AddMessageError indicates an expected call of AddMessageError.
func (*MockContextMockRecorder) AddTransaction ¶
func (mr *MockContextMockRecorder) AddTransaction(id, v, sig interface{}) *gomock.Call
AddTransaction indicates an expected call of AddTransaction.
func (*MockContextMockRecorder) CurrentTick ¶
func (mr *MockContextMockRecorder) CurrentTick() *gomock.Call
CurrentTick indicates an expected call of CurrentTick.
func (*MockContextMockRecorder) EmitEvent ¶
func (mr *MockContextMockRecorder) EmitEvent(arg0 interface{}) *gomock.Call
EmitEvent indicates an expected call of EmitEvent.
func (*MockContextMockRecorder) GetComponentByName ¶
func (mr *MockContextMockRecorder) GetComponentByName(name interface{}) *gomock.Call
GetComponentByName indicates an expected call of GetComponentByName.
func (*MockContextMockRecorder) GetMessageByType ¶
func (mr *MockContextMockRecorder) GetMessageByType(mType interface{}) *gomock.Call
GetMessageByType indicates an expected call of GetMessageByType.
func (*MockContextMockRecorder) GetSignerForPersonaTag ¶
func (mr *MockContextMockRecorder) GetSignerForPersonaTag(personaTag, tick interface{}) *gomock.Call
GetSignerForPersonaTag indicates an expected call of GetSignerForPersonaTag.
func (*MockContextMockRecorder) GetTransactionReceipt ¶
func (mr *MockContextMockRecorder) GetTransactionReceipt(id interface{}) *gomock.Call
GetTransactionReceipt indicates an expected call of GetTransactionReceipt.
func (*MockContextMockRecorder) GetTransactionReceiptsForTick ¶
func (mr *MockContextMockRecorder) GetTransactionReceiptsForTick(tick interface{}) *gomock.Call
GetTransactionReceiptsForTick indicates an expected call of GetTransactionReceiptsForTick.
func (*MockContextMockRecorder) GetTxPool ¶
func (mr *MockContextMockRecorder) GetTxPool() *gomock.Call
GetTxPool indicates an expected call of GetTxPool.
func (*MockContextMockRecorder) IsReadOnly ¶
func (mr *MockContextMockRecorder) IsReadOnly() *gomock.Call
IsReadOnly indicates an expected call of IsReadOnly.
func (*MockContextMockRecorder) IsWorldReady ¶
func (mr *MockContextMockRecorder) IsWorldReady() *gomock.Call
IsWorldReady indicates an expected call of IsWorldReady.
func (*MockContextMockRecorder) Logger ¶
func (mr *MockContextMockRecorder) Logger() *gomock.Call
Logger indicates an expected call of Logger.
func (*MockContextMockRecorder) Namespace ¶
func (mr *MockContextMockRecorder) Namespace() *gomock.Call
Namespace indicates an expected call of Namespace.
func (*MockContextMockRecorder) ReceiptHistorySize ¶
func (mr *MockContextMockRecorder) ReceiptHistorySize() *gomock.Call
ReceiptHistorySize indicates an expected call of ReceiptHistorySize.
func (*MockContextMockRecorder) SetLogger ¶
func (mr *MockContextMockRecorder) SetLogger(logger interface{}) *gomock.Call
SetLogger indicates an expected call of SetLogger.
func (*MockContextMockRecorder) SetMessageResult ¶
func (mr *MockContextMockRecorder) SetMessageResult(id, a interface{}) *gomock.Call
SetMessageResult indicates an expected call of SetMessageResult.
func (*MockContextMockRecorder) StoreManager ¶
func (mr *MockContextMockRecorder) StoreManager() *gomock.Call
StoreManager indicates an expected call of StoreManager.
func (*MockContextMockRecorder) StoreReader ¶
func (mr *MockContextMockRecorder) StoreReader() *gomock.Call
StoreReader indicates an expected call of StoreReader.
func (*MockContextMockRecorder) Timestamp ¶
func (mr *MockContextMockRecorder) Timestamp() *gomock.Call
Timestamp indicates an expected call of Timestamp.