mocks_repository_environment

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 5 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 EnvironmentRepositoryMock

type EnvironmentRepositoryMock struct {
	mock.Mock
}

EnvironmentRepositoryMock is an autogenerated mock type for the EnvironmentRepositoryInterface type

func NewEnvironmentRepositoryMock

func NewEnvironmentRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EnvironmentRepositoryMock

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

func (_m *EnvironmentRepositoryMock) Create(ctx context.Context, tx repository.TxInterface, kubernetesName string, name string, kuberneteSecret string, description *string, projectID uuid.UUID) (*ent.Environment, error)

Create provides a mock function with given fields: ctx, tx, kubernetesName, name, kuberneteSecret, description, projectID

func (*EnvironmentRepositoryMock) Delete

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

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

func (*EnvironmentRepositoryMock) EXPECT

func (*EnvironmentRepositoryMock) GetByID

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

func (*EnvironmentRepositoryMock) GetForProject

func (_m *EnvironmentRepositoryMock) GetForProject(ctx context.Context, tx repository.TxInterface, projectID uuid.UUID) ([]*ent.Environment, error)

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

func (*EnvironmentRepositoryMock) Update

func (_m *EnvironmentRepositoryMock) Update(ctx context.Context, environmentID uuid.UUID, name *string, description *string) (*ent.Environment, error)

Update provides a mock function with given fields: ctx, environmentID, name, description

type EnvironmentRepositoryMock_Create_Call

type EnvironmentRepositoryMock_Create_Call struct {
	*mock.Call
}

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

func (*EnvironmentRepositoryMock_Create_Call) Return

func (*EnvironmentRepositoryMock_Create_Call) Run

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

type EnvironmentRepositoryMock_Delete_Call

type EnvironmentRepositoryMock_Delete_Call struct {
	*mock.Call
}

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

func (*EnvironmentRepositoryMock_Delete_Call) Return

func (*EnvironmentRepositoryMock_Delete_Call) Run

func (*EnvironmentRepositoryMock_Delete_Call) RunAndReturn

type EnvironmentRepositoryMock_Expecter

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

func (*EnvironmentRepositoryMock_Expecter) Create

func (_e *EnvironmentRepositoryMock_Expecter) Create(ctx interface{}, tx interface{}, kubernetesName interface{}, name interface{}, kuberneteSecret interface{}, description interface{}, projectID interface{}) *EnvironmentRepositoryMock_Create_Call

Create is a helper method to define mock.On call

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

func (*EnvironmentRepositoryMock_Expecter) Delete

func (_e *EnvironmentRepositoryMock_Expecter) Delete(ctx interface{}, tx interface{}, environmentID interface{}) *EnvironmentRepositoryMock_Delete_Call

Delete is a helper method to define mock.On call

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

func (*EnvironmentRepositoryMock_Expecter) GetByID

func (_e *EnvironmentRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *EnvironmentRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*EnvironmentRepositoryMock_Expecter) GetForProject

func (_e *EnvironmentRepositoryMock_Expecter) GetForProject(ctx interface{}, tx interface{}, projectID interface{}) *EnvironmentRepositoryMock_GetForProject_Call

GetForProject is a helper method to define mock.On call

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

func (*EnvironmentRepositoryMock_Expecter) Update

func (_e *EnvironmentRepositoryMock_Expecter) Update(ctx interface{}, environmentID interface{}, name interface{}, description interface{}) *EnvironmentRepositoryMock_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • environmentID uuid.UUID
  • name *string
  • description *string

type EnvironmentRepositoryMock_GetByID_Call

type EnvironmentRepositoryMock_GetByID_Call struct {
	*mock.Call
}

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

func (*EnvironmentRepositoryMock_GetByID_Call) Return

func (*EnvironmentRepositoryMock_GetByID_Call) Run

func (*EnvironmentRepositoryMock_GetByID_Call) RunAndReturn

type EnvironmentRepositoryMock_GetForProject_Call

type EnvironmentRepositoryMock_GetForProject_Call struct {
	*mock.Call
}

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

func (*EnvironmentRepositoryMock_GetForProject_Call) Return

func (*EnvironmentRepositoryMock_GetForProject_Call) Run

func (*EnvironmentRepositoryMock_GetForProject_Call) RunAndReturn

type EnvironmentRepositoryMock_Update_Call

type EnvironmentRepositoryMock_Update_Call struct {
	*mock.Call
}

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

func (*EnvironmentRepositoryMock_Update_Call) Return

func (*EnvironmentRepositoryMock_Update_Call) Run

func (_c *EnvironmentRepositoryMock_Update_Call) Run(run func(ctx context.Context, environmentID uuid.UUID, name *string, description *string)) *EnvironmentRepositoryMock_Update_Call

func (*EnvironmentRepositoryMock_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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