mocks

package
v0.0.0-...-b6f29ee Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StrategyHistory

type StrategyHistory struct {
	mock.Mock
}

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) Add

func (_m *StrategyHistory) Add(ctx context.Context, s string, user string, message string) error

Add provides a mock function with given fields: ctx, s, user, message

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

func (*StrategyHistory) Update

func (_m *StrategyHistory) Update(ctx context.Context) error

Update provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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