mocks_repository_project

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectRepositoryMock

type ProjectRepositoryMock struct {
	mock.Mock
}

ProjectRepositoryMock is an autogenerated mock type for the ProjectRepositoryInterface type

func NewProjectRepositoryMock

func NewProjectRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectRepositoryMock

NewProjectRepositoryMock creates a new instance of ProjectRepositoryMock. 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 (*ProjectRepositoryMock) ClearDefaultEnvironment

func (_m *ProjectRepositoryMock) ClearDefaultEnvironment(ctx context.Context, tx repository.TxInterface, projectID uuid.UUID) error

ClearDefaultEnvironment provides a mock function with given fields: ctx, tx, projectID

func (*ProjectRepositoryMock) Create

func (_m *ProjectRepositoryMock) Create(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, kubernetesName string, name string, description *string, kubernetesSecret string) (*ent.Project, error)

Create provides a mock function with given fields: ctx, tx, teamID, kubernetesName, name, description, kubernetesSecret

func (*ProjectRepositoryMock) Delete

func (_m *ProjectRepositoryMock) Delete(ctx context.Context, tx repository.TxInterface, projectID uuid.UUID) error

Delete provides a mock function with given fields: ctx, tx, projectID

func (*ProjectRepositoryMock) EXPECT

func (*ProjectRepositoryMock) GetByID

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

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

func (*ProjectRepositoryMock) GetByTeam

func (_m *ProjectRepositoryMock) GetByTeam(ctx context.Context, teamID uuid.UUID, sortField models.SortByField, sortOrder models.SortOrder) ([]*ent.Project, error)

GetByTeam provides a mock function with given fields: ctx, teamID, sortField, sortOrder

func (*ProjectRepositoryMock) GetTeamID

func (_m *ProjectRepositoryMock) GetTeamID(ctx context.Context, id uuid.UUID) (uuid.UUID, error)

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

func (*ProjectRepositoryMock) Update

func (_m *ProjectRepositoryMock) Update(ctx context.Context, tx repository.TxInterface, projectID uuid.UUID, defaultEnvironmentID *uuid.UUID, name string, description *string) (*ent.Project, error)

Update provides a mock function with given fields: ctx, tx, projectID, defaultEnvironmentID, name, description

type ProjectRepositoryMock_ClearDefaultEnvironment_Call

type ProjectRepositoryMock_ClearDefaultEnvironment_Call struct {
	*mock.Call
}

ProjectRepositoryMock_ClearDefaultEnvironment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearDefaultEnvironment'

func (*ProjectRepositoryMock_ClearDefaultEnvironment_Call) Return

func (*ProjectRepositoryMock_ClearDefaultEnvironment_Call) Run

func (*ProjectRepositoryMock_ClearDefaultEnvironment_Call) RunAndReturn

type ProjectRepositoryMock_Create_Call

type ProjectRepositoryMock_Create_Call struct {
	*mock.Call
}

ProjectRepositoryMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ProjectRepositoryMock_Create_Call) Return

func (*ProjectRepositoryMock_Create_Call) Run

func (_c *ProjectRepositoryMock_Create_Call) Run(run func(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, kubernetesName string, name string, description *string, kubernetesSecret string)) *ProjectRepositoryMock_Create_Call

type ProjectRepositoryMock_Delete_Call

type ProjectRepositoryMock_Delete_Call struct {
	*mock.Call
}

ProjectRepositoryMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*ProjectRepositoryMock_Delete_Call) Return

func (*ProjectRepositoryMock_Delete_Call) Run

func (*ProjectRepositoryMock_Delete_Call) RunAndReturn

type ProjectRepositoryMock_Expecter

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

func (*ProjectRepositoryMock_Expecter) ClearDefaultEnvironment

func (_e *ProjectRepositoryMock_Expecter) ClearDefaultEnvironment(ctx interface{}, tx interface{}, projectID interface{}) *ProjectRepositoryMock_ClearDefaultEnvironment_Call

ClearDefaultEnvironment is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • projectID uuid.UUID

func (*ProjectRepositoryMock_Expecter) Create

func (_e *ProjectRepositoryMock_Expecter) Create(ctx interface{}, tx interface{}, teamID interface{}, kubernetesName interface{}, name interface{}, description interface{}, kubernetesSecret interface{}) *ProjectRepositoryMock_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • teamID uuid.UUID
  • kubernetesName string
  • name string
  • description *string
  • kubernetesSecret string

func (*ProjectRepositoryMock_Expecter) Delete

func (_e *ProjectRepositoryMock_Expecter) Delete(ctx interface{}, tx interface{}, projectID interface{}) *ProjectRepositoryMock_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • projectID uuid.UUID

func (*ProjectRepositoryMock_Expecter) GetByID

func (_e *ProjectRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *ProjectRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*ProjectRepositoryMock_Expecter) GetByTeam

func (_e *ProjectRepositoryMock_Expecter) GetByTeam(ctx interface{}, teamID interface{}, sortField interface{}, sortOrder interface{}) *ProjectRepositoryMock_GetByTeam_Call

GetByTeam is a helper method to define mock.On call

  • ctx context.Context
  • teamID uuid.UUID
  • sortField models.SortByField
  • sortOrder models.SortOrder

func (*ProjectRepositoryMock_Expecter) GetTeamID

func (_e *ProjectRepositoryMock_Expecter) GetTeamID(ctx interface{}, id interface{}) *ProjectRepositoryMock_GetTeamID_Call

GetTeamID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*ProjectRepositoryMock_Expecter) Update

func (_e *ProjectRepositoryMock_Expecter) Update(ctx interface{}, tx interface{}, projectID interface{}, defaultEnvironmentID interface{}, name interface{}, description interface{}) *ProjectRepositoryMock_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • projectID uuid.UUID
  • defaultEnvironmentID *uuid.UUID
  • name string
  • description *string

type ProjectRepositoryMock_GetByID_Call

type ProjectRepositoryMock_GetByID_Call struct {
	*mock.Call
}

ProjectRepositoryMock_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*ProjectRepositoryMock_GetByID_Call) Return

func (*ProjectRepositoryMock_GetByID_Call) Run

func (*ProjectRepositoryMock_GetByID_Call) RunAndReturn

type ProjectRepositoryMock_GetByTeam_Call

type ProjectRepositoryMock_GetByTeam_Call struct {
	*mock.Call
}

ProjectRepositoryMock_GetByTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByTeam'

func (*ProjectRepositoryMock_GetByTeam_Call) Return

func (*ProjectRepositoryMock_GetByTeam_Call) Run

func (*ProjectRepositoryMock_GetByTeam_Call) RunAndReturn

type ProjectRepositoryMock_GetTeamID_Call

type ProjectRepositoryMock_GetTeamID_Call struct {
	*mock.Call
}

ProjectRepositoryMock_GetTeamID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTeamID'

func (*ProjectRepositoryMock_GetTeamID_Call) Return

func (*ProjectRepositoryMock_GetTeamID_Call) Run

func (*ProjectRepositoryMock_GetTeamID_Call) RunAndReturn

type ProjectRepositoryMock_Update_Call

type ProjectRepositoryMock_Update_Call struct {
	*mock.Call
}

ProjectRepositoryMock_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*ProjectRepositoryMock_Update_Call) Return

func (*ProjectRepositoryMock_Update_Call) Run

func (_c *ProjectRepositoryMock_Update_Call) Run(run func(ctx context.Context, tx repository.TxInterface, projectID uuid.UUID, defaultEnvironmentID *uuid.UUID, name string, description *string)) *ProjectRepositoryMock_Update_Call

func (*ProjectRepositoryMock_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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