auth

package
v0.0.0-...-1be9830 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthRepository

type MockAuthRepository struct {
	mock.Mock
}

MockAuthRepository is an autogenerated mock type for the AuthRepository type

func NewMockAuthRepository

func NewMockAuthRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthRepository

NewMockAuthRepository creates a new instance of MockAuthRepository. 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 (*MockAuthRepository) CreateAuthUser

func (_m *MockAuthRepository) CreateAuthUser(_a0 *model.Auth) (int64, *model.AppError)

CreateAuthUser provides a mock function with given fields: _a0

func (*MockAuthRepository) EXPECT

func (*MockAuthRepository) GetAuthUserByEmail

func (_m *MockAuthRepository) GetAuthUserByEmail(email string) (*model.Auth, *model.AppError)

GetAuthUserByEmail provides a mock function with given fields: email

type MockAuthRepository_CreateAuthUser_Call

type MockAuthRepository_CreateAuthUser_Call struct {
	*mock.Call
}

MockAuthRepository_CreateAuthUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthUser'

func (*MockAuthRepository_CreateAuthUser_Call) Return

func (*MockAuthRepository_CreateAuthUser_Call) Run

func (*MockAuthRepository_CreateAuthUser_Call) RunAndReturn

type MockAuthRepository_Expecter

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

func (*MockAuthRepository_Expecter) CreateAuthUser

func (_e *MockAuthRepository_Expecter) CreateAuthUser(_a0 interface{}) *MockAuthRepository_CreateAuthUser_Call

CreateAuthUser is a helper method to define mock.On call

  • _a0 *model.Auth

func (*MockAuthRepository_Expecter) GetAuthUserByEmail

func (_e *MockAuthRepository_Expecter) GetAuthUserByEmail(email interface{}) *MockAuthRepository_GetAuthUserByEmail_Call

GetAuthUserByEmail is a helper method to define mock.On call

  • email string

type MockAuthRepository_GetAuthUserByEmail_Call

type MockAuthRepository_GetAuthUserByEmail_Call struct {
	*mock.Call
}

MockAuthRepository_GetAuthUserByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuthUserByEmail'

func (*MockAuthRepository_GetAuthUserByEmail_Call) Return

func (*MockAuthRepository_GetAuthUserByEmail_Call) Run

func (*MockAuthRepository_GetAuthUserByEmail_Call) RunAndReturn

type MockAuthService

type MockAuthService struct {
	mock.Mock
}

MockAuthService is an autogenerated mock type for the AuthService type

func NewMockAuthService

func NewMockAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthService

NewMockAuthService creates a new instance of MockAuthService. 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 (*MockAuthService) EXPECT

func (*MockAuthService) SignIn

func (_m *MockAuthService) SignIn(email string, password string) (*model.Token, *model.AppError)

SignIn provides a mock function with given fields: email, password

func (*MockAuthService) SignUp

func (_m *MockAuthService) SignUp(email string, password string) (*model.Token, *model.AppError)

SignUp provides a mock function with given fields: email, password

func (*MockAuthService) ValidateToken

func (_m *MockAuthService) ValidateToken(token string) (string, *model.AppError)

ValidateToken provides a mock function with given fields: token

type MockAuthService_Expecter

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

func (*MockAuthService_Expecter) SignIn

func (_e *MockAuthService_Expecter) SignIn(email interface{}, password interface{}) *MockAuthService_SignIn_Call

SignIn is a helper method to define mock.On call

  • email string
  • password string

func (*MockAuthService_Expecter) SignUp

func (_e *MockAuthService_Expecter) SignUp(email interface{}, password interface{}) *MockAuthService_SignUp_Call

SignUp is a helper method to define mock.On call

  • email string
  • password string

func (*MockAuthService_Expecter) ValidateToken

func (_e *MockAuthService_Expecter) ValidateToken(token interface{}) *MockAuthService_ValidateToken_Call

ValidateToken is a helper method to define mock.On call

  • token string

type MockAuthService_SignIn_Call

type MockAuthService_SignIn_Call struct {
	*mock.Call
}

MockAuthService_SignIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignIn'

func (*MockAuthService_SignIn_Call) Return

func (*MockAuthService_SignIn_Call) Run

func (_c *MockAuthService_SignIn_Call) Run(run func(email string, password string)) *MockAuthService_SignIn_Call

func (*MockAuthService_SignIn_Call) RunAndReturn

type MockAuthService_SignUp_Call

type MockAuthService_SignUp_Call struct {
	*mock.Call
}

MockAuthService_SignUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignUp'

func (*MockAuthService_SignUp_Call) Return

func (*MockAuthService_SignUp_Call) Run

func (_c *MockAuthService_SignUp_Call) Run(run func(email string, password string)) *MockAuthService_SignUp_Call

func (*MockAuthService_SignUp_Call) RunAndReturn

type MockAuthService_ValidateToken_Call

type MockAuthService_ValidateToken_Call struct {
	*mock.Call
}

MockAuthService_ValidateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateToken'

func (*MockAuthService_ValidateToken_Call) Return

func (*MockAuthService_ValidateToken_Call) Run

func (*MockAuthService_ValidateToken_Call) RunAndReturn

type MockHashRepository

type MockHashRepository struct {
	mock.Mock
}

MockHashRepository is an autogenerated mock type for the HashRepository type

func NewMockHashRepository

func NewMockHashRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHashRepository

NewMockHashRepository creates a new instance of MockHashRepository. 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 (*MockHashRepository) EXPECT

func (*MockHashRepository) HashString

func (_m *MockHashRepository) HashString(str string) (string, *model.AppError)

HashString provides a mock function with given fields: str

func (*MockHashRepository) MatchHashAndString

