mocks

package
v3.16.3-0...-b1d59dc Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mock_notification is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockAPI

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

MockAPI is a mock of API interface

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance

func (*MockAPI) Call

func (m *MockAPI) Call(arg0 url.Values) (*duo.Response, error)

Call mocks base method

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI

func (*MockAPIMockRecorder) Call

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

Call indicates an expected call of Call

type MockAutheliaCtx

type MockAutheliaCtx struct {
	// Logger hook
	Hook *test.Hook
	Ctx  *middlewares.AutheliaCtx
	Ctrl *gomock.Controller

	// Providers
	UserProviderMock    *MockUserProvider
	StorageProviderMock *MockStorageProvider
	NotifierMock        *MockNotifier

	UserSession *session.UserSession
}

MockAutheliaCtx a mock of AutheliaCtx

func NewMockAutheliaCtx

func NewMockAutheliaCtx(t *testing.T) *MockAutheliaCtx

NewMockAutheliaCtx create an instance of AutheliaCtx mock

func (*MockAutheliaCtx) Assert200KO

func (m *MockAutheliaCtx) Assert200KO(t *testing.T, message string)

Assert200KO assert an error response from the service.

func (*MockAutheliaCtx) Assert200OK

func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{})

Assert200OK assert a successful response from the service.

func (*MockAutheliaCtx) Close

func (m *MockAutheliaCtx) Close()

Close close the mock

type MockNotifier

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

MockNotifier is a mock of Notifier interface

func NewMockNotifier

func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier

NewMockNotifier creates a new mock instance

func (*MockNotifier) EXPECT

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

func (*MockNotifier) Send

func (m *MockNotifier) Send(arg0, arg1, arg2 string) error

Send mocks base method

type MockNotifierMockRecorder

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

MockNotifierMockRecorder is the mock recorder for MockNotifier

func (*MockNotifierMockRecorder) Send

func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2 interface{}) *gomock.Call

Send indicates an expected call of Send

type MockStorageProvider

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

MockStorageProvider is a mock of Provider interface

func NewMockStorageProvider

func NewMockStorageProvider(ctrl *gomock.Controller) *MockStorageProvider

NewMockStorageProvider creates a new mock instance

func (*MockStorageProvider) AppendAuthenticationLog

func (m *MockStorageProvider) AppendAuthenticationLog(attempt models.AuthenticationAttempt) error

AppendAuthenticationLog mocks base method

func (*MockStorageProvider) EXPECT

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

func (*MockStorageProvider) FindIdentityVerificationToken

func (m *MockStorageProvider) FindIdentityVerificationToken(token string) (bool, error)

FindIdentityVerificationToken mocks base method

func (*MockStorageProvider) LoadLatestAuthenticationLogs

func (m *MockStorageProvider) LoadLatestAuthenticationLogs(username string, fromDate time.Time) ([]models.AuthenticationAttempt, error)

LoadLatestAuthenticationLogs mocks base method

func (*MockStorageProvider) LoadPrefered2FAMethod

func (m *MockStorageProvider) LoadPrefered2FAMethod(username string) (string, error)

LoadPrefered2FAMethod mocks base method

func (*MockStorageProvider) LoadTOTPSecret

func (m *MockStorageProvider) LoadTOTPSecret(username string) (string, error)

LoadTOTPSecret mocks base method

func (*MockStorageProvider) LoadU2FDeviceHandle

func (m *MockStorageProvider) LoadU2FDeviceHandle(username string) ([]byte, error)

LoadU2FDeviceHandle mocks base method

func (*MockStorageProvider) RemoveIdentityVerificationToken

func (m *MockStorageProvider) RemoveIdentityVerificationToken(token string) error

RemoveIdentityVerificationToken mocks base method

func (*MockStorageProvider) SaveIdentityVerificationToken

func (m *MockStorageProvider) SaveIdentityVerificationToken(token string) error

SaveIdentityVerificationToken mocks base method

func (*MockStorageProvider) SavePrefered2FAMethod

func (m *MockStorageProvider) SavePrefered2FAMethod(username, method string) error

SavePrefered2FAMethod mocks base method

func (*MockStorageProvider) SaveTOTPSecret

func (m *MockStorageProvider) SaveTOTPSecret(username, secret string) error

SaveTOTPSecret mocks base method

func (*MockStorageProvider) SaveU2FDeviceHandle

func (m *MockStorageProvider) SaveU2FDeviceHandle(username string, device []byte) error

