mocks

package
v0.0.0-...-5503e3d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Hand crafted mock of common.User

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOAuthAdapter

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

MockOAuthAdapter is a mock of OAuthAdapter interface.

func NewMockOAuthAdapter

func NewMockOAuthAdapter(ctrl *gomock.Controller) *MockOAuthAdapter

NewMockOAuthAdapter creates a new mock instance.

func (*MockOAuthAdapter) EXPECT

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

func (*MockOAuthAdapter) Provider

func (m *MockOAuthAdapter) Provider(arg0 string) (auth.Provider, error)

Provider mocks base method.

type MockOAuthAdapterMockRecorder

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

MockOAuthAdapterMockRecorder is the mock recorder for MockOAuthAdapter.

func (*MockOAuthAdapterMockRecorder) Provider

func (mr *MockOAuthAdapterMockRecorder) Provider(arg0 interface{}) *gomock.Call

Provider indicates an expected call of Provider.

type MockProvider

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

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) CompleteAuth

func (m *MockProvider) CompleteAuth(data objx.Map) (*common.Credentials, error)

CompleteAuth mocks base method.

func (*MockProvider) EXPECT

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

func (*MockProvider) GetBeginAuthURL

func (m *MockProvider) GetBeginAuthURL(arg0 *common.State, arg1 objx.Map) (string, error)

GetBeginAuthURL mocks base method.

func (*MockProvider) GetUser

func (m *MockProvider) GetUser(arg0 *common.Credentials) (common.User, error)

GetUser mocks base method.

type MockProviderMockRecorder

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

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) CompleteAuth

func (mr *MockProviderMockRecorder) CompleteAuth(data interface{}) *gomock.Call

CompleteAuth indicates an expected call of CompleteAuth.

func (*MockProviderMockRecorder) GetBeginAuthURL

func (mr *MockProviderMockRecorder) GetBeginAuthURL(arg0, arg1 interface{}) *gomock.Call

GetBeginAuthURL indicates an expected call of GetBeginAuthURL.

func (*MockProviderMockRecorder) GetUser

func (mr *MockProviderMockRecorder) GetUser(arg0 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

type MockUser

type MockUser struct {
	Username string
}

func (*MockUser) AuthCode

func (m *MockUser) AuthCode() string

func (*MockUser) AvatarURL

func (m *MockUser) AvatarURL() string

func (*MockUser) Data

func (m *MockUser) Data() objx.Map

func (*MockUser) Email

func (m *MockUser) Email() string

func (*MockUser) IDForProvider

func (m *MockUser) IDForProvider(provider string) string

func (*MockUser) Name

func (m *MockUser) Name() string

func (*MockUser) Nickname

func (m *MockUser) Nickname() string

func (*MockUser) ProviderCredentials

func (m *MockUser) ProviderCredentials() map[string]*common.Credentials

Jump to

Keyboard shortcuts

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