mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	mock.Mock
}

APIClient is an autogenerated mock type for the APIClient type

func NewAPIClient

func NewAPIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIClient

NewAPIClient creates a new instance of APIClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*APIClient) EXPECT

func (_m *APIClient) EXPECT() *APIClient_Expecter

func (*APIClient) GetChatSettings

func (_m *APIClient) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)

GetChatSettings provides a mock function with given fields: ctx, broadcasterID, moderatorID

func (*APIClient) GetStreamInfo

func (_m *APIClient) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)

GetStreamInfo provides a mock function with given fields: ctx, broadcastID

func (*APIClient) GetUsers

func (_m *APIClient) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)

GetUsers provides a mock function with given fields: ctx, logins, ids

type APIClientWithRefresh

type APIClientWithRefresh struct {
	mock.Mock
}

APIClientWithRefresh is an autogenerated mock type for the APIClientWithRefresh type

func NewAPIClientWithRefresh

func NewAPIClientWithRefresh(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIClientWithRefresh

NewAPIClientWithRefresh creates a new instance of APIClientWithRefresh. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*APIClientWithRefresh) EXPECT

func (*APIClientWithRefresh) GetChatSettings

func (_m *APIClientWithRefresh) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)

GetChatSettings provides a mock function with given fields: ctx, broadcasterID, moderatorID

func (*APIClientWithRefresh) GetStreamInfo

func (_m *APIClientWithRefresh) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)

GetStreamInfo provides a mock function with given fields: ctx, broadcastID

func (*APIClientWithRefresh) GetUsers

func (_m *APIClientWithRefresh) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)

GetUsers provides a mock function with given fields: ctx, logins, ids

func (*APIClientWithRefresh) RefreshToken

func (_m *APIClientWithRefresh) RefreshToken(ctx context.Context, refreshToken string) (string, string, error)

RefreshToken provides a mock function with given fields: ctx, refreshToken

type APIClientWithRefresh_Expecter

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

func (*APIClientWithRefresh_Expecter) GetChatSettings

