Documentation ¶
Index ¶
- type UserAPIConverter
- func (_m *UserAPIConverter) EXPECT() *UserAPIConverter_Expecter
- func (_m *UserAPIConverter) EntityOf(_a0 *users.CreateUserRequest) entities.User
- func (_m *UserAPIConverter) ResponseOf(_a0 *entities.User) response.UserResponse
- func (_m *UserAPIConverter) UpdatedEntityOf(ctx context.Context, request *users.UpdateUserRequest) (*entities.User, error)
- type UserAPIConverter_EntityOf_Call
- type UserAPIConverter_Expecter
- func (_e *UserAPIConverter_Expecter) EntityOf(_a0 interface{}) *UserAPIConverter_EntityOf_Call
- func (_e *UserAPIConverter_Expecter) ResponseOf(_a0 interface{}) *UserAPIConverter_ResponseOf_Call
- func (_e *UserAPIConverter_Expecter) UpdatedEntityOf(ctx interface{}, request interface{}) *UserAPIConverter_UpdatedEntityOf_Call
- type UserAPIConverter_ResponseOf_Call
- type UserAPIConverter_UpdatedEntityOf_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAPIConverter ¶
UserAPIConverter is an autogenerated mock type for the UserAPIConverter type
func NewUserAPIConverter ¶
func NewUserAPIConverter(t mockConstructorTestingTNewUserAPIConverter) *UserAPIConverter
NewUserAPIConverter creates a new instance of UserAPIConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserAPIConverter) EXPECT ¶
func (_m *UserAPIConverter) EXPECT() *UserAPIConverter_Expecter
func (*UserAPIConverter) EntityOf ¶
func (_m *UserAPIConverter) EntityOf(_a0 *users.CreateUserRequest) entities.User
EntityOf provides a mock function with given fields: _a0
func (*UserAPIConverter) ResponseOf ¶
func (_m *UserAPIConverter) ResponseOf(_a0 *entities.User) response.UserResponse
ResponseOf provides a mock function with given fields: _a0
func (*UserAPIConverter) UpdatedEntityOf ¶
func (_m *UserAPIConverter) UpdatedEntityOf(ctx context.Context, request *users.UpdateUserRequest) (*entities.User, error)
UpdatedEntityOf provides a mock function with given fields: ctx, request
type UserAPIConverter_EntityOf_Call ¶
UserAPIConverter_EntityOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EntityOf'
func (*UserAPIConverter_EntityOf_Call) Return ¶
func (_c *UserAPIConverter_EntityOf_Call) Return(_a0 entities.User) *UserAPIConverter_EntityOf_Call
func (*UserAPIConverter_EntityOf_Call) Run ¶
func (_c *UserAPIConverter_EntityOf_Call) Run(run func(_a0 *users.CreateUserRequest)) *UserAPIConverter_EntityOf_Call
type UserAPIConverter_Expecter ¶
type UserAPIConverter_Expecter struct {
// contains filtered or unexported fields
}
func (*UserAPIConverter_Expecter) EntityOf ¶
func (_e *UserAPIConverter_Expecter) EntityOf(_a0 interface{}) *UserAPIConverter_EntityOf_Call
EntityOf is a helper method to define mock.On call
- _a0 *users.CreateUserRequest
func (*UserAPIConverter_Expecter) ResponseOf ¶
func (_e *UserAPIConverter_Expecter) ResponseOf(_a0 interface{}) *UserAPIConverter_ResponseOf_Call
ResponseOf is a helper method to define mock.On call
- _a0 *entities.User
func (*UserAPIConverter_Expecter) UpdatedEntityOf ¶
func (_e *UserAPIConverter_Expecter) UpdatedEntityOf(ctx interface{}, request interface{}) *UserAPIConverter_UpdatedEntityOf_Call
UpdatedEntityOf is a helper method to define mock.On call
- ctx context.Context
- request *users.UpdateUserRequest
type UserAPIConverter_ResponseOf_Call ¶
UserAPIConverter_ResponseOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResponseOf'
func (*UserAPIConverter_ResponseOf_Call) Return ¶
func (_c *UserAPIConverter_ResponseOf_Call) Return(_a0 response.UserResponse) *UserAPIConverter_ResponseOf_Call
func (*UserAPIConverter_ResponseOf_Call) Run ¶
func (_c *UserAPIConverter_ResponseOf_Call) Run(run func(_a0 *entities.User)) *UserAPIConverter_ResponseOf_Call
type UserAPIConverter_UpdatedEntityOf_Call ¶
UserAPIConverter_UpdatedEntityOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatedEntityOf'
func (*UserAPIConverter_UpdatedEntityOf_Call) Return ¶
func (_c *UserAPIConverter_UpdatedEntityOf_Call) Return(_a0 *entities.User, _a1 error) *UserAPIConverter_UpdatedEntityOf_Call
func (*UserAPIConverter_UpdatedEntityOf_Call) Run ¶
func (_c *UserAPIConverter_UpdatedEntityOf_Call) Run(run func(ctx context.Context, request *users.UpdateUserRequest)) *UserAPIConverter_UpdatedEntityOf_Call