Documentation ¶
Overview ¶
Package bullsbearsmonmocks is a generated GoMock package.
Index ¶
- type MockOrderPlacer
- func (m *MockOrderPlacer) EXPECT() *MockOrderPlacerMockRecorder
- 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) PlaceMarketBuyOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
- func (m *MockOrderPlacer) PlaceMarketSellOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
- func (m *MockOrderPlacer) SubscribeForOrderBookChanges(ctx context.Context, reqs []tinkoffinvest.OrderBookRequest) (<-chan tinkoffinvest.OrderBookChange, error)
- func (m *MockOrderPlacer) WaitForOrderExecution(ctx context.Context, arg1 tinkoffinvest.AccountID, arg2 tinkoffinvest.OrderID) (decimal.Decimal, error)
- type MockOrderPlacerMockRecorder
- func (mr *MockOrderPlacerMockRecorder) PlaceLimitBuyOrder(ctx, request interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) PlaceLimitSellOrder(ctx, request interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) PlaceMarketBuyOrder(ctx, request interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) PlaceMarketSellOrder(ctx, request interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) SubscribeForOrderBookChanges(ctx, reqs interface{}) *gomock.Call
- func (mr *MockOrderPlacerMockRecorder) WaitForOrderExecution(ctx, arg1, arg2 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) EXPECT ¶
func (m *MockOrderPlacer) EXPECT() *MockOrderPlacerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) PlaceMarketBuyOrder ¶
func (m *MockOrderPlacer) PlaceMarketBuyOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
PlaceMarketBuyOrder mocks base method.
func (*MockOrderPlacer) PlaceMarketSellOrder ¶
func (m *MockOrderPlacer) PlaceMarketSellOrder(ctx context.Context, request tinkoffinvest.PlaceOrderRequest) (tinkoffinvest.OrderID, error)
PlaceMarketSellOrder mocks base method.
func (*MockOrderPlacer) SubscribeForOrderBookChanges ¶
func (m *MockOrderPlacer) SubscribeForOrderBookChanges(ctx context.Context, reqs []tinkoffinvest.OrderBookRequest) (<-chan tinkoffinvest.OrderBookChange, error)
SubscribeForOrderBookChanges mocks base method.
func (*MockOrderPlacer) WaitForOrderExecution ¶
func (m *MockOrderPlacer) WaitForOrderExecution(ctx context.Context, arg1 tinkoffinvest.AccountID, arg2 tinkoffinvest.OrderID) (decimal.Decimal, error)
WaitForOrderExecution mocks base method.
type MockOrderPlacerMockRecorder ¶
type MockOrderPlacerMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderPlacerMockRecorder is the mock recorder for MockOrderPlacer.
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) PlaceMarketBuyOrder ¶
func (mr *MockOrderPlacerMockRecorder) PlaceMarketBuyOrder(ctx, request interface{}) *gomock.Call
PlaceMarketBuyOrder indicates an expected call of PlaceMarketBuyOrder.
func (*MockOrderPlacerMockRecorder) PlaceMarketSellOrder ¶
func (mr *MockOrderPlacerMockRecorder) PlaceMarketSellOrder(ctx, request interface{}) *gomock.Call
PlaceMarketSellOrder indicates an expected call of PlaceMarketSellOrder.
func (*MockOrderPlacerMockRecorder) SubscribeForOrderBookChanges ¶
func (mr *MockOrderPlacerMockRecorder) SubscribeForOrderBookChanges(ctx, reqs interface{}) *gomock.Call
SubscribeForOrderBookChanges indicates an expected call of SubscribeForOrderBookChanges.
func (*MockOrderPlacerMockRecorder) WaitForOrderExecution ¶
func (mr *MockOrderPlacerMockRecorder) WaitForOrderExecution(ctx, arg1, arg2 interface{}) *gomock.Call
WaitForOrderExecution indicates an expected call of WaitForOrderExecution.
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.