Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Hand crafted mock of common.User
Index ¶
- type MockOAuthAdapter
- type MockOAuthAdapterMockRecorder
- type MockProvider
- func (m *MockProvider) CompleteAuth(data objx.Map) (*common.Credentials, error)
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) GetBeginAuthURL(arg0 *common.State, arg1 objx.Map) (string, error)
- func (m *MockProvider) GetUser(arg0 *common.Credentials) (common.User, error)
- type MockProviderMockRecorder
- type MockUser
- func (m *MockUser) AuthCode() string
- func (m *MockUser) AvatarURL() string
- func (m *MockUser) Data() objx.Map
- func (m *MockUser) Email() string
- func (m *MockUser) IDForProvider(provider string) string
- func (m *MockUser) Name() string
- func (m *MockUser) Nickname() string
- func (m *MockUser) ProviderCredentials() map[string]*common.Credentials
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 ¶
func (m *MockOAuthAdapter) EXPECT() *MockOAuthAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) GetBeginAuthURL ¶
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) IDForProvider ¶
func (*MockUser) ProviderCredentials ¶
func (m *MockUser) ProviderCredentials() map[string]*common.Credentials