Documentation
¶
Index ¶
- type DiscordOpt
- type DiscordOpt_Execute_Call
- type DiscordOpt_Expecter
- type Gosesher
- func (_m *Gosesher) EXPECT() *Gosesher_Expecter
- func (_m *Gosesher) Host() string
- func (_m *Gosesher) OAuth2Begin(cfg *oauth2.Config) http.HandlerFunc
- func (_m *Gosesher) OAuth2Callback(user gosesh.OAuth2User, cfg *oauth2.Config, handler gosesh.HandlerDone) http.HandlerFunc
- func (_m *Gosesher) Scheme() string
- type Gosesher_Expecter
- func (_e *Gosesher_Expecter) Host() *Gosesher_Host_Call
- func (_e *Gosesher_Expecter) OAuth2Begin(cfg interface{}) *Gosesher_OAuth2Begin_Call
- func (_e *Gosesher_Expecter) OAuth2Callback(user interface{}, cfg interface{}, handler interface{}) *Gosesher_OAuth2Callback_Call
- func (_e *Gosesher_Expecter) Scheme() *Gosesher_Scheme_Call
- type Gosesher_Host_Call
- type Gosesher_OAuth2Begin_Call
- func (_c *Gosesher_OAuth2Begin_Call) Return(_a0 http.HandlerFunc) *Gosesher_OAuth2Begin_Call
- func (_c *Gosesher_OAuth2Begin_Call) Run(run func(cfg *oauth2.Config)) *Gosesher_OAuth2Begin_Call
- func (_c *Gosesher_OAuth2Begin_Call) RunAndReturn(run func(*oauth2.Config) http.HandlerFunc) *Gosesher_OAuth2Begin_Call
- type Gosesher_OAuth2Callback_Call
- type Gosesher_Scheme_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordOpt ¶ added in v0.1.2
DiscordOpt is an autogenerated mock type for the DiscordOpt type
func NewDiscordOpt ¶ added in v0.1.2
func NewDiscordOpt(t interface { mock.TestingT Cleanup(func()) }) *DiscordOpt
NewDiscordOpt creates a new instance of DiscordOpt. 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 (*DiscordOpt) EXPECT ¶ added in v0.1.2
func (_m *DiscordOpt) EXPECT() *DiscordOpt_Expecter
func (*DiscordOpt) Execute ¶ added in v0.1.2
func (_m *DiscordOpt) Execute(_a0 *providers.Discord)
Execute provides a mock function with given fields: _a0
type DiscordOpt_Execute_Call ¶ added in v0.1.2
DiscordOpt_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*DiscordOpt_Execute_Call) Return ¶ added in v0.1.2
func (_c *DiscordOpt_Execute_Call) Return() *DiscordOpt_Execute_Call
func (*DiscordOpt_Execute_Call) Run ¶ added in v0.1.2
func (_c *DiscordOpt_Execute_Call) Run(run func(_a0 *providers.Discord)) *DiscordOpt_Execute_Call
func (*DiscordOpt_Execute_Call) RunAndReturn ¶ added in v0.1.2
func (_c *DiscordOpt_Execute_Call) RunAndReturn(run func(*providers.Discord)) *DiscordOpt_Execute_Call
type DiscordOpt_Expecter ¶ added in v0.1.2
type DiscordOpt_Expecter struct {
// contains filtered or unexported fields
}
func (*DiscordOpt_Expecter) Execute ¶ added in v0.1.2
func (_e *DiscordOpt_Expecter) Execute(_a0 interface{}) *DiscordOpt_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *providers.Discord
type Gosesher ¶
Gosesher is an autogenerated mock type for the Gosesher type
func NewGosesher ¶
NewGosesher creates a new instance of Gosesher. 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 (*Gosesher) EXPECT ¶
func (_m *Gosesher) EXPECT() *Gosesher_Expecter
func (*Gosesher) OAuth2Begin ¶
func (_m *Gosesher) OAuth2Begin(cfg *oauth2.Config) http.HandlerFunc
OAuth2Begin provides a mock function with given fields: cfg
func (*Gosesher) OAuth2Callback ¶
func (_m *Gosesher) OAuth2Callback(user gosesh.OAuth2User, cfg *oauth2.Config, handler gosesh.HandlerDone) http.HandlerFunc
OAuth2Callback provides a mock function with given fields: user, cfg, handler
type Gosesher_Expecter ¶
type Gosesher_Expecter struct {
// contains filtered or unexported fields
}
func (*Gosesher_Expecter) Host ¶
func (_e *Gosesher_Expecter) Host() *Gosesher_Host_Call
Host is a helper method to define mock.On call
func (*Gosesher_Expecter) OAuth2Begin ¶
func (_e *Gosesher_Expecter) OAuth2Begin(cfg interface{}) *Gosesher_OAuth2Begin_Call
OAuth2Begin is a helper method to define mock.On call
- cfg *oauth2.Config
func (*Gosesher_Expecter) OAuth2Callback ¶
func (_e *Gosesher_Expecter) OAuth2Callback(user interface{}, cfg interface{}, handler interface{}) *Gosesher_OAuth2Callback_Call
OAuth2Callback is a helper method to define mock.On call
- user gosesh.OAuth2User
- cfg *oauth2.Config
- handler gosesh.HandlerDone
func (*Gosesher_Expecter) Scheme ¶
func (_e *Gosesher_Expecter) Scheme() *Gosesher_Scheme_Call
Scheme is a helper method to define mock.On call
type Gosesher_Host_Call ¶
Gosesher_Host_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Host'
func (*Gosesher_Host_Call) Return ¶
func (_c *Gosesher_Host_Call) Return(_a0 string) *Gosesher_Host_Call
func (*Gosesher_Host_Call) Run ¶
func (_c *Gosesher_Host_Call) Run(run func()) *Gosesher_Host_Call
func (*Gosesher_Host_Call) RunAndReturn ¶
func (_c *Gosesher_Host_Call) RunAndReturn(run func() string) *Gosesher_Host_Call
type Gosesher_OAuth2Begin_Call ¶
Gosesher_OAuth2Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Begin'
func (*Gosesher_OAuth2Begin_Call) Return ¶
func (_c *Gosesher_OAuth2Begin_Call) Return(_a0 http.HandlerFunc) *Gosesher_OAuth2Begin_Call
func (*Gosesher_OAuth2Begin_Call) Run ¶
func (_c *Gosesher_OAuth2Begin_Call) Run(run func(cfg *oauth2.Config)) *Gosesher_OAuth2Begin_Call
func (*Gosesher_OAuth2Begin_Call) RunAndReturn ¶
func (_c *Gosesher_OAuth2Begin_Call) RunAndReturn(run func(*oauth2.Config) http.HandlerFunc) *Gosesher_OAuth2Begin_Call
type Gosesher_OAuth2Callback_Call ¶
Gosesher_OAuth2Callback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Callback'
func (*Gosesher_OAuth2Callback_Call) Return ¶
func (_c *Gosesher_OAuth2Callback_Call) Return(_a0 http.HandlerFunc) *Gosesher_OAuth2Callback_Call
func (*Gosesher_OAuth2Callback_Call) Run ¶
func (_c *Gosesher_OAuth2Callback_Call) Run(run func(user gosesh.OAuth2User, cfg *oauth2.Config, handler gosesh.HandlerDone)) *Gosesher_OAuth2Callback_Call
func (*Gosesher_OAuth2Callback_Call) RunAndReturn ¶
func (_c *Gosesher_OAuth2Callback_Call) RunAndReturn(run func(gosesh.OAuth2User, *oauth2.Config, gosesh.HandlerDone) http.HandlerFunc) *Gosesher_OAuth2Callback_Call
type Gosesher_Scheme_Call ¶
Gosesher_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*Gosesher_Scheme_Call) Return ¶
func (_c *Gosesher_Scheme_Call) Return(_a0 string) *Gosesher_Scheme_Call
func (*Gosesher_Scheme_Call) Run ¶
func (_c *Gosesher_Scheme_Call) Run(run func()) *Gosesher_Scheme_Call
func (*Gosesher_Scheme_Call) RunAndReturn ¶
func (_c *Gosesher_Scheme_Call) RunAndReturn(run func() string) *Gosesher_Scheme_Call