SaveU2FDeviceHandle mocks base method

type MockStorageProviderMockRecorder

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

MockStorageProviderMockRecorder is the mock recorder for MockStorageProvider

func (*MockStorageProviderMockRecorder) AppendAuthenticationLog

func (mr *MockStorageProviderMockRecorder) AppendAuthenticationLog(attempt interface{}) *gomock.Call

AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog

func (*MockStorageProviderMockRecorder) FindIdentityVerificationToken

func (mr *MockStorageProviderMockRecorder) FindIdentityVerificationToken(token interface{}) *gomock.Call

FindIdentityVerificationToken indicates an expected call of FindIdentityVerificationToken

func (*MockStorageProviderMockRecorder) LoadLatestAuthenticationLogs

func (mr *MockStorageProviderMockRecorder) LoadLatestAuthenticationLogs(username, fromDate interface{}) *gomock.Call

LoadLatestAuthenticationLogs indicates an expected call of LoadLatestAuthenticationLogs

func (*MockStorageProviderMockRecorder) LoadPrefered2FAMethod

func (mr *MockStorageProviderMockRecorder) LoadPrefered2FAMethod(username interface{}) *gomock.Call

LoadPrefered2FAMethod indicates an expected call of LoadPrefered2FAMethod

func (*MockStorageProviderMockRecorder) LoadTOTPSecret

func (mr *MockStorageProviderMockRecorder) LoadTOTPSecret(username interface{}) *gomock.Call

LoadTOTPSecret indicates an expected call of LoadTOTPSecret

func (*MockStorageProviderMockRecorder) LoadU2FDeviceHandle

func (mr *MockStorageProviderMockRecorder) LoadU2FDeviceHandle(username interface{}) *gomock.Call

LoadU2FDeviceHandle indicates an expected call of LoadU2FDeviceHandle

func (*MockStorageProviderMockRecorder) RemoveIdentityVerificationToken

func (mr *MockStorageProviderMockRecorder) RemoveIdentityVerificationToken(token interface{}) *gomock.Call

RemoveIdentityVerificationToken indicates an expected call of RemoveIdentityVerificationToken

func (*MockStorageProviderMockRecorder) SaveIdentityVerificationToken

func (mr *MockStorageProviderMockRecorder) SaveIdentityVerificationToken(token interface{}) *gomock.Call

SaveIdentityVerificationToken indicates an expected call of SaveIdentityVerificationToken

func (*MockStorageProviderMockRecorder) SavePrefered2FAMethod

func (mr *MockStorageProviderMockRecorder) SavePrefered2FAMethod(username, method interface{}) *gomock.Call

SavePrefered2FAMethod indicates an expected call of SavePrefered2FAMethod

func (*MockStorageProviderMockRecorder) SaveTOTPSecret

func (mr *MockStorageProviderMockRecorder) SaveTOTPSecret(username, secret interface{}) *gomock.Call

SaveTOTPSecret indicates an expected call of SaveTOTPSecret

func (*MockStorageProviderMockRecorder) SaveU2FDeviceHandle

func (mr *MockStorageProviderMockRecorder) SaveU2FDeviceHandle(username, device interface{}) *gomock.Call

SaveU2FDeviceHandle indicates an expected call of SaveU2FDeviceHandle

type MockUserProvider

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

MockUserProvider is a mock of UserProvider interface

func NewMockUserProvider

func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider

NewMockUserProvider creates a new mock instance

func (*MockUserProvider) CheckUserPassword

func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error)

CheckUserPassword mocks base method

func (*MockUserProvider) EXPECT

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

func (*MockUserProvider) GetDetails

func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails, error)

GetDetails mocks base method

func (*MockUserProvider) UpdatePassword

func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error

UpdatePassword mocks base method

type MockUserProviderMockRecorder

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

MockUserProviderMockRecorder is the mock recorder for MockUserProvider

func (*MockUserProviderMockRecorder) CheckUserPassword

func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 interface{}) *gomock.Call

CheckUserPassword indicates an expected call of CheckUserPassword

func (*MockUserProviderMockRecorder) GetDetails

func (mr *MockUserProviderMockRecorder) GetDetails(arg0 interface{}) *gomock.Call

GetDetails indicates an expected call of GetDetails

func (*MockUserProviderMockRecorder) UpdatePassword

func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 interface{}) *gomock.Call

UpdatePassword indicates an expected call of UpdatePassword

Jump to

Keyboard shortcuts

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