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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t mockConstructorTestingTNewBackend) *Backend

NewBackend creates a new instance of Backend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Backend) EXPECT

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) TweetLookup

func (_m *Backend) TweetLookup(ctx context.Context, ids []string, opts twitter.TweetLookupOpts) (*twitter.TweetLookupResponse, error)

TweetLookup provides a mock function with given fields: ctx, ids, opts

func (*Backend) UserLookup

func (_m *Backend) UserLookup(ctx context.Context, ids []string, opts twitter.UserLookupOpts) (*twitter.UserLookupResponse, error)

UserLookup provides a mock function with given fields: ctx, ids, opts

func (*Backend) UserNameLookup

func (_m *Backend) UserNameLookup(ctx context.Context, usernames []string, opts twitter.UserLookupOpts) (*twitter.UserLookupResponse, error)

UserNameLookup provides a mock function with given fields: ctx, usernames, opts

func (*Backend) UserTweetTimeline

func (_m *Backend) UserTweetTimeline(ctx context.Context, userID string, opts twitter.UserTweetTimelineOpts) (*twitter.UserTweetTimelineResponse, error)

UserTweetTimeline provides a mock function with given fields: ctx, userID, opts

type Backend_Expecter

type Backend_Expecter struct {
	// contains filtered or unexported fields
}

func (*Backend_Expecter) TweetLookup

func (_e *Backend_Expecter) TweetLookup(ctx interface{}, ids interface{}, opts interface{}) *Backend_TweetLookup_Call

TweetLookup is a helper method to define mock.On call

  • ctx context.Context
  • ids []string
  • opts twitter.TweetLookupOpts

func (*Backend_Expecter) UserLookup

func (_e *Backend_Expecter) UserLookup(ctx interface{}, ids interface{}, opts interface{}) *Backend_UserLookup_Call

UserLookup is a helper method to define mock.On call

  • ctx context.Context
  • ids []string
  • opts twitter.UserLookupOpts

func (*Backend_Expecter) UserNameLookup

func (_e *Backend_Expecter) UserNameLookup(ctx interface{}, usernames interface{}, opts interface{}) *Backend_UserNameLookup_Call

UserNameLookup is a helper method to define mock.On call

  • ctx context.Context
  • usernames []string
  • opts twitter.UserLookupOpts

func (*Backend_Expecter) UserTweetTimeline

func (_e *Backend_Expecter) UserTweetTimeline(ctx interface{}, userID interface{}, opts interface{}) *Backend_UserTweetTimeline_Call

UserTweetTimeline is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • opts twitter.UserTweetTimelineOpts

type Backend_TweetLookup_Call

type Backend_TweetLookup_Call struct {
	*mock.Call
}

Backend_TweetLookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TweetLookup'

func (*Backend_TweetLookup_Call) Return

func (*Backend_TweetLookup_Call) Run

type Backend_UserLookup_Call

type Backend_UserLookup_Call struct {
	*mock.Call
}

Backend_UserLookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserLookup'

func (*Backend_UserLookup_Call) Return

func (*Backend_UserLookup_Call) Run

type Backend_UserNameLookup_Call

type Backend_UserNameLookup_Call struct {
	*mock.Call
}

Backend_UserNameLookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserNameLookup'

func (*Backend_UserNameLookup_Call) Return

func (*Backend_UserNameLookup_Call) Run

type Backend_UserTweetTimeline_Call

type Backend_UserTweetTimeline_Call struct {
	*mock.Call
}

Backend_UserTweetTimeline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserTweetTimeline'

func (*Backend_UserTweetTimeline_Call) Return

func (*Backend_UserTweetTimeline_Call) Run

type TwitterClient

type TwitterClient struct {
	mock.Mock
}

TwitterClient is an autogenerated mock type for the TwitterClient type

func NewTwitterClient

func NewTwitterClient(t mockConstructorTestingTNewTwitterClient) *TwitterClient

NewTwitterClient creates a new instance of TwitterClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TwitterClient) EXPECT

func (_m *TwitterClient) EXPECT() *TwitterClient_Expecter

func (*TwitterClient) GetTweets

GetTweets provides a mock function with given fields: _a0, _a1, _a2

func (*TwitterClient) GetUser

func (_m *TwitterClient) GetUser(ctx context.Context, username string) (*twitter.UserObj, error)

GetUser provides a mock function with given fields: ctx, username

func (*TwitterClient) GetUserByIDs

func (_m *TwitterClient) GetUserByIDs(_a0 context.Context, _a1 []string) ([]*twitter.UserObj, error)

GetUserByIDs provides a mock function with given fields: _a0, _a1

func (*TwitterClient) GetUserTweets

GetUserTweets provides a mock function with given fields: _a0, _a1, _a2

type TwitterClient_Expecter

type TwitterClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*TwitterClient_Expecter) GetTweets

func (_e *TwitterClient_Expecter) GetTweets(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TwitterClient_GetTweets_Call

GetTweets is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []string
  • _a2 twitter.TweetLookupOpts

func (*TwitterClient_Expecter) GetUser

func (_e *TwitterClient_Expecter) GetUser(ctx interface{}, username interface{}) *TwitterClient_GetUser_Call

GetUser is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*TwitterClient_Expecter) GetUserByIDs

func (_e *TwitterClient_Expecter) GetUserByIDs(_a0 interface{}, _a1 interface{}) *TwitterClient_GetUserByIDs_Call

GetUserByIDs is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []string

func (*TwitterClient_Expecter) GetUserTweets

func (_e *TwitterClient_Expecter) GetUserTweets(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TwitterClient_GetUserTweets_Call

GetUserTweets is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 twitter.UserTweetTimelineOpts

type TwitterClient_GetTweets_Call

type TwitterClient_GetTweets_Call struct {
	*mock.Call
}

TwitterClient_GetTweets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTweets'

func (*TwitterClient_GetTweets_Call) Return

func (*TwitterClient_GetTweets_Call) Run

type TwitterClient_GetUserByIDs_Call

type TwitterClient_GetUserByIDs_Call struct {
	*mock.Call
}

TwitterClient_GetUserByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByIDs'

func (*TwitterClient_GetUserByIDs_Call) Return

func (*TwitterClient_GetUserByIDs_Call) Run

type TwitterClient_GetUserTweets_Call

type TwitterClient_GetUserTweets_Call struct {
	*mock.Call
}

TwitterClient_GetUserTweets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserTweets'

func (*TwitterClient_GetUserTweets_Call) Return

func (*TwitterClient_GetUserTweets_Call) Run

type TwitterClient_GetUser_Call

type TwitterClient_GetUser_Call struct {
	*mock.Call
}

TwitterClient_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'

func (*TwitterClient_GetUser_Call) Return

func (*TwitterClient_GetUser_Call) Run

Jump to

Keyboard shortcuts

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