Documentation ¶
Overview ¶
Package spreadparasitemocks is a generated GoMock package.
Index ¶
- type MockOrderPlacer
- func (m *MockOrderPlacer) CancelOrder(ctx context.Context, accountID tinkoffinvest.AccountID, ...) error
- func (m *MockOrderPlacer) EXPECT() *MockOrderPlacerMockRecorder
- func (m *MockOrderPlacer) GetOrderBook(ctx context.Context, req tinkoffinvest.OrderBookRequest) (*tinkoffinvest.OrderBookResponse, error)
- func (m *MockOrderPlacer) GetOrderState(ctx context.Context, arg1 tinkoffinvest.AccountID, arg2 tinkoffinvest.OrderID) (decimal.Decimal, error)
- func (m *MockOrderPlacer) GetTradeAvailableShares(ctx context.Context) ([]tinkoffinvest.Instrument, error)
- func (m *MockOrderPlacer) PlaceLimitBuyOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
- func (m *MockOrderPlacer) PlaceLimitSellOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
- func (m *MockOrderPlacer) SubscribeForOrderBookChanges(ctx context.Context, reqs []tinkoffinvest.OrderBookRequest) (<-chan tinkoffinvest.OrderBookChange, error)
- type MockOrderPlacerMockRecorder
- func (mr *MockOrderPlacerMockRecorder) CancelOrder(ctx, accountID, orderID interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) GetOrderBook(ctx, req interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) GetOrderState(ctx, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) GetTradeAvailableShares(ctx interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) PlaceLimitBuyOrder(ctx, request interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) PlaceLimitSellOrder(ctx, request interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) SubscribeForOrderBookChanges(ctx, reqs interface{}) *gomock.Call
- type MockToolsCache
- type MockToolsCacheMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOrderPlacer ¶
type MockOrderPlacer struct {
// contains filtered or unexported fields
}
MockOrderPlacer is a mock of OrderPlacer interface.
func NewMockOrderPlacer ¶
func NewMockOrderPlacer(ctrl *gomock.Controller) *MockOrderPlacer
NewMockOrderPlacer creates a new mock instance.
func (*MockOrderPlacer) CancelOrder ¶
func (m *MockOrderPlacer) CancelOrder(ctx context.Context, accountID tinkoffinvest.AccountID, orderID tinkoffinvest.OrderID) error
CancelOrder mocks base method.
func (*MockOrderPlacer) EXPECT ¶
func (m *MockOrderPlacer) EXPECT() *MockOrderPlacerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderPlacer) GetOrderBook ¶
func (m *MockOrderPlacer) GetOrderBook(ctx context.Context, req tinkoffinvest.OrderBookRequest) (*tinkoffinvest.OrderBookResponse, error)
GetOrderBook mocks base method.
func (*MockOrderPlacer) GetOrderState ¶
func (m *MockOrderPlacer) GetOrderState(ctx context.Context, arg1 tinkoffinvest.AccountID, arg2 tinkoffinvest.OrderID) (decimal.Decimal, error)
GetOrderState mocks base method.
func (*MockOrderPlacer) GetTradeAvailableShares ¶
func (m *MockOrderPlacer) GetTradeAvailableShares(ctx context.Context) ([]tinkoffinvest.Instrument, error)
GetTradeAvailableShares mocks base method.
func (*MockOrderPlacer) PlaceLimitBuyOrder ¶
func (m *MockOrderPlacer) PlaceLimitBuyOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
PlaceLimitBuyOrder mocks base method.
func (*MockOrderPlacer) PlaceLimitSellOrder ¶
func (m *MockOrderPlacer) PlaceLimitSellOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
PlaceLimitSellOrder mocks base method.
func (*MockOrderPlacer) SubscribeForOrderBookChanges ¶
func (m *MockOrderPlacer) SubscribeForOrderBookChanges(ctx context.Context, reqs []tinkoffinvest.OrderBookRequest) (<-chan tinkoffinvest.OrderBookChange, error)
SubscribeForOrderBookChanges mocks base method.
type MockOrderPlacerMockRecorder ¶
type MockOrderPlacerMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderPlacerMockRecorder is the mock recorder for MockOrderPlacer.
func (*MockOrderPlacerMockRecorder) CancelOrder ¶
func (mr *MockOrderPlacerMockRecorder) CancelOrder(ctx, accountID, orderID interface{}) *gomock.Call
CancelOrder indicates an expected call of CancelOrder.
func (*MockOrderPlacerMockRecorder) GetOrderBook ¶
func (mr *MockOrderPlacerMockRecorder) GetOrderBook(ctx, req interface{}) *gomock.Call
GetOrderBook indicates an expected call of GetOrderBook.
func (*MockOrderPlacerMockRecorder) GetOrderState ¶
func (mr *MockOrderPlacerMockRecorder) GetOrderState(ctx, arg1, arg2 interface{}) *gomock.Call
GetOrderState indicates an expected call of GetOrderState.
func (*MockOrderPlacerMockRecorder) GetTradeAvailableShares ¶
func (mr *MockOrderPlacerMockRecorder) GetTradeAvailableShares(ctx interface{}) *gomock.Call
GetTradeAvailableShares indicates an expected call of GetTradeAvailableShares.
func (*MockOrderPlacerMockRecorder) PlaceLimitBuyOrder ¶
func (mr *MockOrderPlacerMockRecorder) PlaceLimitBuyOrder(ctx, request interface{}) *gomock.Call
PlaceLimitBuyOrder indicates an expected call of PlaceLimitBuyOrder.
func (*MockOrderPlacerMockRecorder) PlaceLimitSellOrder ¶
func (mr *MockOrderPlacerMockRecorder) PlaceLimitSellOrder(ctx, request interface{}) *gomock.Call
PlaceLimitSellOrder indicates an expected call of PlaceLimitSellOrder.
func (*MockOrderPlacerMockRecorder) SubscribeForOrderBookChanges ¶
func (mr *MockOrderPlacerMockRecorder) SubscribeForOrderBookChanges(ctx, reqs interface{}) *gomock.Call
SubscribeForOrderBookChanges indicates an expected call of SubscribeForOrderBookChanges.
type MockToolsCache ¶
type MockToolsCache struct {
// contains filtered or unexported fields
}
MockToolsCache is a mock of ToolsCache interface.
func NewMockToolsCache ¶
func NewMockToolsCache(ctrl *gomock.Controller) *MockToolsCache
NewMockToolsCache creates a new mock instance.
func (*MockToolsCache) EXPECT ¶
func (m *MockToolsCache) EXPECT() *MockToolsCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockToolsCache) Get ¶
func (m *MockToolsCache) Get(ctx context.Context, figi tinkoffinvest.FIGI) (toolscache.Tool, error)
Get mocks base method.
type MockToolsCacheMockRecorder ¶
type MockToolsCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockToolsCacheMockRecorder is the mock recorder for MockToolsCache.
func (*MockToolsCacheMockRecorder) Get ¶
func (mr *MockToolsCacheMockRecorder) Get(ctx, figi interface{}) *gomock.Call
Get indicates an expected call of Get.