mocks

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockContext) GetMessageByType(mType reflect.Type) (types.Message, bool)

GetMessageByType mocks base method.

func (*MockContext) GetSignerForPersonaTag

func (m *MockContext) GetSignerForPersonaTag(personaTag string, tick uint64) (string, error)

GetSignerForPersonaTag mocks base method.

func (*MockContext) GetTransactionReceipt

func (m *MockContext) GetTransactionReceipt(id types.TxHash) (any, []error, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL