mocks

package
v0.0.0-...-706d53e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TweetService

type TweetService struct {
	mock.Mock
}

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

type TweetService_SaveTweetAndReferences_Call struct {
	*mock.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 (*TweetService_SaveTweetAndReferences_Call) Run

type UserService

type UserService struct {
	mock.Mock
}

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

type UserService_BatchCreateUsersFromIDs_Call struct {
	*mock.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 (*UserService_BatchCreateUsersFromIDs_Call) Run

type UserService_BatchCreateUsers_Call

type UserService_BatchCreateUsers_Call struct {
	*mock.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 (*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

type UserService_GetFullUser_Call struct {
	*mock.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 (*UserService_GetFullUser_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL