mocks

package
v2.1.31 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: oauth.go

Generated by this command:

mockgen -destination mocks/oauth_mock.go -source oauth.go -package mocks

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOauth

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

MockOauth is a mock of Oauth interface.

func NewMockOauth

func NewMockOauth(ctrl *gomock.Controller) *MockOauth

NewMockOauth creates a new mock instance.

func (*MockOauth) AuthCodeURL

func (m *MockOauth) AuthCodeURL() (string, error)

AuthCodeURL mocks base method.

func (*MockOauth) EXPECT

func (m *MockOauth) EXPECT() *MockOauthMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOauth) Exchange

func (m *MockOauth) Exchange(arg0 string) (*oauth2.Token, error)

Exchange mocks base method.

func (*MockOauth) GetUser

func (m *MockOauth) GetUser(arg0 *oauth2.Token) (*oauth.User, error)

GetUser mocks base method.

type MockOauthMockRecorder

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

MockOauthMockRecorder is the mock recorder for MockOauth.

func (*MockOauthMockRecorder) AuthCodeURL

func (mr *MockOauthMockRecorder) AuthCodeURL() *gomock.Call

AuthCodeURL indicates an expected call of AuthCodeURL.

func (*MockOauthMockRecorder) Exchange

func (mr *MockOauthMockRecorder) Exchange(arg0 any) *gomock.Call

Exchange indicates an expected call of Exchange.

func (*MockOauthMockRecorder) GetUser

func (mr *MockOauthMockRecorder) GetUser(arg0 any) *gomock.Call

GetUser indicates an expected call of GetUser.

Jump to

Keyboard shortcuts

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