mocks

package
v0.73.7-preview.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: AGPL-3.0 Imports: 5 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 MockChainStore

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

MockChainStore is a mock of ChainStore interface.

func NewMockChainStore

func NewMockChainStore(ctrl *gomock.Controller) *MockChainStore

NewMockChainStore creates a new mock instance.

func (*MockChainStore) EXPECT

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

func (*MockChainStore) Get

Get mocks base method.

func (*MockChainStore) Set

func (m *MockChainStore) Set(arg0 context.Context, arg1 entities.Chain) error

Set mocks base method.

type MockChainStoreMockRecorder

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

MockChainStoreMockRecorder is the mock recorder for MockChainStore.

func (*MockChainStoreMockRecorder) Get

func (mr *MockChainStoreMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockChainStoreMockRecorder) Set

func (mr *MockChainStoreMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockMarketDataStore

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

MockMarketDataStore is a mock of MarketDataStore interface.

func NewMockMarketDataStore

func NewMockMarketDataStore(ctrl *gomock.Controller) *MockMarketDataStore

NewMockMarketDataStore creates a new mock instance.

func (*MockMarketDataStore) Add

Add mocks base method.

func (*MockMarketDataStore) EXPECT

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

func (*MockMarketDataStore) Flush

Flush mocks base method.

func (*MockMarketDataStore) GetHistoricMarketData added in v0.73.0

func (m *MockMarketDataStore) GetHistoricMarketData(arg0 context.Context, arg1 string, arg2, arg3 *time.Time, arg4 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error)

GetHistoricMarketData mocks base method.

func (*MockMarketDataStore) GetMarketDataByID

func (m *MockMarketDataStore) GetMarketDataByID(arg0 context.Context, arg1 string) (entities.MarketData, error)

GetMarketDataByID mocks base method.

func (*MockMarketDataStore) GetMarketsData

func (m *MockMarketDataStore) GetMarketsData(arg0 context.Context) ([]entities.MarketData, error)

GetMarketsData mocks base method.

type MockMarketDataStoreMockRecorder

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

MockMarketDataStoreMockRecorder is the mock recorder for MockMarketDataStore.

func (*MockMarketDataStoreMockRecorder) Add

func (mr *MockMarketDataStoreMockRecorder) Add(arg0 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockMarketDataStoreMockRecorder) Flush

func (mr *MockMarketDataStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call

Flush indicates an expected call of Flush.

func (*MockMarketDataStoreMockRecorder) GetHistoricMarketData added in v0.73.0

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

GetHistoricMarketData indicates an expected call of GetHistoricMarketData.

func (*MockMarketDataStoreMockRecorder) GetMarketDataByID

func (mr *MockMarketDataStoreMockRecorder) GetMarketDataByID(arg0, arg1 interface{}) *gomock.Call

GetMarketDataByID indicates an expected call of GetMarketDataByID.

func (*MockMarketDataStoreMockRecorder) GetMarketsData

func (mr *MockMarketDataStoreMockRecorder) GetMarketsData(arg0 interface{}) *gomock.Call

GetMarketsData indicates an expected call of GetMarketsData.

type MockMarketStore

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

MockMarketStore is a mock of MarketStore interface.

func NewMockMarketStore

func NewMockMarketStore(ctrl *gomock.Controller) *MockMarketStore

NewMockMarketStore creates a new mock instance.

func (*MockMarketStore) EXPECT

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

func (*MockMarketStore) GetAllPaged

GetAllPaged mocks base method.

func (*MockMarketStore) GetByID

func (m *MockMarketStore) GetByID(arg0 context.Context, arg1 string) (entities.Market, error)

GetByID mocks base method.

func (*MockMarketStore) GetByTxHash added in v0.71.0

func (m *MockMarketStore) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Market, error)

GetByTxHash mocks base method.

func (*MockMarketStore) ListSuccessorMarkets added in v0.72.0

func (m *MockMarketStore) ListSuccessorMarkets(arg0 context.Context, arg1 string, arg2 bool, arg3 entities.CursorPagination) ([]entities.SuccessorMarket, entities.PageInfo, error)

ListSuccessorMarkets mocks base method.

func (*MockMarketStore) Upsert

func (m *MockMarketStore) Upsert(arg0 context.Context, arg1 *entities.Market) error

Upsert mocks base method.

type MockMarketStoreMockRecorder

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

MockMarketStoreMockRecorder is the mock recorder for MockMarketStore.

func (*MockMarketStoreMockRecorder) GetAllPaged

func (mr *MockMarketStoreMockRecorder) GetAllPaged(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetAllPaged indicates an expected call of GetAllPaged.

func (*MockMarketStoreMockRecorder) GetByID

func (mr *MockMarketStoreMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockMarketStoreMockRecorder) GetByTxHash added in v0.71.0

func (mr *MockMarketStoreMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call

GetByTxHash indicates an expected call of GetByTxHash.

func (*MockMarketStoreMockRecorder) ListSuccessorMarkets added in v0.72.0

func (mr *MockMarketStoreMockRecorder) ListSuccessorMarkets(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ListSuccessorMarkets indicates an expected call of ListSuccessorMarkets.

func (*MockMarketStoreMockRecorder) Upsert

func (mr *MockMarketStoreMockRecorder) Upsert(arg0, arg1 interface{}) *gomock.Call

Upsert indicates an expected call of Upsert.

type MockOrderStore

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

MockOrderStore is a mock of OrderStore interface.

func NewMockOrderStore

func NewMockOrderStore(ctrl *gomock.Controller) *MockOrderStore

NewMockOrderStore creates a new mock instance.

func (*MockOrderStore) EXPECT

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

func (*MockOrderStore) GetLiveOrders

func (m *MockOrderStore) GetLiveOrders(arg0 context.Context) ([]entities.Order, error)

GetLiveOrders mocks base method.

type MockOrderStoreMockRecorder

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

MockOrderStoreMockRecorder is the mock recorder for MockOrderStore.

func (*MockOrderStoreMockRecorder) GetLiveOrders

func (mr *MockOrderStoreMockRecorder) GetLiveOrders(arg0 interface{}) *gomock.Call

GetLiveOrders indicates an expected call of GetLiveOrders.

type MockPositionStore

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

MockPositionStore is a mock of PositionStore interface.

func NewMockPositionStore

func NewMockPositionStore(ctrl *gomock.Controller) *MockPositionStore

NewMockPositionStore creates a new mock instance.

func (*MockPositionStore) Add

Add mocks base method.

func (*MockPositionStore) EXPECT

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

func (*MockPositionStore) Flush

Flush mocks base method.

func (*MockPositionStore) GetAll

func (m *MockPositionStore) GetAll(arg0 context.Context) ([]entities.Position, error)

GetAll mocks base method.

func (*MockPositionStore) GetByMarket

func (m *MockPositionStore) GetByMarket(arg0 context.Context, arg1 string) ([]entities.Position, error)

GetByMarket mocks base method.

func (*MockPositionStore) GetByMarketAndParties added in v0.68.0

func (m *MockPositionStore) GetByMarketAndParties(arg0 context.Context, arg1 string, arg2 []string) ([]entities.Position, error)

GetByMarketAndParties mocks base method.

func (*MockPositionStore) GetByMarketAndParty

func (m *MockPositionStore) GetByMarketAndParty(arg0 context.Context, arg1, arg2 string) (entities.Position, error)

GetByMarketAndParty mocks base method.

func (*MockPositionStore) GetByParty

func (m *MockPositionStore) GetByParty(arg0 context.Context, arg1 string) ([]entities.Position, error)

GetByParty mocks base method.

func (*MockPositionStore) GetByPartyConnection

func (m *MockPositionStore) GetByPartyConnection(arg0 context.Context, arg1, arg2 []string, arg3 entities.CursorPagination) ([]entities.Position, entities.PageInfo, error)

GetByPartyConnection mocks base method.

func (*MockPositionStore) GetByTxHash added in v0.71.0

func (m *MockPositionStore) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Position, error)

GetByTxHash mocks base method.

type MockPositionStoreMockRecorder

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

MockPositionStoreMockRecorder is the mock recorder for MockPositionStore.

func (*MockPositionStoreMockRecorder) Add

func (mr *MockPositionStoreMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockPositionStoreMockRecorder) Flush

func (mr *MockPositionStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call

Flush indicates an expected call of Flush.

func (*MockPositionStoreMockRecorder) GetAll

func (mr *MockPositionStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockPositionStoreMockRecorder) GetByMarket

func (mr *MockPositionStoreMockRecorder) GetByMarket(arg0, arg1 interface{}) *gomock.Call

GetByMarket indicates an expected call of GetByMarket.

func (*MockPositionStoreMockRecorder) GetByMarketAndParties added in v0.68.0

func (mr *MockPositionStoreMockRecorder) GetByMarketAndParties(arg0, arg1, arg2 interface{}) *gomock.Call

GetByMarketAndParties indicates an expected call of GetByMarketAndParties.

func (*MockPositionStoreMockRecorder) GetByMarketAndParty

func (mr *MockPositionStoreMockRecorder) GetByMarketAndParty(arg0, arg1, arg2 interface{}) *gomock.Call

GetByMarketAndParty indicates an expected call of GetByMarketAndParty.

func (*MockPositionStoreMockRecorder) GetByParty

func (mr *MockPositionStoreMockRecorder) GetByParty(arg0, arg1 interface{}) *gomock.Call

GetByParty indicates an expected call of GetByParty.

func (*MockPositionStoreMockRecorder) GetByPartyConnection

func (mr *MockPositionStoreMockRecorder) GetByPartyConnection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetByPartyConnection indicates an expected call of GetByPartyConnection.

func (*MockPositionStoreMockRecorder) GetByTxHash added in v0.71.0

func (mr *MockPositionStoreMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call

GetByTxHash indicates an expected call of GetByTxHash.

Jump to

Keyboard shortcuts

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