Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
func NewService(t mockConstructorTestingTNewService) *Service
NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) Save ¶
func (_e *Service_Expecter) Save(ctx interface{}, user interface{}) *Service_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- user users.User
type Service_Save_Call ¶
Service_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*Service_Save_Call) Return ¶
func (_c *Service_Save_Call) Return(_a0 error) *Service_Save_Call
func (*Service_Save_Call) Run ¶
func (_c *Service_Save_Call) Run(run func(ctx context.Context, user users.User)) *Service_Save_Call
func (*Service_Save_Call) RunAndReturn ¶
func (_c *Service_Save_Call) RunAndReturn(run func(context.Context, users.User) error) *Service_Save_Call
Click to show internal directories.
Click to hide internal directories.