mocks

package
v0.0.0-...-f96b470 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	mock.Mock
}

Project is an autogenerated mock type for the Project type

func NewProject

func NewProject(t interface {
	mock.TestingT
	Cleanup(func())
}) *Project

NewProject creates a new instance of Project. 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 (*Project) Create

func (_m *Project) Create(ctx context.Context, project *domain.CreateProjectRequest) (*domain.Project, error)

Create provides a mock function with given fields: ctx, project

func (*Project) GetByID

func (_m *Project) GetByID(ctx context.Context, id uuid.UUID) (*domain.Project, error)

GetByID provides a mock function with given fields: ctx, id

func (*Project) GetByName

func (_m *Project) GetByName(ctx context.Context, name string) (*domain.Project, error)

GetByName provides a mock function with given fields: ctx, name

func (*Project) List

func (_m *Project) List(ctx context.Context, getProjectsRequest *domain.ListProjectsRequest) ([]*domain.Project, error)

List provides a mock function with given fields: ctx, getProjectsRequest

type Run

type Run struct {
	mock.Mock
}

Run is an autogenerated mock type for the Run type

func NewRun

func NewRun(t interface {
	mock.TestingT
	Cleanup(func())
}) *Run

NewRun creates a new instance of Run. 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 (*Run) Create

func (_m *Run) Create(ctx context.Context, createRunRequest *domain.CreateRunRequest) (*domain.Run, error)

Create provides a mock function with given fields: ctx, createRunRequest

func (*Run) Get

func (_m *Run) Get(ctx context.Context, id uuid.UUID) (*domain.Run, error)

Get provides a mock function with given fields: ctx, id

func (*Run) ListForProject

func (_m *Run) ListForProject(ctx context.Context, listForProject *domain.ListRunsForProjectRequest) ([]*domain.Run, error)

ListForProject provides a mock function with given fields: ctx, listForProject

func (*Run) Update

func (_m *Run) Update(ctx context.Context, updateRunRequest *domain.UpdateRunRequest) (*domain.Run, error)

Update provides a mock function with given fields: ctx, updateRunRequest

type Scenario

type Scenario struct {
	mock.Mock
}

Scenario is an autogenerated mock type for the Scenario type

func NewScenario

func NewScenario(t interface {
	mock.TestingT
	Cleanup(func())
}) *Scenario

NewScenario creates a new instance of Scenario. 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 (*Scenario) Create

func (_m *Scenario) Create(ctx context.Context, scenario *domain.CreateScenarioRequest) (*domain.Scenario, error)

Create provides a mock function with given fields: ctx, scenario

func (*Scenario) GetForProject

func (_m *Scenario) GetForProject(ctx context.Context, getForProjectRequest *domain.GetScenariosForProjectRequest) ([]*domain.Scenario, error)

GetForProject provides a mock function with given fields: ctx, getForProjectRequest

Jump to

Keyboard shortcuts

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