mocks

package
v0.0.0-...-bc12874 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthConfig

type OAuthConfig struct {
	mock.Mock
}

OAuthConfig is an autogenerated mock type for the OAuthConfig type

func NewOAuthConfig

func NewOAuthConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *OAuthConfig

NewOAuthConfig creates a new instance of OAuthConfig. 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 (*OAuthConfig) AuthCodeURL

func (_m *OAuthConfig) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string

AuthCodeURL provides a mock function with given fields: state, opts

func (*OAuthConfig) Exchange

func (_m *OAuthConfig) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)

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

Jump to

Keyboard shortcuts

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