mocks

package
v0.0.0-...-ab49fd9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BacktestStorage

type BacktestStorage struct {
	mock.Mock
}

BacktestStorage is an autogenerated mock type for the BacktestStorage type

func NewBacktestStorage

func NewBacktestStorage(t mockConstructorTestingTNewBacktestStorage) *BacktestStorage

NewBacktestStorage creates a new instance of BacktestStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BacktestStorage) Create

func (_m *BacktestStorage) Create(_a0 context.Context, _a1 string, _a2 *storage.Backtest) error

Create provides a mock function with given fields: _a0, _a1, _a2

func (*BacktestStorage) Delete

func (_m *BacktestStorage) Delete(_a0 context.Context, _a1 string) error

Delete provides a mock function with given fields: _a0, _a1

func (*BacktestStorage) Get

func (_m *BacktestStorage) Get(_a0 context.Context, _a1 string) (*storage.Backtest, error)

Get provides a mock function with given fields: _a0, _a1

func (*BacktestStorage) List

func (_m *BacktestStorage) List(_a0 context.Context, _a1 string) ([]*storage.Backtest, error)

List provides a mock function with given fields: _a0, _a1

func (*BacktestStorage) ListByStage

func (_m *BacktestStorage) ListByStage(_a0 context.Context, _a1 ...string) ([]*storage.Backtest, error)

ListByStage provides a mock function with given fields: _a0, _a1

func (*BacktestStorage) Update

func (_m *BacktestStorage) Update(_a0 context.Context, _a1 *storage.Backtest) error

Update provides a mock function with given fields: _a0, _a1

type PeriodStorage

type PeriodStorage struct {
	mock.Mock
}

PeriodStorage is an autogenerated mock type for the PeriodStorage type

func NewPeriodStorage

func NewPeriodStorage(t mockConstructorTestingTNewPeriodStorage) *PeriodStorage

NewPeriodStorage creates a new instance of PeriodStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PeriodStorage) List

func (_m *PeriodStorage) List(ctx context.Context, execution string, offset int) ([]*storage.Period, error)

List provides a mock function with given fields: ctx, execution, offset

func (*PeriodStorage) Store

func (_m *PeriodStorage) Store(ctx context.Context, execution string, period *storage.Period) error

Store provides a mock function with given fields: ctx, execution, period

type StrategyStorage

type StrategyStorage struct {
	mock.Mock
}

StrategyStorage is an autogenerated mock type for the StrategyStorage type

func NewStrategyStorage

func NewStrategyStorage(t mockConstructorTestingTNewStrategyStorage) *StrategyStorage

NewStrategyStorage creates a new instance of StrategyStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StrategyStorage) Create

func (_m *StrategyStorage) Create(_a0 context.Context, _a1 *storage.Strategy) error

Create provides a mock function with given fields: _a0, _a1

func (*StrategyStorage) Delete

func (_m *StrategyStorage) Delete(_a0 context.Context, _a1 string) error

Delete provides a mock function with given fields: _a0, _a1

func (*StrategyStorage) Get

func (_m *StrategyStorage) Get(_a0 context.Context, _a1 string) (*storage.Strategy, error)

Get provides a mock function with given fields: _a0, _a1

func (*StrategyStorage) List

func (_m *StrategyStorage) List(_a0 context.Context) ([]*storage.Strategy, error)

List provides a mock function with given fields: _a0

func (*StrategyStorage) Update

func (_m *StrategyStorage) Update(_a0 context.Context, _a1 *storage.Strategy) error

Update provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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