mocks

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

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

func (_m *Provider) ErrorURL() string

ErrorURL provides a mock function with given fields:

func (*Provider) Exchange

func (_m *Provider) Exchange(ctx context.Context, code string) (xoauth2.Token, error)

Exchange provides a mock function with given fields: ctx, code

func (*Provider) IsEnabled

func (_m *Provider) IsEnabled() bool

IsEnabled provides a mock function with given fields:

func (*Provider) Name

func (_m *Provider) Name() string

Name provides a mock function with given fields:

func (*Provider) RedirectURL

func (_m *Provider) RedirectURL() string

RedirectURL provides a mock function with given fields:

func (*Provider) State

func (_m *Provider) State() string

State provides a mock function with given fields:

func (*Provider) UserInfo

func (_m *Provider) UserInfo(accessToken string) (users.User, error)

UserInfo provides a mock function with given fields: accessToken

Jump to

Keyboard shortcuts

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