mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 9 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 BTTVEmoteFetcher added in v0.3.0

type BTTVEmoteFetcher struct {
	mock.Mock
}

BTTVEmoteFetcher is an autogenerated mock type for the BTTVEmoteFetcher type

func NewBTTVEmoteFetcher added in v0.3.0

func NewBTTVEmoteFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *BTTVEmoteFetcher

NewBTTVEmoteFetcher creates a new instance of BTTVEmoteFetcher. 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 (*BTTVEmoteFetcher) EXPECT added in v0.3.0

func (*BTTVEmoteFetcher) GetChannelEmotes added in v0.3.0

func (_m *BTTVEmoteFetcher) GetChannelEmotes(ctx context.Context, broadcaster string) (bttv.UserResponse, error)

GetChannelEmotes provides a mock function with given fields: ctx, broadcaster

func (*BTTVEmoteFetcher) GetGlobalEmotes added in v0.3.0

func (_m *BTTVEmoteFetcher) GetGlobalEmotes(_a0 context.Context) (bttv.GlobalEmoteResponse, error)

GetGlobalEmotes provides a mock function with given fields: _a0

type BTTVEmoteFetcher_Expecter added in v0.3.0

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

func (*BTTVEmoteFetcher_Expecter) GetChannelEmotes added in v0.3.0

func (_e *BTTVEmoteFetcher_Expecter) GetChannelEmotes(ctx interface{}, broadcaster interface{}) *BTTVEmoteFetcher_GetChannelEmotes_Call

GetChannelEmotes is a helper method to define mock.On call

  • ctx context.Context
  • broadcaster string

func (*BTTVEmoteFetcher_Expecter) GetGlobalEmotes added in v0.3.0

func (_e *BTTVEmoteFetcher_Expecter) GetGlobalEmotes(_a0 interface{}) *BTTVEmoteFetcher_GetGlobalEmotes_Call

GetGlobalEmotes is a helper method to define mock.On call

  • _a0 context.Context

type BTTVEmoteFetcher_GetChannelEmotes_Call added in v0.3.0

type BTTVEmoteFetcher_GetChannelEmotes_Call struct {
	*mock.Call
}

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

func (*BTTVEmoteFetcher_GetChannelEmotes_Call) Return added in v0.3.0

func (*BTTVEmoteFetcher_GetChannelEmotes_Call) Run added in v0.3.0