func (_m *MockHashRepository) MatchHashAndString(hashedStr string, str string) (bool, *model.AppError)

MatchHashAndString provides a mock function with given fields: hashedStr, str

type MockHashRepository_Expecter

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

func (*MockHashRepository_Expecter) HashString

func (_e *MockHashRepository_Expecter) HashString(str interface{}) *MockHashRepository_HashString_Call

HashString is a helper method to define mock.On call

  • str string

func (*MockHashRepository_Expecter) MatchHashAndString

func (_e *MockHashRepository_Expecter) MatchHashAndString(hashedStr interface{}, str interface{}) *MockHashRepository_MatchHashAndString_Call

MatchHashAndString is a helper method to define mock.On call

  • hashedStr string
  • str string

type MockHashRepository_HashString_Call

type MockHashRepository_HashString_Call struct {
	*mock.Call
}

MockHashRepository_HashString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashString'

func (*MockHashRepository_HashString_Call) Return

func (*MockHashRepository_HashString_Call) Run

func (*MockHashRepository_HashString_Call) RunAndReturn

type MockHashRepository_MatchHashAndString_Call

type MockHashRepository_MatchHashAndString_Call struct {
	*mock.Call
}

MockHashRepository_MatchHashAndString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchHashAndString'

func (*MockHashRepository_MatchHashAndString_Call) Return

func (*MockHashRepository_MatchHashAndString_Call) Run

func (*MockHashRepository_MatchHashAndString_Call) RunAndReturn

type MockTokenRepository

type MockTokenRepository struct {
	mock.Mock
}

MockTokenRepository is an autogenerated mock type for the TokenRepository type

func NewMockTokenRepository

func NewMockTokenRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenRepository

NewMockTokenRepository creates a new instance of MockTokenRepository. 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 (*MockTokenRepository) CreateToken

func (_m *MockTokenRepository) CreateToken(authId int64) (*model.Token, *model.AppError)

CreateToken provides a mock function with given fields: authId

func (*MockTokenRepository) EXPECT

func (*MockTokenRepository) ValidateToken

func (_m *MockTokenRepository) ValidateToken(token string) (int64, *model.AppError)

ValidateToken provides a mock function with given fields: token

type MockTokenRepository_CreateToken_Call

type MockTokenRepository_CreateToken_Call struct {
	*mock.Call
}

MockTokenRepository_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'

func (*MockTokenRepository_CreateToken_Call) Return

func (*MockTokenRepository_CreateToken_Call) Run

func (*MockTokenRepository_CreateToken_Call) RunAndReturn

type MockTokenRepository_Expecter

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

func (*MockTokenRepository_Expecter) CreateToken

func (_e *MockTokenRepository_Expecter) CreateToken(authId interface{}) *MockTokenRepository_CreateToken_Call

CreateToken is a helper method to define mock.On call

  • authId int64

func (*MockTokenRepository_Expecter) ValidateToken

func (_e *MockTokenRepository_Expecter) ValidateToken(token interface{}) *MockTokenRepository_ValidateToken_Call

ValidateToken is a helper method to define mock.On call

  • token string

type MockTokenRepository_ValidateToken_Call

type MockTokenRepository_ValidateToken_Call struct {
	*mock.Call
}

MockTokenRepository_ValidateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateToken'

func (*MockTokenRepository_ValidateToken_Call) Return

func (*MockTokenRepository_ValidateToken_Call) Run

func (*MockTokenRepository_ValidateToken_Call) RunAndReturn

type MockValidationRepository

type MockValidationRepository struct {
	mock.Mock
}

MockValidationRepository is an autogenerated mock type for the ValidationRepository type

func NewMockValidationRepository

func NewMockValidationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockValidationRepository

NewMockValidationRepository creates a new instance of MockValidationRepository. 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 (*MockValidationRepository) EXPECT

func (*MockValidationRepository) ValidateToken

func (_m *MockValidationRepository) ValidateToken(token string) (int64, *model.AppError)

ValidateToken provides a mock function with given fields: token

type MockValidationRepository_Expecter

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

func (*MockValidationRepository_Expecter) ValidateToken

ValidateToken is a helper method to define mock.On call

  • token string

type MockValidationRepository_ValidateToken_Call

type MockValidationRepository_ValidateToken_Call struct {
	*mock.Call
}

MockValidationRepository_ValidateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateToken'

func (*MockValidationRepository_ValidateToken_Call) Return

func (*MockValidationRepository_ValidateToken_Call) Run

func (*MockValidationRepository_ValidateToken_Call) RunAndReturn

type MockValidationService

type MockValidationService struct {
	mock.Mock
}

MockValidationService is an autogenerated mock type for the ValidationService type

func NewMockValidationService

func NewMockValidationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockValidationService

NewMockValidationService creates a new instance of MockValidationService. 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 (*MockValidationService) EXPECT

func (*MockValidationService) ValidateToken

func (_m *MockValidationService) ValidateToken(token string) (string, *model.AppError)

ValidateToken provides a mock function with given fields: token

type MockValidationService_Expecter

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

func (*MockValidationService_Expecter) ValidateToken

func (_e *MockValidationService_Expecter) ValidateToken(token interface{}) *MockValidationService_ValidateToken_Call

ValidateToken is a helper method to define mock.On call

  • token string

type MockValidationService_ValidateToken_Call

type MockValidationService_ValidateToken_Call struct {
	*mock.Call
}

MockValidationService_ValidateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateToken'

func (*MockValidationService_ValidateToken_Call) Return

func (*MockValidationService_ValidateToken_Call) Run

func (*MockValidationService_ValidateToken_Call) RunAndReturn

Jump to

Keyboard shortcuts

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