mocks_repository_team

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamRepositoryMock

type TeamRepositoryMock struct {
	mock.Mock
}

TeamRepositoryMock is an autogenerated mock type for the TeamRepositoryInterface type

func NewTeamRepositoryMock

func NewTeamRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *TeamRepositoryMock

NewTeamRepositoryMock creates a new instance of TeamRepositoryMock. 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 (*TeamRepositoryMock) EXPECT

func (*TeamRepositoryMock) GetAll

func (_m *TeamRepositoryMock) GetAll(ctx context.Context) ([]*ent.Team, error)

GetAll provides a mock function with given fields: ctx

func (*TeamRepositoryMock) GetByID

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

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

func (*TeamRepositoryMock) GetNamespace

func (_m *TeamRepositoryMock) GetNamespace(ctx context.Context, id uuid.UUID) (string, error)

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

func (*TeamRepositoryMock) HasUserWithID

func (_m *TeamRepositoryMock) HasUserWithID(ctx context.Context, teamID uuid.UUID, userID uuid.UUID) (bool, error)

HasUserWithID provides a mock function with given fields: ctx, teamID, userID

func (*TeamRepositoryMock) Update

func (_m *TeamRepositoryMock) Update(ctx context.Context, teamID uuid.UUID, name string, description *string) (*ent.Team, error)

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

type TeamRepositoryMock_Expecter

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

func (*TeamRepositoryMock_Expecter) GetAll

func (_e *TeamRepositoryMock_Expecter) GetAll(ctx interface{}) *TeamRepositoryMock_GetAll_Call

GetAll is a helper method to define mock.On call

  • ctx context.Context

func (*TeamRepositoryMock_Expecter) GetByID

func (_e *TeamRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *TeamRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*TeamRepositoryMock_Expecter) GetNamespace

func (_e *TeamRepositoryMock_Expecter) GetNamespace(ctx interface{}, id interface{}) *TeamRepositoryMock_GetNamespace_Call

GetNamespace is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*TeamRepositoryMock_Expecter) HasUserWithID

func (_e *TeamRepositoryMock_Expecter) HasUserWithID(ctx interface{}, teamID interface{}, userID interface{}) *TeamRepositoryMock_HasUserWithID_Call

HasUserWithID is a helper method to define mock.On call

  • ctx context.Context
  • teamID uuid.UUID
  • userID uuid.UUID

func (*TeamRepositoryMock_Expecter) Update

func (_e *TeamRepositoryMock_Expecter) Update(ctx interface{}, teamID interface{}, name interface{}, description interface{}) *TeamRepositoryMock_Update_Call

Update is a helper method to define mock.On call

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

type TeamRepositoryMock_GetAll_Call

type TeamRepositoryMock_GetAll_Call struct {
	*mock.Call
}

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

func (*TeamRepositoryMock_GetAll_Call) Return

func (*TeamRepositoryMock_GetAll_Call) Run

func (*TeamRepositoryMock_GetAll_Call) RunAndReturn

type TeamRepositoryMock_GetByID_Call

type TeamRepositoryMock_GetByID_Call struct {
	*mock.Call
}

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

func (*TeamRepositoryMock_GetByID_Call) Return

func (*TeamRepositoryMock_GetByID_Call) Run

func (*TeamRepositoryMock_GetByID_Call) RunAndReturn

type TeamRepositoryMock_GetNamespace_Call

type TeamRepositoryMock_GetNamespace_Call struct {
	*mock.Call
}

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

func (*TeamRepositoryMock_GetNamespace_Call) Return

func (*TeamRepositoryMock_GetNamespace_Call) Run

func (*TeamRepositoryMock_GetNamespace_Call) RunAndReturn

type TeamRepositoryMock_HasUserWithID_Call

type TeamRepositoryMock_HasUserWithID_Call struct {
	*mock.Call
}

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

func (*TeamRepositoryMock_HasUserWithID_Call) Return

func (*TeamRepositoryMock_HasUserWithID_Call) Run

func (*TeamRepositoryMock_HasUserWithID_Call) RunAndReturn

type TeamRepositoryMock_Update_Call

type TeamRepositoryMock_Update_Call struct {
	*mock.Call
}

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

func (*TeamRepositoryMock_Update_Call) Return

func (*TeamRepositoryMock_Update_Call) Run

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

func (*TeamRepositoryMock_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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