engine

package
v0.0.0-...-9243632 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Ingest(ctx context.Context, ingestion *pb.Ingestion, object *storage.Object) error
	DownloadIngestion(ctx context.Context, object *storage.Object) error
	RunBacktest(ctx context.Context, backtest *pb.Backtest, workers worker.Pool) (chan *finance_pb.Portfolio, error)
	GetResult(ctx context.Context) (*pb.GetResultResponse, error)
	Stop(ctx context.Context) error
}

type MockEngine

type MockEngine struct {
	mock.Mock
}

MockEngine is an autogenerated mock type for the Engine type

func NewMockEngine

func NewMockEngine(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEngine

NewMockEngine creates a new instance of MockEngine. 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 (*MockEngine) DownloadIngestion

func (_m *MockEngine) DownloadIngestion(ctx context.Context, object *storage.Object) error

DownloadIngestion provides a mock function with given fields: ctx, object

func (*MockEngine) GetResult

func (_m *MockEngine) GetResult(ctx context.Context) (*pb.GetResultResponse, error)

GetResult provides a mock function with given fields: ctx

func (*MockEngine) Ingest

func (_m *MockEngine) Ingest(ctx context.Context, ingestion *pb.Ingestion, object *storage.Object) error

Ingest provides a mock function with given fields: ctx, ingestion, object

func (*MockEngine) RunBacktest

func (_m *MockEngine) RunBacktest(ctx context.Context, backtest *pb.Backtest, workers worker.Pool) (chan *financepb.Portfolio, error)

RunBacktest provides a mock function with given fields: ctx, backtest, workers

func (*MockEngine) Stop

func (_m *MockEngine) Stop(ctx context.Context) error

Stop 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