Documentation ¶
Index ¶
- type Engine
- type MockEngine
- func (_m *MockEngine) DownloadIngestion(ctx context.Context, object *storage.Object) error
- func (_m *MockEngine) GetResult(ctx context.Context) (*pb.GetResultResponse, error)
- func (_m *MockEngine) Ingest(ctx context.Context, ingestion *pb.Ingestion, object *storage.Object) error
- func (_m *MockEngine) RunBacktest(ctx context.Context, backtest *pb.Backtest, workers worker.Pool) (chan *financepb.Portfolio, error)
- func (_m *MockEngine) Stop(ctx context.Context) error
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.