Documentation
¶
Index ¶
- type MockUserService
- func (_m *MockUserService) CreateUser(ctx context.Context, user domain.User) (domain.User, error)
- func (_m *MockUserService) DeleteUser(ctx context.Context, id string) error
- func (_m *MockUserService) GetUserByID(ctx context.Context, id string) (domain.User, error)
- func (_m *MockUserService) ListUsers(ctx context.Context, filter domain.UserFilter) (domain.PaginatedUserList, error)
- func (_m *MockUserService) UpdateUser(ctx context.Context, user domain.User) (domain.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserService ¶
MockUserService is an autogenerated mock type for the UserService type
func NewMockUserService ¶
func NewMockUserService(t interface { mock.TestingT Cleanup(func()) }) *MockUserService
NewMockUserService creates a new instance of MockUserService. 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 (*MockUserService) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*MockUserService) DeleteUser ¶
func (_m *MockUserService) DeleteUser(ctx context.Context, id string) error
DeleteUser provides a mock function with given fields: ctx, id
func (*MockUserService) GetUserByID ¶
GetUserByID provides a mock function with given fields: ctx, id
func (*MockUserService) ListUsers ¶
func (_m *MockUserService) ListUsers(ctx context.Context, filter domain.UserFilter) (domain.PaginatedUserList, error)
ListUsers provides a mock function with given fields: ctx, filter
func (*MockUserService) UpdateUser ¶
UpdateUser provides a mock function with given fields: ctx, user
Click to show internal directories.
Click to hide internal directories.