mock_providers

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordOpt added in v0.1.2

type DiscordOpt struct {
	mock.Mock
}

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

type DiscordOpt_Execute_Call struct {
	*mock.Call
}

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 (*DiscordOpt_Execute_Call) Run added in v0.1.2

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 GoogleOpt added in v0.5.2

type GoogleOpt struct {
	mock.Mock
}

GoogleOpt is an autogenerated mock type for the GoogleOpt type

func NewGoogleOpt added in v0.5.2

func NewGoogleOpt(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoogleOpt

NewGoogleOpt creates a new instance of GoogleOpt. 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 (*GoogleOpt) EXPECT added in v0.5.2

func (_m *GoogleOpt) EXPECT() *GoogleOpt_Expecter

func (*GoogleOpt) Execute added in v0.5.2

func (_m *GoogleOpt) Execute(_a0 *providers.Google)

Execute provides a mock function with given fields: _a0

type GoogleOpt_Execute_Call added in v0.5.2

type GoogleOpt_Execute_Call struct {
	*mock.Call
}

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

func (*GoogleOpt_Execute_Call) Return added in v0.5.2

func (*GoogleOpt_Execute_Call) Run added in v0.5.2

func (*GoogleOpt_Execute_Call) RunAndReturn added in v0.5.2

func (_c *GoogleOpt_Execute_Call) RunAndReturn(run func(*providers.Google)) *GoogleOpt_Execute_Call

type GoogleOpt_Expecter added in v0.5.2

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

func (*GoogleOpt_Expecter) Execute added in v0.5.2

func (_e *GoogleOpt_Expecter) Execute(_a0 interface{}) *GoogleOpt_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *providers.Google

type Gosesher

type Gosesher struct {
	mock.Mock
}

Gosesher is an autogenerated mock type for the Gosesher type

func NewGosesher

func NewGosesher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Gosesher

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) Host

func (_m *Gosesher) Host() string

Host provides a mock function with given fields:

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

func (*Gosesher) Scheme

func (_m *Gosesher) Scheme() string

Scheme provides a mock function with given fields:

type Gosesher_Expecter

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

func (*Gosesher_Expecter) Host

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

Scheme is a helper method to define mock.On call

type Gosesher_Host_Call

type Gosesher_Host_Call struct {
	*mock.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

type Gosesher_OAuth2Begin_Call struct {
	*mock.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 (*Gosesher_OAuth2Begin_Call) Run

func (*Gosesher_OAuth2Begin_Call) RunAndReturn

type Gosesher_OAuth2Callback_Call

type Gosesher_OAuth2Callback_Call struct {
	*mock.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 (*Gosesher_OAuth2Callback_Call) Run

func (*Gosesher_OAuth2Callback_Call) RunAndReturn

type Gosesher_Scheme_Call

type Gosesher_Scheme_Call struct {
	*mock.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 (*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

type Provider added in v0.5.2

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider added in v0.5.2

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

NewProvider creates a new instance of Provider. 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 (*Provider) EXPECT added in v0.5.2

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) OAuth2Begin added in v0.5.2

func (_m *Provider) OAuth2Begin() http.HandlerFunc

OAuth2Begin provides a mock function with given fields:

func (*Provider) OAuth2Callback added in v0.5.2

func (_m *Provider) OAuth2Callback(handler gosesh.HandlerDone) http.HandlerFunc

OAuth2Callback provides a mock function with given fields: handler

type Provider_Expecter added in v0.5.2

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

func (*Provider_Expecter) OAuth2Begin added in v0.5.2

func (_e *Provider_Expecter) OAuth2Begin() *Provider_OAuth2Begin_Call

OAuth2Begin is a helper method to define mock.On call

func (*Provider_Expecter) OAuth2Callback added in v0.5.2

func (_e *Provider_Expecter) OAuth2Callback(handler interface{}) *Provider_OAuth2Callback_Call

OAuth2Callback is a helper method to define mock.On call

  • handler gosesh.HandlerDone

type Provider_OAuth2Begin_Call added in v0.5.2

type Provider_OAuth2Begin_Call struct {
	*mock.Call
}

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

func (*Provider_OAuth2Begin_Call) Return added in v0.5.2

func (*Provider_OAuth2Begin_Call) Run added in v0.5.2

func (*Provider_OAuth2Begin_Call) RunAndReturn added in v0.5.2

type Provider_OAuth2Callback_Call added in v0.5.2

type Provider_OAuth2Callback_Call struct {
	*mock.Call
}

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

func (*Provider_OAuth2Callback_Call) Return added in v0.5.2

func (*Provider_OAuth2Callback_Call) Run added in v0.5.2

func (*Provider_OAuth2Callback_Call) RunAndReturn added in v0.5.2

Jump to

Keyboard shortcuts

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