mocks

package
v0.74.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockBlockchain

type MockBlockchain struct {
	// contains filtered or unexported fields
}

MockBlockchain is a mock of Blockchain interface.

func NewMockBlockchain

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance.

func (*MockBlockchain) CheckRawTransaction

func (m *MockBlockchain) CheckRawTransaction(arg0 context.Context, arg1 []byte) (*coretypes.ResultCheckTx, error)

CheckRawTransaction mocks base method.

func (*MockBlockchain) CheckTransaction

func (m *MockBlockchain) CheckTransaction(arg0 context.Context, arg1 *v1.Transaction) (*coretypes.ResultCheckTx, error)

CheckTransaction mocks base method.

func (*MockBlockchain) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockchain) GetChainID

func (m *MockBlockchain) GetChainID(arg0 context.Context) (string, error)

GetChainID mocks base method.

func (*MockBlockchain) GetGenesisTime

func (m *MockBlockchain) GetGenesisTime(arg0 context.Context) (time.Time, error)

GetGenesisTime mocks base method.

func (*MockBlockchain) GetNetworkInfo

func (m *MockBlockchain) GetNetworkInfo(arg0 context.Context) (*coretypes.ResultNetInfo, error)

GetNetworkInfo mocks base method.

func (*MockBlockchain) GetStatus

func (m *MockBlockchain) GetStatus(arg0 context.Context) (*coretypes.ResultStatus, error)

GetStatus mocks base method.

func (*MockBlockchain) GetUnconfirmedTxCount

func (m *MockBlockchain) GetUnconfirmedTxCount(arg0 context.Context) (int, error)

GetUnconfirmedTxCount mocks base method.

func (*MockBlockchain) Health

func (m *MockBlockchain) Health() (*coretypes.ResultHealth, error)

Health mocks base method.

func (*MockBlockchain) SubmitRawTransactionAsync

func (m *MockBlockchain) SubmitRawTransactionAsync(arg0 context.Context, arg1 []byte) (*coretypes.ResultBroadcastTx, error)

SubmitRawTransactionAsync mocks base method.

func (*MockBlockchain) SubmitRawTransactionCommit

func (m *MockBlockchain) SubmitRawTransactionCommit(arg0 context.Context, arg1 []byte) (*coretypes.ResultBroadcastTxCommit, error)

SubmitRawTransactionCommit mocks base method.

func (*MockBlockchain) SubmitRawTransactionSync

func (m *MockBlockchain) SubmitRawTransactionSync(arg0 context.Context, arg1 []byte) (*coretypes.ResultBroadcastTx, error)

SubmitRawTransactionSync mocks base method.

func (*MockBlockchain) SubmitTransactionAsync

func (m *MockBlockchain) SubmitTransactionAsync(arg0 context.Context, arg1 *v1.Transaction) (*coretypes.ResultBroadcastTx, error)

SubmitTransactionAsync mocks base method.

func (*MockBlockchain) SubmitTransactionCommit

func (m *MockBlockchain) SubmitTransactionCommit(arg0 context.Context, arg1 *v1.Transaction) (*coretypes.ResultBroadcastTxCommit, error)

SubmitTransactionCommit mocks base method.

func (*MockBlockchain) SubmitTransactionSync

func (m *MockBlockchain) SubmitTransactionSync(arg0 context.Context, arg1 *v1.Transaction) (*coretypes.ResultBroadcastTx, error)

SubmitTransactionSync mocks base method.

type MockBlockchainMockRecorder

type MockBlockchainMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockchainMockRecorder is the mock recorder for MockBlockchain.

func (*MockBlockchainMockRecorder) CheckRawTransaction

func (mr *MockBlockchainMockRecorder) CheckRawTransaction(arg0, arg1 interface{}) *gomock.Call

CheckRawTransaction indicates an expected call of CheckRawTransaction.

func (*MockBlockchainMockRecorder) CheckTransaction

