mock

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExperimentStorage

type MockExperimentStorage struct {
	// contains filtered or unexported fields
}

MockExperimentStorage is a mock of ExperimentStorage interface.

func NewMockExperimentStorage

func NewMockExperimentStorage(ctrl *gomock.Controller) *MockExperimentStorage

NewMockExperimentStorage creates a new mock instance.

func (*MockExperimentStorage) CreateExperiment

func (m *MockExperimentStorage) CreateExperiment(ctx context.Context, e *domain.Experiment, environmentNamespace string) error

CreateExperiment mocks base method.

func (*MockExperimentStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExperimentStorage) GetExperiment

func (m *MockExperimentStorage) GetExperiment(ctx context.Context, id, environmentNamespace string) (*domain.Experiment, error)

GetExperiment mocks base method.

func (*MockExperimentStorage) ListExperiments

func (m *MockExperimentStorage) ListExperiments(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*experiment.Experiment, int, int64, error)

ListExperiments mocks base method.

func (*MockExperimentStorage) UpdateExperiment

func (m *MockExperimentStorage) UpdateExperiment(ctx context.Context, e *domain.Experiment, environmentNamespace string) error

UpdateExperiment mocks base method.

type MockExperimentStorageMockRecorder

type MockExperimentStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockExperimentStorageMockRecorder is the mock recorder for MockExperimentStorage.

func (*MockExperimentStorageMockRecorder) CreateExperiment

func (mr *MockExperimentStorageMockRecorder) CreateExperiment(ctx, e, environmentNamespace interface{}) *gomock.Call

CreateExperiment indicates an expected call of CreateExperiment.

func (*MockExperimentStorageMockRecorder) GetExperiment

func (mr *MockExperimentStorageMockRecorder) GetExperiment(ctx, id, environmentNamespace interface{}) *gomock.Call

GetExperiment indicates an expected call of GetExperiment.

func (*MockExperimentStorageMockRecorder) ListExperiments

func (mr *MockExperimentStorageMockRecorder) ListExperiments(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call

ListExperiments indicates an expected call of ListExperiments.

func (*MockExperimentStorageMockRecorder) UpdateExperiment

func (mr *MockExperimentStorageMockRecorder) UpdateExperiment(ctx, e, environmentNamespace interface{}) *gomock.Call

UpdateExperiment indicates an expected call of UpdateExperiment.

type MockGoalStorage

type MockGoalStorage struct {
	// contains filtered or unexported fields
}

MockGoalStorage is a mock of GoalStorage interface.

func NewMockGoalStorage

func NewMockGoalStorage(ctrl *gomock.Controller) *MockGoalStorage

NewMockGoalStorage creates a new mock instance.

func (*MockGoalStorage) CreateGoal

func (m *MockGoalStorage) CreateGoal(ctx context.Context, g *domain.Goal, environmentNamespace string) error

CreateGoal mocks base method.

func (*MockGoalStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGoalStorage) GetGoal

func (m *MockGoalStorage) GetGoal(ctx context.Context, id, environmentNamespace string) (*domain.Goal, error)

GetGoal mocks base method.

func (*MockGoalStorage) ListGoals

func (m *MockGoalStorage) ListGoals(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int, isInUseStatus *bool, environmentNamespace string) ([]*experiment.Goal, int, int64, error)

ListGoals mocks base method.

func (*MockGoalStorage) UpdateGoal

func (m *MockGoalStorage) UpdateGoal(ctx context.Context, g *domain.Goal, environmentNamespace string) error

UpdateGoal mocks base method.

type MockGoalStorageMockRecorder

type MockGoalStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockGoalStorageMockRecorder is the mock recorder for MockGoalStorage.

func (*MockGoalStorageMockRecorder) CreateGoal

func (mr *MockGoalStorageMockRecorder) CreateGoal(ctx, g, environmentNamespace interface{}) *gomock.Call

CreateGoal indicates an expected call of CreateGoal.

func (*MockGoalStorageMockRecorder) GetGoal

func (mr *MockGoalStorageMockRecorder) GetGoal(ctx, id, environmentNamespace interface{}) *gomock.Call

GetGoal indicates an expected call of GetGoal.

func (*MockGoalStorageMockRecorder) ListGoals

func (mr *MockGoalStorageMockRecorder) ListGoals(ctx, whereParts, orders, limit, offset, isInUseStatus, environmentNamespace interface{}) *gomock.Call

ListGoals indicates an expected call of ListGoals.

func (*MockGoalStorageMockRecorder) UpdateGoal

func (mr *MockGoalStorageMockRecorder) UpdateGoal(ctx, g, environmentNamespace interface{}) *gomock.Call

UpdateGoal indicates an expected call of UpdateGoal.

Jump to

Keyboard shortcuts

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