Documentation ¶
Index ¶
- type GroupRepository
- type GroupRepository_Expecter
- type GroupRepository_GetBySlug_Call
- func (_c *GroupRepository_GetBySlug_Call) Return(_a0 group.Group, _a1 error) *GroupRepository_GetBySlug_Call
- func (_c *GroupRepository_GetBySlug_Call) Run(run func(ctx context.Context, slug string)) *GroupRepository_GetBySlug_Call
- func (_c *GroupRepository_GetBySlug_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupRepository_GetBySlug_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupRepository ¶
GroupRepository is an autogenerated mock type for the GroupRepository type
func NewGroupRepository ¶
func NewGroupRepository(t interface { mock.TestingT Cleanup(func()) }) *GroupRepository
NewGroupRepository creates a new instance of GroupRepository. 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 (*GroupRepository) EXPECT ¶
func (_m *GroupRepository) EXPECT() *GroupRepository_Expecter
type GroupRepository_Expecter ¶
type GroupRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupRepository_Expecter) GetBySlug ¶
func (_e *GroupRepository_Expecter) GetBySlug(ctx interface{}, slug interface{}) *GroupRepository_GetBySlug_Call
GetBySlug is a helper method to define mock.On call
- ctx context.Context
- slug string
type GroupRepository_GetBySlug_Call ¶
GroupRepository_GetBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySlug'
func (*GroupRepository_GetBySlug_Call) Return ¶
func (_c *GroupRepository_GetBySlug_Call) Return(_a0 group.Group, _a1 error) *GroupRepository_GetBySlug_Call
func (*GroupRepository_GetBySlug_Call) Run ¶
func (_c *GroupRepository_GetBySlug_Call) Run(run func(ctx context.Context, slug string)) *GroupRepository_GetBySlug_Call
func (*GroupRepository_GetBySlug_Call) RunAndReturn ¶
func (_c *GroupRepository_GetBySlug_Call) RunAndReturn(run func(context.Context, string) (group.Group, error)) *GroupRepository_GetBySlug_Call
Click to show internal directories.
Click to hide internal directories.