Documentation
¶
Index ¶
- type APIClient
- func (_m *APIClient) EXPECT() *APIClient_Expecter
- func (_m *APIClient) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)
- func (_m *APIClient) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)
- func (_m *APIClient) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)
- type APIClientWithRefresh
- func (_m *APIClientWithRefresh) EXPECT() *APIClientWithRefresh_Expecter
- func (_m *APIClientWithRefresh) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitch.GetChatSettingsResponse, error)
- func (_m *APIClientWithRefresh) GetStreamInfo(ctx context.Context, broadcastID []string) (twitch.GetStreamsResponse, error)
- func (_m *APIClientWithRefresh) GetUsers(ctx context.Context, logins []string, ids []string) (twitch.UserResponse, error)
- func (_m *APIClientWithRefresh) RefreshToken(ctx context.Context, refreshToken string) (string, string, error)
- type APIClientWithRefresh_Expecter
- func (_e *APIClientWithRefresh_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClientWithRefresh_GetChatSettings_Call
- func (_e *APIClientWithRefresh_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClientWithRefresh_GetStreamInfo_Call
- func (_e *APIClientWithRefresh_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClientWithRefresh_GetUsers_Call
- func (_e *APIClientWithRefresh_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *APIClientWithRefresh_RefreshToken_Call
- type APIClientWithRefresh_GetChatSettings_Call
- func (_c *APIClientWithRefresh_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClientWithRefresh_GetChatSettings_Call
- func (_c *APIClientWithRefresh_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClientWithRefresh_GetChatSettings_Call
- func (_c *APIClientWithRefresh_GetChatSettings_Call) RunAndReturn(...) *APIClientWithRefresh_GetChatSettings_Call
- type APIClientWithRefresh_GetStreamInfo_Call
- func (_c *APIClientWithRefresh_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClientWithRefresh_GetStreamInfo_Call
- func (_c *APIClientWithRefresh_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClientWithRefresh_GetStreamInfo_Call
- func (_c *APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClientWithRefresh_GetStreamInfo_Call
- type APIClientWithRefresh_GetUsers_Call
- func (_c *APIClientWithRefresh_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClientWithRefresh_GetUsers_Call
- func (_c *APIClientWithRefresh_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClientWithRefresh_GetUsers_Call
- func (_c *APIClientWithRefresh_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClientWithRefresh_GetUsers_Call
- type APIClientWithRefresh_RefreshToken_Call
- func (_c *APIClientWithRefresh_RefreshToken_Call) Return(_a0 string, _a1 string, _a2 error) *APIClientWithRefresh_RefreshToken_Call
- func (_c *APIClientWithRefresh_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *APIClientWithRefresh_RefreshToken_Call
- func (_c *APIClientWithRefresh_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (string, string, error)) *APIClientWithRefresh_RefreshToken_Call
- type APIClient_Expecter
- func (_e *APIClient_Expecter) GetChatSettings(ctx interface{}, broadcasterID interface{}, moderatorID interface{}) *APIClient_GetChatSettings_Call
- func (_e *APIClient_Expecter) GetStreamInfo(ctx interface{}, broadcastID interface{}) *APIClient_GetStreamInfo_Call
- func (_e *APIClient_Expecter) GetUsers(ctx interface{}, logins interface{}, ids interface{}) *APIClient_GetUsers_Call
- type APIClient_GetChatSettings_Call
- func (_c *APIClient_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClient_GetChatSettings_Call
- func (_c *APIClient_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClient_GetChatSettings_Call
- func (_c *APIClient_GetChatSettings_Call) RunAndReturn(...) *APIClient_GetChatSettings_Call
- type APIClient_GetStreamInfo_Call
- func (_c *APIClient_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClient_GetStreamInfo_Call
- func (_c *APIClient_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClient_GetStreamInfo_Call
- func (_c *APIClient_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClient_GetStreamInfo_Call
- type APIClient_GetUsers_Call
- func (_c *APIClient_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClient_GetUsers_Call
- func (_c *APIClient_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClient_GetUsers_Call
- func (_c *APIClient_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClient_GetUsers_Call
- type AccountProvider
- func (_m *AccountProvider) EXPECT() *AccountProvider_Expecter
- func (_m *AccountProvider) GetAccountBy(id string) (save.Account, error)
- func (_m *AccountProvider) GetAllAccounts() ([]save.Account, error)
- func (_m *AccountProvider) UpdateTokensFor(id string, accessToken string, refreshToken string) error
- type AccountProvider_Expecter
- func (_e *AccountProvider_Expecter) GetAccountBy(id interface{}) *AccountProvider_GetAccountBy_Call
- func (_e *AccountProvider_Expecter) GetAllAccounts() *AccountProvider_GetAllAccounts_Call
- func (_e *AccountProvider_Expecter) UpdateTokensFor(id interface{}, accessToken interface{}, refreshToken interface{}) *AccountProvider_UpdateTokensFor_Call
- type AccountProvider_GetAccountBy_Call
- func (_c *AccountProvider_GetAccountBy_Call) Return(_a0 save.Account, _a1 error) *AccountProvider_GetAccountBy_Call
- func (_c *AccountProvider_GetAccountBy_Call) Run(run func(id string)) *AccountProvider_GetAccountBy_Call
- func (_c *AccountProvider_GetAccountBy_Call) RunAndReturn(run func(string) (save.Account, error)) *AccountProvider_GetAccountBy_Call
- type AccountProvider_GetAllAccounts_Call
- func (_c *AccountProvider_GetAllAccounts_Call) Return(_a0 []save.Account, _a1 error) *AccountProvider_GetAllAccounts_Call
- func (_c *AccountProvider_GetAllAccounts_Call) Run(run func()) *AccountProvider_GetAllAccounts_Call
- func (_c *AccountProvider_GetAllAccounts_Call) RunAndReturn(run func() ([]save.Account, error)) *AccountProvider_GetAllAccounts_Call
- type AccountProvider_UpdateTokensFor_Call
- func (_c *AccountProvider_UpdateTokensFor_Call) Return(_a0 error) *AccountProvider_UpdateTokensFor_Call
- func (_c *AccountProvider_UpdateTokensFor_Call) Run(run func(id string, accessToken string, refreshToken string)) *AccountProvider_UpdateTokensFor_Call
- func (_c *AccountProvider_UpdateTokensFor_Call) RunAndReturn(run func(string, string, string) error) *AccountProvider_UpdateTokensFor_Call
- type EmoteStore
- func (_m *EmoteStore) EXPECT() *EmoteStore_Expecter
- func (_m *EmoteStore) GetAllForUser(id string) emote.EmoteSet
- func (_m *EmoteStore) GetByText(channel string, text string) (emote.Emote, bool)
- func (_m *EmoteStore) RefreshGlobal(ctx context.Context) error
- func (_m *EmoteStore) RefreshLocal(ctx context.Context, channelID string) error
- type EmoteStore_Expecter
- func (_e *EmoteStore_Expecter) GetAllForUser(id interface{}) *EmoteStore_GetAllForUser_Call
- func (_e *EmoteStore_Expecter) GetByText(channel interface{}, text interface{}) *EmoteStore_GetByText_Call
- func (_e *EmoteStore_Expecter) RefreshGlobal(ctx interface{}) *EmoteStore_RefreshGlobal_Call
- func (_e *EmoteStore_Expecter) RefreshLocal(ctx interface{}, channelID interface{}) *EmoteStore_RefreshLocal_Call
- type EmoteStore_GetAllForUser_Call
- func (_c *EmoteStore_GetAllForUser_Call) Return(_a0 emote.EmoteSet) *EmoteStore_GetAllForUser_Call
- func (_c *EmoteStore_GetAllForUser_Call) Run(run func(id string)) *EmoteStore_GetAllForUser_Call
- func (_c *EmoteStore_GetAllForUser_Call) RunAndReturn(run func(string) emote.EmoteSet) *EmoteStore_GetAllForUser_Call
- type EmoteStore_GetByText_Call
- func (_c *EmoteStore_GetByText_Call) Return(_a0 emote.Emote, _a1 bool) *EmoteStore_GetByText_Call
- func (_c *EmoteStore_GetByText_Call) Run(run func(channel string, text string)) *EmoteStore_GetByText_Call
- func (_c *EmoteStore_GetByText_Call) RunAndReturn(run func(string, string) (emote.Emote, bool)) *EmoteStore_GetByText_Call
- type EmoteStore_RefreshGlobal_Call
- func (_c *EmoteStore_RefreshGlobal_Call) Return(_a0 error) *EmoteStore_RefreshGlobal_Call
- func (_c *EmoteStore_RefreshGlobal_Call) Run(run func(ctx context.Context)) *EmoteStore_RefreshGlobal_Call
- func (_c *EmoteStore_RefreshGlobal_Call) RunAndReturn(run func(context.Context) error) *EmoteStore_RefreshGlobal_Call
- type EmoteStore_RefreshLocal_Call
- func (_c *EmoteStore_RefreshLocal_Call) Return(_a0 error) *EmoteStore_RefreshLocal_Call
- func (_c *EmoteStore_RefreshLocal_Call) Run(run func(ctx context.Context, channelID string)) *EmoteStore_RefreshLocal_Call
- func (_c *EmoteStore_RefreshLocal_Call) RunAndReturn(run func(context.Context, string) error) *EmoteStore_RefreshLocal_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient is an autogenerated mock type for the APIClient type
func NewAPIClient ¶
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
type APIClientWithRefresh ¶
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 (_m *APIClientWithRefresh) EXPECT() *APIClientWithRefresh_Expecter
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 ¶
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 (_c *APIClientWithRefresh_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClientWithRefresh_GetChatSettings_Call
func (*APIClientWithRefresh_GetChatSettings_Call) Run ¶
func (_c *APIClientWithRefresh_GetChatSettings_Call) Run(run func(ctx context.Context, broadcasterID string, moderatorID string)) *APIClientWithRefresh_GetChatSettings_Call
func (*APIClientWithRefresh_GetChatSettings_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_GetChatSettings_Call) RunAndReturn(run func(context.Context, string, string) (twitch.GetChatSettingsResponse, error)) *APIClientWithRefresh_GetChatSettings_Call
type APIClientWithRefresh_GetStreamInfo_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 (_c *APIClientWithRefresh_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClientWithRefresh_GetStreamInfo_Call
func (*APIClientWithRefresh_GetStreamInfo_Call) Run ¶
func (_c *APIClientWithRefresh_GetStreamInfo_Call) Run(run func(ctx context.Context, broadcastID []string)) *APIClientWithRefresh_GetStreamInfo_Call
func (*APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClientWithRefresh_GetStreamInfo_Call
type APIClientWithRefresh_GetUsers_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 (_c *APIClientWithRefresh_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClientWithRefresh_GetUsers_Call
func (*APIClientWithRefresh_GetUsers_Call) Run ¶
func (_c *APIClientWithRefresh_GetUsers_Call) Run(run func(ctx context.Context, logins []string, ids []string)) *APIClientWithRefresh_GetUsers_Call
func (*APIClientWithRefresh_GetUsers_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClientWithRefresh_GetUsers_Call
type APIClientWithRefresh_RefreshToken_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 (_c *APIClientWithRefresh_RefreshToken_Call) Return(_a0 string, _a1 string, _a2 error) *APIClientWithRefresh_RefreshToken_Call
func (*APIClientWithRefresh_RefreshToken_Call) Run ¶
func (_c *APIClientWithRefresh_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *APIClientWithRefresh_RefreshToken_Call
func (*APIClientWithRefresh_RefreshToken_Call) RunAndReturn ¶
func (_c *APIClientWithRefresh_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (string, string, error)) *APIClientWithRefresh_RefreshToken_Call
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 ¶
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 (_c *APIClient_GetChatSettings_Call) Return(_a0 twitch.GetChatSettingsResponse, _a1 error) *APIClient_GetChatSettings_Call
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 ¶
func (_c *APIClient_GetChatSettings_Call) RunAndReturn(run func(context.Context, string, string) (twitch.GetChatSettingsResponse, error)) *APIClient_GetChatSettings_Call
type APIClient_GetStreamInfo_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 (_c *APIClient_GetStreamInfo_Call) Return(_a0 twitch.GetStreamsResponse, _a1 error) *APIClient_GetStreamInfo_Call
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 ¶
func (_c *APIClient_GetStreamInfo_Call) RunAndReturn(run func(context.Context, []string) (twitch.GetStreamsResponse, error)) *APIClient_GetStreamInfo_Call
type APIClient_GetUsers_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 (_c *APIClient_GetUsers_Call) Return(_a0 twitch.UserResponse, _a1 error) *APIClient_GetUsers_Call
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 ¶
func (_c *APIClient_GetUsers_Call) RunAndReturn(run func(context.Context, []string, []string) (twitch.UserResponse, error)) *APIClient_GetUsers_Call
type AccountProvider ¶
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 (_m *AccountProvider) EXPECT() *AccountProvider_Expecter
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 ¶
func (_e *AccountProvider_Expecter) GetAllAccounts() *AccountProvider_GetAllAccounts_Call
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 ¶
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 (_c *AccountProvider_GetAccountBy_Call) Return(_a0 save.Account, _a1 error) *AccountProvider_GetAccountBy_Call
func (*AccountProvider_GetAccountBy_Call) Run ¶
func (_c *AccountProvider_GetAccountBy_Call) Run(run func(id string)) *AccountProvider_GetAccountBy_Call
func (*AccountProvider_GetAccountBy_Call) RunAndReturn ¶
func (_c *AccountProvider_GetAccountBy_Call) RunAndReturn(run func(string) (save.Account, error)) *AccountProvider_GetAccountBy_Call
type AccountProvider_GetAllAccounts_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 (_c *AccountProvider_GetAllAccounts_Call) Return(_a0 []save.Account, _a1 error) *AccountProvider_GetAllAccounts_Call
func (*AccountProvider_GetAllAccounts_Call) Run ¶
func (_c *AccountProvider_GetAllAccounts_Call) Run(run func()) *AccountProvider_GetAllAccounts_Call
func (*AccountProvider_GetAllAccounts_Call) RunAndReturn ¶
func (_c *AccountProvider_GetAllAccounts_Call) RunAndReturn(run func() ([]save.Account, error)) *AccountProvider_GetAllAccounts_Call
type AccountProvider_UpdateTokensFor_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 (_c *AccountProvider_UpdateTokensFor_Call) Return(_a0 error) *AccountProvider_UpdateTokensFor_Call
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 ¶
func (_c *AccountProvider_UpdateTokensFor_Call) RunAndReturn(run func(string, string, string) error) *AccountProvider_UpdateTokensFor_Call
type EmoteStore ¶
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) 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 ¶
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 (_c *EmoteStore_GetAllForUser_Call) Return(_a0 emote.EmoteSet) *EmoteStore_GetAllForUser_Call
func (*EmoteStore_GetAllForUser_Call) Run ¶
func (_c *EmoteStore_GetAllForUser_Call) Run(run func(id string)) *EmoteStore_GetAllForUser_Call
func (*EmoteStore_GetAllForUser_Call) RunAndReturn ¶
func (_c *EmoteStore_GetAllForUser_Call) RunAndReturn(run func(string) emote.EmoteSet) *EmoteStore_GetAllForUser_Call
type EmoteStore_GetByText_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 (_c *EmoteStore_GetByText_Call) Return(_a0 emote.Emote, _a1 bool) *EmoteStore_GetByText_Call
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 ¶
func (_c *EmoteStore_GetByText_Call) RunAndReturn(run func(string, string) (emote.Emote, bool)) *EmoteStore_GetByText_Call
type EmoteStore_RefreshGlobal_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 (_c *EmoteStore_RefreshGlobal_Call) Return(_a0 error) *EmoteStore_RefreshGlobal_Call
func (*EmoteStore_RefreshGlobal_Call) Run ¶
func (_c *EmoteStore_RefreshGlobal_Call) Run(run func(ctx context.Context)) *EmoteStore_RefreshGlobal_Call
func (*EmoteStore_RefreshGlobal_Call) RunAndReturn ¶
func (_c *EmoteStore_RefreshGlobal_Call) RunAndReturn(run func(context.Context) error) *EmoteStore_RefreshGlobal_Call
type EmoteStore_RefreshLocal_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 (_c *EmoteStore_RefreshLocal_Call) Return(_a0 error) *EmoteStore_RefreshLocal_Call
func (*EmoteStore_RefreshLocal_Call) Run ¶
func (_c *EmoteStore_RefreshLocal_Call) Run(run func(ctx context.Context, channelID string)) *EmoteStore_RefreshLocal_Call
func (*EmoteStore_RefreshLocal_Call) RunAndReturn ¶
func (_c *EmoteStore_RefreshLocal_Call) RunAndReturn(run func(context.Context, string) error) *EmoteStore_RefreshLocal_Call