Documentation ¶
Overview ¶
Package mock_strategy is a generated GoMock package.
Index ¶
- type MockStrategy
- func (m *MockStrategy) EXPECT() *MockStrategyMockRecorder
- func (m *MockStrategy) Filter(ctx context.Context, code string) bool
- func (m *MockStrategy) Name() string
- func (m *MockStrategy) Next(indicator indicator.Value)
- func (m *MockStrategy) NotifyCashValue(before, after int64)
- func (m *MockStrategy) NotifyFund()
- func (m *MockStrategy) NotifyOrder(o order.Order)
- func (m *MockStrategy) NotifyTrade()
- type MockStrategyMockRecorder
- func (mr *MockStrategyMockRecorder) Filter(ctx, code interface{}) *gomock.Call
- func (mr *MockStrategyMockRecorder) Name() *gomock.Call
- func (mr *MockStrategyMockRecorder) Next(indicator interface{}) *gomock.Call
- func (mr *MockStrategyMockRecorder) NotifyCashValue(before, after interface{}) *gomock.Call
- func (mr *MockStrategyMockRecorder) NotifyFund() *gomock.Call
- func (mr *MockStrategyMockRecorder) NotifyOrder(o interface{}) *gomock.Call
- func (mr *MockStrategyMockRecorder) NotifyTrade() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStrategy ¶
type MockStrategy struct {
// contains filtered or unexported fields
}
MockStrategy is a mock of Strategy interface.
func NewMockStrategy ¶
func NewMockStrategy(ctrl *gomock.Controller) *MockStrategy
NewMockStrategy creates a new mock instance.
func (*MockStrategy) EXPECT ¶
func (m *MockStrategy) EXPECT() *MockStrategyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStrategy) Filter ¶ added in v0.0.3
func (m *MockStrategy) Filter(ctx context.Context, code string) bool
Filter mocks base method.
func (*MockStrategy) Name ¶ added in v0.0.3
func (m *MockStrategy) Name() string
Name mocks base method.
func (*MockStrategy) Next ¶
func (m *MockStrategy) Next(indicator indicator.Value)
Next mocks base method.
func (*MockStrategy) NotifyCashValue ¶
func (m *MockStrategy) NotifyCashValue(before, after int64)
NotifyCashValue mocks base method.
func (*MockStrategy) NotifyOrder ¶
func (m *MockStrategy) NotifyOrder(o order.Order)
NotifyOrder mocks base method.
func (*MockStrategy) NotifyTrade ¶
func (m *MockStrategy) NotifyTrade()
NotifyTrade mocks base method.
type MockStrategyMockRecorder ¶
type MockStrategyMockRecorder struct {
// contains filtered or unexported fields
}
MockStrategyMockRecorder is the mock recorder for MockStrategy.
func (*MockStrategyMockRecorder) Filter ¶ added in v0.0.3
func (mr *MockStrategyMockRecorder) Filter(ctx, code interface{}) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockStrategyMockRecorder) Name ¶ added in v0.0.3
func (mr *MockStrategyMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockStrategyMockRecorder) Next ¶
func (mr *MockStrategyMockRecorder) Next(indicator interface{}) *gomock.Call
Next indicates an expected call of Next.
func (*MockStrategyMockRecorder) NotifyCashValue ¶
func (mr *MockStrategyMockRecorder) NotifyCashValue(before, after interface{}) *gomock.Call
NotifyCashValue indicates an expected call of NotifyCashValue.
func (*MockStrategyMockRecorder) NotifyFund ¶
func (mr *MockStrategyMockRecorder) NotifyFund() *gomock.Call
NotifyFund indicates an expected call of NotifyFund.
func (*MockStrategyMockRecorder) NotifyOrder ¶
func (mr *MockStrategyMockRecorder) NotifyOrder(o interface{}) *gomock.Call
NotifyOrder indicates an expected call of NotifyOrder.
func (*MockStrategyMockRecorder) NotifyTrade ¶
func (mr *MockStrategyMockRecorder) NotifyTrade() *gomock.Call
NotifyTrade indicates an expected call of NotifyTrade.