Documentation
¶
Index ¶
- type TeamRepositoryMock
- func (_m *TeamRepositoryMock) EXPECT() *TeamRepositoryMock_Expecter
- func (_m *TeamRepositoryMock) GetAll(ctx context.Context) ([]*ent.Team, error)
- func (_m *TeamRepositoryMock) GetByID(ctx context.Context, id uuid.UUID) (*ent.Team, error)
- func (_m *TeamRepositoryMock) GetNamespace(ctx context.Context, id uuid.UUID) (string, error)
- func (_m *TeamRepositoryMock) HasUserWithID(ctx context.Context, teamID uuid.UUID, userID uuid.UUID) (bool, error)
- func (_m *TeamRepositoryMock) Update(ctx context.Context, teamID uuid.UUID, name string, description *string) (*ent.Team, error)
- type TeamRepositoryMock_Expecter
- func (_e *TeamRepositoryMock_Expecter) GetAll(ctx interface{}) *TeamRepositoryMock_GetAll_Call
- func (_e *TeamRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *TeamRepositoryMock_GetByID_Call
- func (_e *TeamRepositoryMock_Expecter) GetNamespace(ctx interface{}, id interface{}) *TeamRepositoryMock_GetNamespace_Call
- func (_e *TeamRepositoryMock_Expecter) HasUserWithID(ctx interface{}, teamID interface{}, userID interface{}) *TeamRepositoryMock_HasUserWithID_Call
- func (_e *TeamRepositoryMock_Expecter) Update(ctx interface{}, teamID interface{}, name interface{}, description interface{}) *TeamRepositoryMock_Update_Call
- type TeamRepositoryMock_GetAll_Call
- func (_c *TeamRepositoryMock_GetAll_Call) Return(_a0 []*ent.Team, _a1 error) *TeamRepositoryMock_GetAll_Call
- func (_c *TeamRepositoryMock_GetAll_Call) Run(run func(ctx context.Context)) *TeamRepositoryMock_GetAll_Call
- func (_c *TeamRepositoryMock_GetAll_Call) RunAndReturn(run func(context.Context) ([]*ent.Team, error)) *TeamRepositoryMock_GetAll_Call
- type TeamRepositoryMock_GetByID_Call
- func (_c *TeamRepositoryMock_GetByID_Call) Return(_a0 *ent.Team, _a1 error) *TeamRepositoryMock_GetByID_Call
- func (_c *TeamRepositoryMock_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *TeamRepositoryMock_GetByID_Call
- func (_c *TeamRepositoryMock_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*ent.Team, error)) *TeamRepositoryMock_GetByID_Call
- type TeamRepositoryMock_GetNamespace_Call
- func (_c *TeamRepositoryMock_GetNamespace_Call) Return(_a0 string, _a1 error) *TeamRepositoryMock_GetNamespace_Call
- func (_c *TeamRepositoryMock_GetNamespace_Call) Run(run func(ctx context.Context, id uuid.UUID)) *TeamRepositoryMock_GetNamespace_Call
- func (_c *TeamRepositoryMock_GetNamespace_Call) RunAndReturn(run func(context.Context, uuid.UUID) (string, error)) *TeamRepositoryMock_GetNamespace_Call
- type TeamRepositoryMock_HasUserWithID_Call
- func (_c *TeamRepositoryMock_HasUserWithID_Call) Return(_a0 bool, _a1 error) *TeamRepositoryMock_HasUserWithID_Call
- func (_c *TeamRepositoryMock_HasUserWithID_Call) Run(run func(ctx context.Context, teamID uuid.UUID, userID uuid.UUID)) *TeamRepositoryMock_HasUserWithID_Call
- func (_c *TeamRepositoryMock_HasUserWithID_Call) RunAndReturn(run func(context.Context, uuid.UUID, uuid.UUID) (bool, error)) *TeamRepositoryMock_HasUserWithID_Call
- type TeamRepositoryMock_Update_Call
- func (_c *TeamRepositoryMock_Update_Call) Return(_a0 *ent.Team, _a1 error) *TeamRepositoryMock_Update_Call
- func (_c *TeamRepositoryMock_Update_Call) Run(...) *TeamRepositoryMock_Update_Call
- func (_c *TeamRepositoryMock_Update_Call) RunAndReturn(run func(context.Context, uuid.UUID, string, *string) (*ent.Team, error)) *TeamRepositoryMock_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamRepositoryMock ¶
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 (_m *TeamRepositoryMock) EXPECT() *TeamRepositoryMock_Expecter
func (*TeamRepositoryMock) GetNamespace ¶
GetNamespace provides a mock function with given fields: ctx, id
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 ¶
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 (_c *TeamRepositoryMock_GetAll_Call) Return(_a0 []*ent.Team, _a1 error) *TeamRepositoryMock_GetAll_Call
func (*TeamRepositoryMock_GetAll_Call) Run ¶
func (_c *TeamRepositoryMock_GetAll_Call) Run(run func(ctx context.Context)) *TeamRepositoryMock_GetAll_Call
func (*TeamRepositoryMock_GetAll_Call) RunAndReturn ¶
func (_c *TeamRepositoryMock_GetAll_Call) RunAndReturn(run func(context.Context) ([]*ent.Team, error)) *TeamRepositoryMock_GetAll_Call
type TeamRepositoryMock_GetByID_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 (_c *TeamRepositoryMock_GetByID_Call) Return(_a0 *ent.Team, _a1 error) *TeamRepositoryMock_GetByID_Call
func (*TeamRepositoryMock_GetByID_Call) Run ¶
func (_c *TeamRepositoryMock_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *TeamRepositoryMock_GetByID_Call
func (*TeamRepositoryMock_GetByID_Call) RunAndReturn ¶
func (_c *TeamRepositoryMock_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*ent.Team, error)) *TeamRepositoryMock_GetByID_Call
type TeamRepositoryMock_GetNamespace_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 (_c *TeamRepositoryMock_GetNamespace_Call) Return(_a0 string, _a1 error) *TeamRepositoryMock_GetNamespace_Call
func (*TeamRepositoryMock_GetNamespace_Call) Run ¶
func (_c *TeamRepositoryMock_GetNamespace_Call) Run(run func(ctx context.Context, id uuid.UUID)) *TeamRepositoryMock_GetNamespace_Call
func (*TeamRepositoryMock_GetNamespace_Call) RunAndReturn ¶
func (_c *TeamRepositoryMock_GetNamespace_Call) RunAndReturn(run func(context.Context, uuid.UUID) (string, error)) *TeamRepositoryMock_GetNamespace_Call
type TeamRepositoryMock_HasUserWithID_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 (_c *TeamRepositoryMock_HasUserWithID_Call) Return(_a0 bool, _a1 error) *TeamRepositoryMock_HasUserWithID_Call
func (*TeamRepositoryMock_HasUserWithID_Call) Run ¶
func (_c *TeamRepositoryMock_HasUserWithID_Call) Run(run func(ctx context.Context, teamID uuid.UUID, userID uuid.UUID)) *TeamRepositoryMock_HasUserWithID_Call
func (*TeamRepositoryMock_HasUserWithID_Call) RunAndReturn ¶
func (_c *TeamRepositoryMock_HasUserWithID_Call) RunAndReturn(run func(context.Context, uuid.UUID, uuid.UUID) (bool, error)) *TeamRepositoryMock_HasUserWithID_Call
type TeamRepositoryMock_Update_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 (_c *TeamRepositoryMock_Update_Call) Return(_a0 *ent.Team, _a1 error) *TeamRepositoryMock_Update_Call
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