mock_providers

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 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 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

Jump to

Keyboard shortcuts

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