func (mr *MockBlockchainMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call

CheckTransaction indicates an expected call of CheckTransaction.

func (*MockBlockchainMockRecorder) GetChainID

func (mr *MockBlockchainMockRecorder) GetChainID(arg0 interface{}) *gomock.Call

GetChainID indicates an expected call of GetChainID.

func (*MockBlockchainMockRecorder) GetGenesisTime

func (mr *MockBlockchainMockRecorder) GetGenesisTime(arg0 interface{}) *gomock.Call

GetGenesisTime indicates an expected call of GetGenesisTime.

func (*MockBlockchainMockRecorder) GetNetworkInfo

func (mr *MockBlockchainMockRecorder) GetNetworkInfo(arg0 interface{}) *gomock.Call

GetNetworkInfo indicates an expected call of GetNetworkInfo.

func (*MockBlockchainMockRecorder) GetStatus

func (mr *MockBlockchainMockRecorder) GetStatus(arg0 interface{}) *gomock.Call

GetStatus indicates an expected call of GetStatus.

func (*MockBlockchainMockRecorder) GetUnconfirmedTxCount

func (mr *MockBlockchainMockRecorder) GetUnconfirmedTxCount(arg0 interface{}) *gomock.Call

GetUnconfirmedTxCount indicates an expected call of GetUnconfirmedTxCount.

func (*MockBlockchainMockRecorder) Health

func (mr *MockBlockchainMockRecorder) Health() *gomock.Call

Health indicates an expected call of Health.

func (*MockBlockchainMockRecorder) SubmitRawTransactionAsync

func (mr *MockBlockchainMockRecorder) SubmitRawTransactionAsync(arg0, arg1 interface{}) *gomock.Call

SubmitRawTransactionAsync indicates an expected call of SubmitRawTransactionAsync.

func (*MockBlockchainMockRecorder) SubmitRawTransactionCommit

func (mr *MockBlockchainMockRecorder) SubmitRawTransactionCommit(arg0, arg1 interface{}) *gomock.Call

SubmitRawTransactionCommit indicates an expected call of SubmitRawTransactionCommit.

func (*MockBlockchainMockRecorder) SubmitRawTransactionSync

func (mr *MockBlockchainMockRecorder) SubmitRawTransactionSync(arg0, arg1 interface{}) *gomock.Call

SubmitRawTransactionSync indicates an expected call of SubmitRawTransactionSync.

func (*MockBlockchainMockRecorder) SubmitTransactionAsync

func (mr *MockBlockchainMockRecorder) SubmitTransactionAsync(arg0, arg1 interface{}) *gomock.Call

SubmitTransactionAsync indicates an expected call of SubmitTransactionAsync.

func (*MockBlockchainMockRecorder) SubmitTransactionCommit

func (mr *MockBlockchainMockRecorder) SubmitTransactionCommit(arg0, arg1 interface{}) *gomock.Call

SubmitTransactionCommit indicates an expected call of SubmitTransactionCommit.

func (*MockBlockchainMockRecorder) SubmitTransactionSync

func (mr *MockBlockchainMockRecorder) SubmitTransactionSync(arg0, arg1 interface{}) *gomock.Call

SubmitTransactionSync indicates an expected call of SubmitTransactionSync.

type MockEventService

type MockEventService struct {
	// contains filtered or unexported fields
}

MockEventService is a mock of EventService interface.

func NewMockEventService

func NewMockEventService(ctrl *gomock.Controller) *MockEventService

NewMockEventService creates a new mock instance.

func (*MockEventService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEventService) ObserveEvents

func (m *MockEventService) ObserveEvents(arg0 context.Context, arg1 int, arg2 []events.Type, arg3 int, arg4 ...subscribers.EventFilter) (<-chan []*v1.BusEvent, chan<- int)

ObserveEvents mocks base method.

type MockEventServiceMockRecorder

type MockEventServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockEventServiceMockRecorder is the mock recorder for MockEventService.

func (*MockEventServiceMockRecorder) ObserveEvents

func (mr *MockEventServiceMockRecorder) ObserveEvents(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

ObserveEvents indicates an expected call of ObserveEvents.

type MockEvtForwarder

type MockEvtForwarder struct {
	// contains filtered or unexported fields
}

MockEvtForwarder is a mock of EvtForwarder interface.

func NewMockEvtForwarder

func NewMockEvtForwarder(ctrl *gomock.Controller) *MockEvtForwarder

NewMockEvtForwarder creates a new mock instance.

func (*MockEvtForwarder) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEvtForwarder) Forward

func (m *MockEvtForwarder) Forward(arg0 context.Context, arg1 *v1.ChainEvent, arg2 string) error

Forward mocks base method.

type MockEvtForwarderMockRecorder

type MockEvtForwarderMockRecorder struct {
	// contains filtered or unexported fields
}

MockEvtForwarderMockRecorder is the mock recorder for MockEvtForwarder.

func (*MockEvtForwarderMockRecorder) Forward

func (mr *MockEvtForwarderMockRecorder) Forward(arg0, arg1, arg2 interface{}) *gomock.Call

Forward indicates an expected call of Forward.

type MockTimeService

type MockTimeService struct {
	// contains filtered or unexported fields
}

MockTimeService is a mock of TimeService interface.

func NewMockTimeService

func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService

NewMockTimeService creates a new mock instance.

func (*MockTimeService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTimeService) GetTimeNow

func (m *MockTimeService) GetTimeNow() time.Time

GetTimeNow mocks base method.

type MockTimeServiceMockRecorder

type MockTimeServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTimeServiceMockRecorder is the mock recorder for MockTimeService.

func (*MockTimeServiceMockRecorder) GetTimeNow

func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call

GetTimeNow indicates an expected call of GetTimeNow.

Jump to

Keyboard shortcuts

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