Documentation
¶
Index ¶
- type TweetService
- type TweetService_Expecter
- type TweetService_SaveTweetAndReferences_Call
- type UserService
- func (_m *UserService) BatchCreateUsers(ctx context.Context, allowedTwitterUsers []string) error
- func (_m *UserService) BatchCreateUsersFromIDs(_a0 context.Context, _a1 []string) ([]*models.User, error)
- func (_m *UserService) EXPECT() *UserService_Expecter
- func (_m *UserService) GetFullUser(_a0 context.Context, _a1 string) (*domainmodels.User, error)
- type UserService_BatchCreateUsersFromIDs_Call
- type UserService_BatchCreateUsers_Call
- type UserService_Expecter
- func (_e *UserService_Expecter) BatchCreateUsers(ctx interface{}, allowedTwitterUsers interface{}) *UserService_BatchCreateUsers_Call
- func (_e *UserService_Expecter) BatchCreateUsersFromIDs(_a0 interface{}, _a1 interface{}) *UserService_BatchCreateUsersFromIDs_Call
- func (_e *UserService_Expecter) GetFullUser(_a0 interface{}, _a1 interface{}) *UserService_GetFullUser_Call
- type UserService_GetFullUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TweetService ¶
TweetService is an autogenerated mock type for the TweetService type
func NewTweetService ¶
func NewTweetService(t mockConstructorTestingTNewTweetService) *TweetService
NewTweetService creates a new instance of TweetService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TweetService) EXPECT ¶
func (_m *TweetService) EXPECT() *TweetService_Expecter
func (*TweetService) SaveTweetAndReferences ¶
func (_m *TweetService) SaveTweetAndReferences(_a0 context.Context, _a1 *twitter.TweetObj) (*models.Tweet, error)
SaveTweetAndReferences provides a mock function with given fields: _a0, _a1
type TweetService_Expecter ¶
type TweetService_Expecter struct {
// contains filtered or unexported fields
}
func (*TweetService_Expecter) SaveTweetAndReferences ¶
func (_e *TweetService_Expecter) SaveTweetAndReferences(_a0 interface{}, _a1 interface{}) *TweetService_SaveTweetAndReferences_Call
SaveTweetAndReferences is a helper method to define mock.On call
- _a0 context.Context
- _a1 *twitter.TweetObj
type TweetService_SaveTweetAndReferences_Call ¶
TweetService_SaveTweetAndReferences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveTweetAndReferences'
func (*TweetService_SaveTweetAndReferences_Call) Return ¶
func (_c *TweetService_SaveTweetAndReferences_Call) Return(_a0 *models.Tweet, _a1 error) *TweetService_SaveTweetAndReferences_Call
func (*TweetService_SaveTweetAndReferences_Call) Run ¶
func (_c *TweetService_SaveTweetAndReferences_Call) Run(run func(_a0 context.Context, _a1 *twitter.TweetObj)) *TweetService_SaveTweetAndReferences_Call
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t mockConstructorTestingTNewUserService) *UserService
NewUserService creates a new instance of UserService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserService) BatchCreateUsers ¶
func (_m *UserService) BatchCreateUsers(ctx context.Context, allowedTwitterUsers []string) error
BatchCreateUsers provides a mock function with given fields: ctx, allowedTwitterUsers
func (*UserService) BatchCreateUsersFromIDs ¶
func (_m *UserService) BatchCreateUsersFromIDs(_a0 context.Context, _a1 []string) ([]*models.User, error)
BatchCreateUsersFromIDs provides a mock function with given fields: _a0, _a1
func (*UserService) EXPECT ¶
func (_m *UserService) EXPECT() *UserService_Expecter
func (*UserService) GetFullUser ¶
func (_m *UserService) GetFullUser(_a0 context.Context, _a1 string) (*domainmodels.User, error)
GetFullUser provides a mock function with given fields: _a0, _a1
type UserService_BatchCreateUsersFromIDs_Call ¶
UserService_BatchCreateUsersFromIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCreateUsersFromIDs'
func (*UserService_BatchCreateUsersFromIDs_Call) Return ¶
func (_c *UserService_BatchCreateUsersFromIDs_Call) Return(_a0 []*models.User, _a1 error) *UserService_BatchCreateUsersFromIDs_Call
func (*UserService_BatchCreateUsersFromIDs_Call) Run ¶
func (_c *UserService_BatchCreateUsersFromIDs_Call) Run(run func(_a0 context.Context, _a1 []string)) *UserService_BatchCreateUsersFromIDs_Call
type UserService_BatchCreateUsers_Call ¶
UserService_BatchCreateUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCreateUsers'
func (*UserService_BatchCreateUsers_Call) Return ¶
func (_c *UserService_BatchCreateUsers_Call) Return(_a0 error) *UserService_BatchCreateUsers_Call
func (*UserService_BatchCreateUsers_Call) Run ¶
func (_c *UserService_BatchCreateUsers_Call) Run(run func(ctx context.Context, allowedTwitterUsers []string)) *UserService_BatchCreateUsers_Call
type UserService_Expecter ¶
type UserService_Expecter struct {
// contains filtered or unexported fields
}
func (*UserService_Expecter) BatchCreateUsers ¶
func (_e *UserService_Expecter) BatchCreateUsers(ctx interface{}, allowedTwitterUsers interface{}) *UserService_BatchCreateUsers_Call
BatchCreateUsers is a helper method to define mock.On call
- ctx context.Context
- allowedTwitterUsers []string
func (*UserService_Expecter) BatchCreateUsersFromIDs ¶
func (_e *UserService_Expecter) BatchCreateUsersFromIDs(_a0 interface{}, _a1 interface{}) *UserService_BatchCreateUsersFromIDs_Call
BatchCreateUsersFromIDs is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*UserService_Expecter) GetFullUser ¶
func (_e *UserService_Expecter) GetFullUser(_a0 interface{}, _a1 interface{}) *UserService_GetFullUser_Call
GetFullUser is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
type UserService_GetFullUser_Call ¶
UserService_GetFullUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFullUser'
func (*UserService_GetFullUser_Call) Return ¶
func (_c *UserService_GetFullUser_Call) Return(_a0 *domainmodels.User, _a1 error) *UserService_GetFullUser_Call
func (*UserService_GetFullUser_Call) Run ¶
func (_c *UserService_GetFullUser_Call) Run(run func(_a0 context.Context, _a1 string)) *UserService_GetFullUser_Call