func (*BTTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn added in v0.3.0

type BTTVEmoteFetcher_GetGlobalEmotes_Call added in v0.3.0

type BTTVEmoteFetcher_GetGlobalEmotes_Call struct {
	*mock.Call
}

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

func (*BTTVEmoteFetcher_GetGlobalEmotes_Call) Return added in v0.3.0

func (*BTTVEmoteFetcher_GetGlobalEmotes_Call) Run added in v0.3.0

func (*BTTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn added in v0.3.0

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 DB added in v0.4.0

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB added in v0.4.0

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. 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 (*DB) EXPECT added in v0.4.0

func (_m *DB) EXPECT() *DB_Expecter

func (*DB) Exec added in v0.4.0

func (_m *DB) Exec(query string, args ...interface{}) (sql.Result, error)

Exec provides a mock function with given fields: query, args

func (*DB) Query added in v0.5.0

func (_m *DB) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

type DB_Exec_Call added in v0.4.0

type DB_Exec_Call struct {
	*mock.Call
}

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

func (*DB_Exec_Call) Return added in v0.4.0

func (_c *DB_Exec_Call) Return(_a0 sql.Result, _a1 error) *DB_Exec_Call

func (*DB_Exec_Call) Run added in v0.4.0

func (_c *DB_Exec_Call) Run(run func(query string, args ...interface{})) *DB_Exec_Call

func (*DB_Exec_Call) RunAndReturn added in v0.4.0

func (_c *DB_Exec_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *DB_Exec_Call

type DB_Expecter added in v0.4.0

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

func (*DB_Expecter) Exec added in v0.4.0

func (_e *DB_Expecter) Exec(query interface{}, args ...interface{}) *DB_Exec_Call

Exec is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*DB_Expecter) Query added in v0.5.0

func (_e *DB_Expecter) Query(query interface{}, args ...interface{}) *DB_Query_Call

Query is a helper method to define mock.On call

  • query string
  • args ...interface{}

type DB_Query_Call added in v0.5.0

type DB_Query_Call struct {
	*mock.Call
}

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

func (*DB_Query_Call) Return added in v0.5.0

func (_c *DB_Query_Call) Return(_a0 *sql.Rows, _a1 error) *DB_Query_Call

func (*DB_Query_Call) Run added in v0.5.0

func (_c *DB_Query_Call) Run(run func(query string, args ...interface{})) *DB_Query_Call

func (*DB_Query_Call) RunAndReturn added in v0.5.0

func (_c *DB_Query_Call) RunAndReturn(run func(string, ...interface{}) (*sql.Rows, error)) *DB_Query_Call

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

type EventSubPool added in v0.3.0

type EventSubPool struct {
	mock.Mock
}

EventSubPool is an autogenerated mock type for the EventSubPool type

func NewEventSubPool added in v0.3.0

func NewEventSubPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventSubPool

NewEventSubPool creates a new instance of EventSubPool. 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 (*EventSubPool) EXPECT added in v0.3.0

func (_m *EventSubPool) EXPECT() *EventSubPool_Expecter

func (*EventSubPool) ListenAndServe added in v0.3.0

func (_m *EventSubPool) ListenAndServe(inbound <-chan multiplex.EventSubInboundMessage) error

ListenAndServe provides a mock function with given fields: inbound

type EventSubPool_Expecter added in v0.3.0

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

func (*EventSubPool_Expecter) ListenAndServe added in v0.3.0

func (_e *EventSubPool_Expecter) ListenAndServe(inbound interface{}) *EventSubPool_ListenAndServe_Call

ListenAndServe is a helper method to define mock.On call

  • inbound <-chan multiplex.EventSubInboundMessage

type EventSubPool_ListenAndServe_Call added in v0.3.0

type EventSubPool_ListenAndServe_Call struct {
	*mock.Call
}

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

func (*EventSubPool_ListenAndServe_Call) Return added in v0.3.0

func (*EventSubPool_ListenAndServe_Call) Run added in v0.3.0

func (*EventSubPool_ListenAndServe_Call) RunAndReturn added in v0.3.0

type RecentMessageService added in v0.3.0

type RecentMessageService struct {
	mock.Mock
}

RecentMessageService is an autogenerated mock type for the RecentMessageService type

func NewRecentMessageService added in v0.3.0

func NewRecentMessageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RecentMessageService

NewRecentMessageService creates a new instance of RecentMessageService. 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 (*RecentMessageService) EXPECT added in v0.3.0

func (*RecentMessageService) GetRecentMessagesFor added in v0.3.0

func (_m *RecentMessageService) GetRecentMessagesFor(ctx context.Context, channelLogin string) ([]twitch.IRCer, error)

GetRecentMessagesFor provides a mock function with given fields: ctx, channelLogin

type RecentMessageService_Expecter added in v0.3.0

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

func (*RecentMessageService_Expecter) GetRecentMessagesFor added in v0.3.0

func (_e *RecentMessageService_Expecter) GetRecentMessagesFor(ctx interface{}, channelLogin interface{}) *RecentMessageService_GetRecentMessagesFor_Call

GetRecentMessagesFor is a helper method to define mock.On call

  • ctx context.Context
  • channelLogin string

type RecentMessageService_GetRecentMessagesFor_Call added in v0.3.0

type RecentMessageService_GetRecentMessagesFor_Call struct {
	*mock.Call
}

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

func (*RecentMessageService_GetRecentMessagesFor_Call) Return added in v0.3.0

func (*RecentMessageService_GetRecentMessagesFor_Call) Run added in v0.3.0

func (*RecentMessageService_GetRecentMessagesFor_Call) RunAndReturn added in v0.3.0

type SevenTVEmoteFetcher added in v0.3.0

type SevenTVEmoteFetcher struct {
	mock.Mock
}

SevenTVEmoteFetcher is an autogenerated mock type for the SevenTVEmoteFetcher type

func NewSevenTVEmoteFetcher added in v0.3.0

func NewSevenTVEmoteFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *SevenTVEmoteFetcher

NewSevenTVEmoteFetcher creates a new instance of SevenTVEmoteFetcher. 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 (*SevenTVEmoteFetcher) EXPECT added in v0.3.0

func (*SevenTVEmoteFetcher) GetChannelEmotes added in v0.3.0

func (_m *SevenTVEmoteFetcher) GetChannelEmotes(ctx context.Context, broadcaster string) (seventv.ChannelEmoteResponse, error)

GetChannelEmotes provides a mock function with given fields: ctx, broadcaster

func (*SevenTVEmoteFetcher) GetGlobalEmotes added in v0.3.0

func (_m *SevenTVEmoteFetcher) GetGlobalEmotes(_a0 context.Context) (seventv.EmoteResponse, error)

GetGlobalEmotes provides a mock function with given fields: _a0

type SevenTVEmoteFetcher_Expecter added in v0.3.0

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

func (*SevenTVEmoteFetcher_Expecter) GetChannelEmotes added in v0.3.0

func (_e *SevenTVEmoteFetcher_Expecter) GetChannelEmotes(ctx interface{}, broadcaster interface{}) *SevenTVEmoteFetcher_GetChannelEmotes_Call

GetChannelEmotes is a helper method to define mock.On call

  • ctx context.Context
  • broadcaster string

func (*SevenTVEmoteFetcher_Expecter) GetGlobalEmotes added in v0.3.0

func (_e *SevenTVEmoteFetcher_Expecter) GetGlobalEmotes(_a0 interface{}) *SevenTVEmoteFetcher_GetGlobalEmotes_Call

GetGlobalEmotes is a helper method to define mock.On call

  • _a0 context.Context

type SevenTVEmoteFetcher_GetChannelEmotes_Call added in v0.3.0

type SevenTVEmoteFetcher_GetChannelEmotes_Call struct {
	*mock.Call
}

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

func (*SevenTVEmoteFetcher_GetChannelEmotes_Call) Return added in v0.3.0

func (*SevenTVEmoteFetcher_GetChannelEmotes_Call) Run added in v0.3.0

func (*SevenTVEmoteFetcher_GetChannelEmotes_Call) RunAndReturn added in v0.3.0

type SevenTVEmoteFetcher_GetGlobalEmotes_Call added in v0.3.0

type SevenTVEmoteFetcher_GetGlobalEmotes_Call struct {
	*mock.Call
}

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

func (*SevenTVEmoteFetcher_GetGlobalEmotes_Call) Return added in v0.3.0

func (*SevenTVEmoteFetcher_GetGlobalEmotes_Call) Run added in v0.3.0

func (*SevenTVEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn added in v0.3.0

type TwitchEmoteFetcher added in v0.3.0

type TwitchEmoteFetcher struct {
	mock.Mock
}

TwitchEmoteFetcher is an autogenerated mock type for the TwitchEmoteFetcher type

func NewTwitchEmoteFetcher added in v0.3.0

func NewTwitchEmoteFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *TwitchEmoteFetcher

NewTwitchEmoteFetcher creates a new instance of TwitchEmoteFetcher. 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 (*TwitchEmoteFetcher) EXPECT added in v0.3.0

func (*TwitchEmoteFetcher) GetChannelEmotes added in v0.3.0

func (_m *TwitchEmoteFetcher) GetChannelEmotes(ctx context.Context, broadcaster string) (twitch.EmoteResponse, error)

GetChannelEmotes provides a mock function with given fields: ctx, broadcaster

func (*TwitchEmoteFetcher) GetGlobalEmotes added in v0.3.0

func (_m *TwitchEmoteFetcher) GetGlobalEmotes(_a0 context.Context) (twitch.EmoteResponse, error)

GetGlobalEmotes provides a mock function with given fields: _a0

type TwitchEmoteFetcher_Expecter added in v0.3.0

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

func (*TwitchEmoteFetcher_Expecter) GetChannelEmotes added in v0.3.0

func (_e *TwitchEmoteFetcher_Expecter) GetChannelEmotes(ctx interface{}, broadcaster interface{}) *TwitchEmoteFetcher_GetChannelEmotes_Call

GetChannelEmotes is a helper method to define mock.On call

  • ctx context.Context
  • broadcaster string

func (*TwitchEmoteFetcher_Expecter) GetGlobalEmotes added in v0.3.0

func (_e *TwitchEmoteFetcher_Expecter) GetGlobalEmotes(_a0 interface{}) *TwitchEmoteFetcher_GetGlobalEmotes_Call

GetGlobalEmotes is a helper method to define mock.On call

  • _a0 context.Context

type TwitchEmoteFetcher_GetChannelEmotes_Call added in v0.3.0

type TwitchEmoteFetcher_GetChannelEmotes_Call struct {
	*mock.Call
}

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

func (*TwitchEmoteFetcher_GetChannelEmotes_Call) Return added in v0.3.0

func (*TwitchEmoteFetcher_GetChannelEmotes_Call) Run added in v0.3.0

func (*TwitchEmoteFetcher_GetChannelEmotes_Call) RunAndReturn added in v0.3.0

type TwitchEmoteFetcher_GetGlobalEmotes_Call added in v0.3.0

type TwitchEmoteFetcher_GetGlobalEmotes_Call struct {
	*mock.Call
}

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

func (*TwitchEmoteFetcher_GetGlobalEmotes_Call) Return added in v0.3.0

func (*TwitchEmoteFetcher_GetGlobalEmotes_Call) Run added in v0.3.0

func (*TwitchEmoteFetcher_GetGlobalEmotes_Call) RunAndReturn added in v0.3.0

Jump to

Keyboard shortcuts

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