Documentation ¶
Index ¶
- type ActorRepository
- type ActorRepository_Create_Call
- type ActorRepository_Expecter
- type ActorRepository_Get_Call
- type UserRepository
- func (_m *UserRepository) CreateUser(_a0 context.Context, _a1 repository.CreateUserRequest) (*models.User, error)
- func (_m *UserRepository) EXPECT() *UserRepository_Expecter
- func (_m *UserRepository) Follow(_a0 context.Context, _a1 *models.User, _a2 *models.Actor) error
- func (_m *UserRepository) Get(_a0 context.Context, _a1 string) (*models.User, error)
- func (_m *UserRepository) GetFollowers(_a0 context.Context, _a1 *models.User) (models.ActorSlice, error)
- func (_m *UserRepository) GetWithFollowers(ctx context.Context) (models.UserSlice, error)
- func (_m *UserRepository) UnFollow(_a0 context.Context, _a1 *models.User, _a2 *models.Actor) error
- type UserRepository_CreateUser_Call
- type UserRepository_Expecter
- func (_e *UserRepository_Expecter) CreateUser(_a0 interface{}, _a1 interface{}) *UserRepository_CreateUser_Call
- func (_e *UserRepository_Expecter) Follow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *UserRepository_Follow_Call
- func (_e *UserRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *UserRepository_Get_Call
- func (_e *UserRepository_Expecter) GetFollowers(_a0 interface{}, _a1 interface{}) *UserRepository_GetFollowers_Call
- func (_e *UserRepository_Expecter) GetWithFollowers(ctx interface{}) *UserRepository_GetWithFollowers_Call
- func (_e *UserRepository_Expecter) UnFollow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *UserRepository_UnFollow_Call
- type UserRepository_Follow_Call
- type UserRepository_GetFollowers_Call
- type UserRepository_GetWithFollowers_Call
- type UserRepository_Get_Call
- type UserRepository_UnFollow_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorRepository ¶
ActorRepository is an autogenerated mock type for the ActorRepository type
func NewActorRepository ¶
func NewActorRepository(t mockConstructorTestingTNewActorRepository) *ActorRepository
NewActorRepository creates a new instance of ActorRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ActorRepository) Create ¶
func (_m *ActorRepository) Create(_a0 context.Context, _a1 repository.CreateActorRequest) (*models.Actor, error)
Create provides a mock function with given fields: _a0, _a1
func (*ActorRepository) EXPECT ¶
func (_m *ActorRepository) EXPECT() *ActorRepository_Expecter
type ActorRepository_Create_Call ¶
ActorRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ActorRepository_Create_Call) Return ¶
func (_c *ActorRepository_Create_Call) Return(_a0 *models.Actor, _a1 error) *ActorRepository_Create_Call
func (*ActorRepository_Create_Call) Run ¶
func (_c *ActorRepository_Create_Call) Run(run func(_a0 context.Context, _a1 repository.CreateActorRequest)) *ActorRepository_Create_Call
type ActorRepository_Expecter ¶
type ActorRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ActorRepository_Expecter) Create ¶
func (_e *ActorRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *ActorRepository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 repository.CreateActorRequest
func (*ActorRepository_Expecter) Get ¶
func (_e *ActorRepository_Expecter) Get(ctx interface{}, _a1 interface{}) *ActorRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- _a1 *url.URL
type ActorRepository_Get_Call ¶
ActorRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ActorRepository_Get_Call) Return ¶
func (_c *ActorRepository_Get_Call) Return(_a0 *models.Actor, _a1 error) *ActorRepository_Get_Call
func (*ActorRepository_Get_Call) Run ¶
func (_c *ActorRepository_Get_Call) Run(run func(ctx context.Context, _a1 *url.URL)) *ActorRepository_Get_Call
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserRepository) CreateUser ¶
func (_m *UserRepository) CreateUser(_a0 context.Context, _a1 repository.CreateUserRequest) (*models.User, error)
CreateUser provides a mock function with given fields: _a0, _a1
func (*UserRepository) EXPECT ¶
func (_m *UserRepository) EXPECT() *UserRepository_Expecter
func (*UserRepository) GetFollowers ¶
func (_m *UserRepository) GetFollowers(_a0 context.Context, _a1 *models.User) (models.ActorSlice, error)
GetFollowers provides a mock function with given fields: _a0, _a1
func (*UserRepository) GetWithFollowers ¶
GetWithFollowers provides a mock function with given fields: ctx
type UserRepository_CreateUser_Call ¶
UserRepository_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*UserRepository_CreateUser_Call) Return ¶
func (_c *UserRepository_CreateUser_Call) Return(_a0 *models.User, _a1 error) *UserRepository_CreateUser_Call
func (*UserRepository_CreateUser_Call) Run ¶
func (_c *UserRepository_CreateUser_Call) Run(run func(_a0 context.Context, _a1 repository.CreateUserRequest)) *UserRepository_CreateUser_Call
type UserRepository_Expecter ¶
type UserRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*UserRepository_Expecter) CreateUser ¶
func (_e *UserRepository_Expecter) CreateUser(_a0 interface{}, _a1 interface{}) *UserRepository_CreateUser_Call
CreateUser is a helper method to define mock.On call
- _a0 context.Context
- _a1 repository.CreateUserRequest
func (*UserRepository_Expecter) Follow ¶
func (_e *UserRepository_Expecter) Follow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *UserRepository_Follow_Call
Follow is a helper method to define mock.On call
- _a0 context.Context
- _a1 *models.User
- _a2 *models.Actor
func (*UserRepository_Expecter) Get ¶
func (_e *UserRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *UserRepository_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*UserRepository_Expecter) GetFollowers ¶
func (_e *UserRepository_Expecter) GetFollowers(_a0 interface{}, _a1 interface{}) *UserRepository_GetFollowers_Call
GetFollowers is a helper method to define mock.On call
- _a0 context.Context
- _a1 *models.User
func (*UserRepository_Expecter) GetWithFollowers ¶
func (_e *UserRepository_Expecter) GetWithFollowers(ctx interface{}) *UserRepository_GetWithFollowers_Call
GetWithFollowers is a helper method to define mock.On call
- ctx context.Context
func (*UserRepository_Expecter) UnFollow ¶
func (_e *UserRepository_Expecter) UnFollow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *UserRepository_UnFollow_Call
UnFollow is a helper method to define mock.On call
- _a0 context.Context
- _a1 *models.User
- _a2 *models.Actor
type UserRepository_Follow_Call ¶
UserRepository_Follow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Follow'
func (*UserRepository_Follow_Call) Return ¶
func (_c *UserRepository_Follow_Call) Return(_a0 error) *UserRepository_Follow_Call
func (*UserRepository_Follow_Call) Run ¶
func (_c *UserRepository_Follow_Call) Run(run func(_a0 context.Context, _a1 *models.User, _a2 *models.Actor)) *UserRepository_Follow_Call
type UserRepository_GetFollowers_Call ¶
UserRepository_GetFollowers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFollowers'
func (*UserRepository_GetFollowers_Call) Return ¶
func (_c *UserRepository_GetFollowers_Call) Return(_a0 models.ActorSlice, _a1 error) *UserRepository_GetFollowers_Call
func (*UserRepository_GetFollowers_Call) Run ¶
func (_c *UserRepository_GetFollowers_Call) Run(run func(_a0 context.Context, _a1 *models.User)) *UserRepository_GetFollowers_Call
type UserRepository_GetWithFollowers_Call ¶
UserRepository_GetWithFollowers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWithFollowers'
func (*UserRepository_GetWithFollowers_Call) Return ¶
func (_c *UserRepository_GetWithFollowers_Call) Return(_a0 models.UserSlice, _a1 error) *UserRepository_GetWithFollowers_Call
func (*UserRepository_GetWithFollowers_Call) Run ¶
func (_c *UserRepository_GetWithFollowers_Call) Run(run func(ctx context.Context)) *UserRepository_GetWithFollowers_Call
type UserRepository_Get_Call ¶
UserRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*UserRepository_Get_Call) Return ¶
func (_c *UserRepository_Get_Call) Return(_a0 *models.User, _a1 error) *UserRepository_Get_Call
func (*UserRepository_Get_Call) Run ¶
func (_c *UserRepository_Get_Call) Run(run func(_a0 context.Context, _a1 string)) *UserRepository_Get_Call
type UserRepository_UnFollow_Call ¶
UserRepository_UnFollow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnFollow'
func (*UserRepository_UnFollow_Call) Return ¶
func (_c *UserRepository_UnFollow_Call) Return(_a0 error) *UserRepository_UnFollow_Call
func (*UserRepository_UnFollow_Call) Run ¶
func (_c *UserRepository_UnFollow_Call) Run(run func(_a0 context.Context, _a1 *models.User, _a2 *models.Actor)) *UserRepository_UnFollow_Call