func (_e *APIClientWithRefresh_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClientWithRefresh_GetChatSettings_Call

GetChatSettings is a helper method to define mock.On call

  • ctx context.Context
  • broadcasterID string
  • moderatorID string

func (*APIClientWithRefresh_Expecter) GetStreamInfo

func (_e *APIClientWithRefresh_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClientWithRefresh_GetStreamInfo_Call

GetStreamInfo is a helper method to define mock.On call

  • ctx context.Context
  • broadcastID []string

func (*APIClientWithRefresh_Expecter) GetUsers

func (_e *APIClientWithRefresh_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClientWithRefresh_GetUsers_Call

GetUsers is a helper method to define mock.On call

  • ctx context.Context
  • logins []string
  • ids []string

func (*APIClientWithRefresh_Expecter) RefreshToken

func (_e *APIClientWithRefresh_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *APIClientWithRefresh_RefreshToken_Call

RefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • refreshToken string

type APIClientWithRefresh_GetChatSettings_Call

type APIClientWithRefresh_GetChatSettings_Call struct {
	*mock.Call
}

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

func (*APIClientWithRefresh_GetChatSettings_Call) Return

func (*APIClientWithRefresh_GetChatSettings_Call) Run

type APIClientWithRefresh_GetStreamInfo_Call

type APIClientWithRefresh_GetStreamInfo_Call struct {
	*mock.Call
}

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

func (*APIClientWithRefresh_GetStreamInfo_Call) Return

func (*APIClientWithRefresh_GetStreamInfo_Call) Run

func (*APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn

type APIClientWithRefresh_GetUsers_Call

type APIClientWithRefresh_GetUsers_Call struct {
	*mock.Call
}

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

func (*APIClientWithRefresh_GetUsers_Call) Return

func (*APIClientWithRefresh_GetUsers_Call) Run

func (*APIClientWithRefresh_GetUsers_Call) RunAndReturn

type APIClientWithRefresh_RefreshToken_Call

type APIClientWithRefresh_RefreshToken_Call struct {
	*mock.Call
}

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

func (*APIClientWithRefresh_RefreshToken_Call) Return

func (*APIClientWithRefresh_RefreshToken_Call) Run

func (*APIClientWithRefresh_RefreshToken_Call) RunAndReturn

type APIClient_Expecter

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

func (*APIClient_Expecter) GetChatSettings

func (_e *APIClient_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClient_GetChatSettings_Call

GetChatSettings is a helper method to define mock.On call

  • ctx context.Context
  • broadcasterID string
  • moderatorID string

func (*APIClient_Expecter) GetStreamInfo

func (_e *APIClient_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClient_GetStreamInfo_Call

GetStreamInfo is a helper method to define mock.On call

  • ctx context.Context
  • broadcastID []string

func (*APIClient_Expecter) GetUsers

func (_e *APIClient_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClient_GetUsers_Call

GetUsers is a helper method to define mock.On call

  • ctx context.Context
  • logins []string
  • ids []string

type APIClient_GetChatSettings_Call

type APIClient_GetChatSettings_Call struct {
	*mock.Call
}

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

func (*APIClient_GetChatSettings_Call) Return

func (*APIClient_GetChatSettings_Call) Run

func (_c *APIClient_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClient_GetChatSettings_Call

func (*APIClient_GetChatSettings_Call) RunAndReturn

type APIClient_GetStreamInfo_Call

type APIClient_GetStreamInfo_Call struct {
	*mock.Call
}

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

func (*APIClient_GetStreamInfo_Call) Return

func (*APIClient_GetStreamInfo_Call) Run

func (_c *APIClient_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClient_GetStreamInfo_Call

func (*APIClient_GetStreamInfo_Call) RunAndReturn

type APIClient_GetUsers_Call

type APIClient_GetUsers_Call struct {
	*mock.Call
}

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

func (*APIClient_GetUsers_Call) Return

func (*APIClient_GetUsers_Call) Run

func (_c *APIClient_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClient_GetUsers_Call

func (*APIClient_GetUsers_Call) RunAndReturn

type AccountProvider

type AccountProvider struct {
	mock.Mock
}

AccountProvider is an autogenerated mock type for the AccountProvider type

func NewAccountProvider

func NewAccountProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountProvider

NewAccountProvider creates a new instance of AccountProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountProvider) EXPECT

func (*AccountProvider) GetAccountBy

func (_m *AccountProvider) GetAccountBy(id string) (save.Account, error)

GetAccountBy provides a mock function with given fields: id

func (*AccountProvider) GetAllAccounts

func (_m *AccountProvider) GetAllAccounts() ([]save.Account, error)

GetAllAccounts provides a mock function with given fields:

func (*AccountProvider) UpdateTokensFor

func (_m *AccountProvider) UpdateTokensFor(id string, accessToken string, refreshToken string) error

UpdateTokensFor provides a mock function with given fields: id, accessToken, refreshToken

type AccountProvider_Expecter

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

func (*AccountProvider_Expecter) GetAccountBy

func (_e *AccountProvider_Expecter) GetAccountBy(id interface{}) *AccountProvider_GetAccountBy_Call

GetAccountBy is a helper method to define mock.On call

  • id string

func (*AccountProvider_Expecter) GetAllAccounts

GetAllAccounts is a helper method to define mock.On call

func (*AccountProvider_Expecter) UpdateTokensFor

func (_e *AccountProvider_Expecter) UpdateTokensFor(id interface{}, accessToken interface{}, refreshToken interface{}) *AccountProvider_UpdateTokensFor_Call

UpdateTokensFor is a helper method to define mock.On call

  • id string
  • accessToken string
  • refreshToken string

type AccountProvider_GetAccountBy_Call

type AccountProvider_GetAccountBy_Call struct {
	*mock.Call
}

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

func (*AccountProvider_GetAccountBy_Call) Return

func (*AccountProvider_GetAccountBy_Call) Run

func (*AccountProvider_GetAccountBy_Call) RunAndReturn

type AccountProvider_GetAllAccounts_Call

type AccountProvider_GetAllAccounts_Call struct {
	*mock.Call
}

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

func (*AccountProvider_GetAllAccounts_Call) Return

func (*AccountProvider_GetAllAccounts_Call) Run

func (*AccountProvider_GetAllAccounts_Call) RunAndReturn

type AccountProvider_UpdateTokensFor_Call

type AccountProvider_UpdateTokensFor_Call struct {
	*mock.Call
}

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

func (*AccountProvider_UpdateTokensFor_Call) Return

func (*AccountProvider_UpdateTokensFor_Call) Run

func (_c *AccountProvider_UpdateTokensFor_Call) Run(run func(id string, accessToken string, refreshToken string)) *AccountProvider_UpdateTokensFor_Call

func (*AccountProvider_UpdateTokensFor_Call) RunAndReturn

type ChatPool added in v0.0.10

type ChatPool struct {
	mock.Mock
}

ChatPool is an autogenerated mock type for the ChatPool type

func NewChatPool added in v0.0.10

func NewChatPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChatPool

NewChatPool creates a new instance of ChatPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChatPool) EXPECT added in v0.0.10

func (_m *ChatPool) EXPECT() *ChatPool_Expecter

func (*ChatPool) ListenAndServe added in v0.0.10

func (_m *ChatPool) ListenAndServe(inbound <-chan multiplex.InboundMessage) <-chan multiplex.OutboundMessage

ListenAndServe provides a mock function with given fields: inbound

type ChatPool_Expecter added in v0.0.10

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

func (*ChatPool_Expecter) ListenAndServe added in v0.0.10

func (_e *ChatPool_Expecter) ListenAndServe(inbound interface{}) *ChatPool_ListenAndServe_Call

ListenAndServe is a helper method to define mock.On call

  • inbound <-chan multiplex.InboundMessage

type ChatPool_ListenAndServe_Call added in v0.0.10

type ChatPool_ListenAndServe_Call struct {
	*mock.Call
}

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

func (*ChatPool_ListenAndServe_Call) Return added in v0.0.10

func (*ChatPool_ListenAndServe_Call) Run added in v0.0.10

func (*ChatPool_ListenAndServe_Call) RunAndReturn added in v0.0.10

type EmoteStore

type EmoteStore struct {
	mock.Mock
}

EmoteStore is an autogenerated mock type for the EmoteStore type

func NewEmoteStore

func NewEmoteStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *EmoteStore

NewEmoteStore creates a new instance of EmoteStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EmoteStore) EXPECT

func (_m *EmoteStore) EXPECT() *EmoteStore_Expecter

func (*EmoteStore) GetAllForUser

func (_m *EmoteStore) GetAllForUser(id string) emote.EmoteSet

GetAllForUser provides a mock function with given fields: id

func (*EmoteStore) GetByText

func (_m *EmoteStore) GetByText(channel string, text string) (emote.Emote, bool)

GetByText provides a mock function with given fields: channel, text

func (*EmoteStore) RefreshGlobal

func (_m *EmoteStore) RefreshGlobal(ctx context.Context) error

RefreshGlobal provides a mock function with given fields: ctx

func (*EmoteStore) RefreshLocal

func (_m *EmoteStore) RefreshLocal(ctx context.Context, channelID string) error

RefreshLocal provides a mock function with given fields: ctx, channelID

type EmoteStore_Expecter

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

func (*EmoteStore_Expecter) GetAllForUser

func (_e *EmoteStore_Expecter) GetAllForUser(id interface{}) *EmoteStore_GetAllForUser_Call

GetAllForUser is a helper method to define mock.On call

  • id string

func (*EmoteStore_Expecter) GetByText

func (_e *EmoteStore_Expecter) GetByText(channel interface{}, text interface{}) *EmoteStore_GetByText_Call

GetByText is a helper method to define mock.On call

  • channel string
  • text string

func (*EmoteStore_Expecter) RefreshGlobal

func (_e *EmoteStore_Expecter) RefreshGlobal(ctx interface{}) *EmoteStore_RefreshGlobal_Call

RefreshGlobal is a helper method to define mock.On call

  • ctx context.Context

func (*EmoteStore_Expecter) RefreshLocal

func (_e *EmoteStore_Expecter) RefreshLocal(ctx interface{}, channelID interface{}) *EmoteStore_RefreshLocal_Call

RefreshLocal is a helper method to define mock.On call

  • ctx context.Context
  • channelID string

type EmoteStore_GetAllForUser_Call

type EmoteStore_GetAllForUser_Call struct {
	*mock.Call
}

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

func (*EmoteStore_GetAllForUser_Call) Return

func (*EmoteStore_GetAllForUser_Call) Run

func (*EmoteStore_GetAllForUser_Call) RunAndReturn

type EmoteStore_GetByText_Call

type EmoteStore_GetByText_Call struct {
	*mock.Call
}

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

func (*EmoteStore_GetByText_Call) Return

func (*EmoteStore_GetByText_Call) Run

func (_c *EmoteStore_GetByText_Call) Run(run func(channel string, text string)) *EmoteStore_GetByText_Call

func (*EmoteStore_GetByText_Call) RunAndReturn

type EmoteStore_RefreshGlobal_Call

type EmoteStore_RefreshGlobal_Call struct {
	*mock.Call
}

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

func (*EmoteStore_RefreshGlobal_Call) Return

func (*EmoteStore_RefreshGlobal_Call) Run

func (*EmoteStore_RefreshGlobal_Call) RunAndReturn

type EmoteStore_RefreshLocal_Call

type EmoteStore_RefreshLocal_Call struct {
	*mock.Call
}

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

func (*EmoteStore_RefreshLocal_Call) Return

func (*EmoteStore_RefreshLocal_Call) Run

func (*EmoteStore_RefreshLocal_Call) RunAndReturn

Jump to

Keyboard shortcuts

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