Documentation ¶
Index ¶
- type StrategyHistory
- func (_m *StrategyHistory) Add(ctx context.Context, s string, user string, message string) error
- func (_m *StrategyHistory) CurrentStrategy() *strategy.StrategyChange
- func (_m *StrategyHistory) GetHistory(ctx context.Context, offset int) ([]*strategy.StrategyChange, int, error)
- func (_m *StrategyHistory) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrategyHistory ¶
StrategyHistory is an autogenerated mock type for the StrategyHistory type
func NewStrategyHistory ¶
func NewStrategyHistory(t interface { mock.TestingT Cleanup(func()) }) *StrategyHistory
NewStrategyHistory creates a new instance of StrategyHistory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StrategyHistory) CurrentStrategy ¶
func (_m *StrategyHistory) CurrentStrategy() *strategy.StrategyChange
CurrentStrategy provides a mock function with given fields:
func (*StrategyHistory) GetHistory ¶
func (_m *StrategyHistory) GetHistory(ctx context.Context, offset int) ([]*strategy.StrategyChange, int, error)
GetHistory provides a mock function with given fields: ctx, offset
Click to show internal directories.
Click to hide internal directories.