Documentation ¶
Index ¶
- type MockAuthRepository
- type MockAuthRepository_CreateAuthUser_Call
- func (_c *MockAuthRepository_CreateAuthUser_Call) Return(_a0 int64, _a1 *model.AppError) *MockAuthRepository_CreateAuthUser_Call
- func (_c *MockAuthRepository_CreateAuthUser_Call) Run(run func(_a0 *model.Auth)) *MockAuthRepository_CreateAuthUser_Call
- func (_c *MockAuthRepository_CreateAuthUser_Call) RunAndReturn(run func(*model.Auth) (int64, *model.AppError)) *MockAuthRepository_CreateAuthUser_Call
- type MockAuthRepository_Expecter
- type MockAuthRepository_GetAuthUserByEmail_Call
- func (_c *MockAuthRepository_GetAuthUserByEmail_Call) Return(_a0 *model.Auth, _a1 *model.AppError) *MockAuthRepository_GetAuthUserByEmail_Call
- func (_c *MockAuthRepository_GetAuthUserByEmail_Call) Run(run func(email string)) *MockAuthRepository_GetAuthUserByEmail_Call
- func (_c *MockAuthRepository_GetAuthUserByEmail_Call) RunAndReturn(run func(string) (*model.Auth, *model.AppError)) *MockAuthRepository_GetAuthUserByEmail_Call
- type MockAuthService
- func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
- func (_m *MockAuthService) SignIn(email string, password string) (*model.Token, *model.AppError)
- func (_m *MockAuthService) SignUp(email string, password string) (*model.Token, *model.AppError)
- func (_m *MockAuthService) ValidateToken(token string) (string, *model.AppError)
- type MockAuthService_Expecter
- func (_e *MockAuthService_Expecter) SignIn(email interface{}, password interface{}) *MockAuthService_SignIn_Call
- func (_e *MockAuthService_Expecter) SignUp(email interface{}, password interface{}) *MockAuthService_SignUp_Call
- func (_e *MockAuthService_Expecter) ValidateToken(token interface{}) *MockAuthService_ValidateToken_Call
- type MockAuthService_SignIn_Call
- func (_c *MockAuthService_SignIn_Call) Return(_a0 *model.Token, _a1 *model.AppError) *MockAuthService_SignIn_Call
- func (_c *MockAuthService_SignIn_Call) Run(run func(email string, password string)) *MockAuthService_SignIn_Call
- func (_c *MockAuthService_SignIn_Call) RunAndReturn(run func(string, string) (*model.Token, *model.AppError)) *MockAuthService_SignIn_Call
- type MockAuthService_SignUp_Call
- func (_c *MockAuthService_SignUp_Call) Return(_a0 *model.Token, _a1 *model.AppError) *MockAuthService_SignUp_Call
- func (_c *MockAuthService_SignUp_Call) Run(run func(email string, password string)) *MockAuthService_SignUp_Call
- func (_c *MockAuthService_SignUp_Call) RunAndReturn(run func(string, string) (*model.Token, *model.AppError)) *MockAuthService_SignUp_Call
- type MockAuthService_ValidateToken_Call
- func (_c *MockAuthService_ValidateToken_Call) Return(_a0 string, _a1 *model.AppError) *MockAuthService_ValidateToken_Call
- func (_c *MockAuthService_ValidateToken_Call) Run(run func(token string)) *MockAuthService_ValidateToken_Call
- func (_c *MockAuthService_ValidateToken_Call) RunAndReturn(run func(string) (string, *model.AppError)) *MockAuthService_ValidateToken_Call
- type MockHashRepository
- type MockHashRepository_Expecter
- type MockHashRepository_HashString_Call
- func (_c *MockHashRepository_HashString_Call) Return(_a0 string, _a1 *model.AppError) *MockHashRepository_HashString_Call
- func (_c *MockHashRepository_HashString_Call) Run(run func(str string)) *MockHashRepository_HashString_Call
- func (_c *MockHashRepository_HashString_Call) RunAndReturn(run func(string) (string, *model.AppError)) *MockHashRepository_HashString_Call
- type MockHashRepository_MatchHashAndString_Call
- func (_c *MockHashRepository_MatchHashAndString_Call) Return(_a0 bool, _a1 *model.AppError) *MockHashRepository_MatchHashAndString_Call
- func (_c *MockHashRepository_MatchHashAndString_Call) Run(run func(hashedStr string, str string)) *MockHashRepository_MatchHashAndString_Call
- func (_c *MockHashRepository_MatchHashAndString_Call) RunAndReturn(run func(string, string) (bool, *model.AppError)) *MockHashRepository_MatchHashAndString_Call
- type MockTokenRepository
- type MockTokenRepository_CreateToken_Call
- func (_c *MockTokenRepository_CreateToken_Call) Return(_a0 *model.Token, _a1 *model.AppError) *MockTokenRepository_CreateToken_Call
- func (_c *MockTokenRepository_CreateToken_Call) Run(run func(authId int64)) *MockTokenRepository_CreateToken_Call
- func (_c *MockTokenRepository_CreateToken_Call) RunAndReturn(run func(int64) (*model.Token, *model.AppError)) *MockTokenRepository_CreateToken_Call
- type MockTokenRepository_Expecter
- type MockTokenRepository_ValidateToken_Call
- func (_c *MockTokenRepository_ValidateToken_Call) Return(_a0 int64, _a1 *model.AppError) *MockTokenRepository_ValidateToken_Call
- func (_c *MockTokenRepository_ValidateToken_Call) Run(run func(token string)) *MockTokenRepository_ValidateToken_Call
- func (_c *MockTokenRepository_ValidateToken_Call) RunAndReturn(run func(string) (int64, *model.AppError)) *MockTokenRepository_ValidateToken_Call
- type MockValidationRepository
- type MockValidationRepository_Expecter
- type MockValidationRepository_ValidateToken_Call
- func (_c *MockValidationRepository_ValidateToken_Call) Return(_a0 int64, _a1 *model.AppError) *MockValidationRepository_ValidateToken_Call
- func (_c *MockValidationRepository_ValidateToken_Call) Run(run func(token string)) *MockValidationRepository_ValidateToken_Call
- func (_c *MockValidationRepository_ValidateToken_Call) RunAndReturn(run func(string) (int64, *model.AppError)) *MockValidationRepository_ValidateToken_Call
- type MockValidationService
- type MockValidationService_Expecter
- type MockValidationService_ValidateToken_Call
- func (_c *MockValidationService_ValidateToken_Call) Return(_a0 string, _a1 *model.AppError) *MockValidationService_ValidateToken_Call
- func (_c *MockValidationService_ValidateToken_Call) Run(run func(token string)) *MockValidationService_ValidateToken_Call
- func (_c *MockValidationService_ValidateToken_Call) RunAndReturn(run func(string) (string, *model.AppError)) *MockValidationService_ValidateToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthRepository ¶
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 ¶
CreateAuthUser provides a mock function with given fields: _a0
func (*MockAuthRepository) EXPECT ¶
func (_m *MockAuthRepository) EXPECT() *MockAuthRepository_Expecter
func (*MockAuthRepository) GetAuthUserByEmail ¶
GetAuthUserByEmail provides a mock function with given fields: email
type MockAuthRepository_CreateAuthUser_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 (_c *MockAuthRepository_CreateAuthUser_Call) Return(_a0 int64, _a1 *model.AppError) *MockAuthRepository_CreateAuthUser_Call
func (*MockAuthRepository_CreateAuthUser_Call) Run ¶
func (_c *MockAuthRepository_CreateAuthUser_Call) Run(run func(_a0 *model.Auth)) *MockAuthRepository_CreateAuthUser_Call
func (*MockAuthRepository_CreateAuthUser_Call) RunAndReturn ¶
func (_c *MockAuthRepository_CreateAuthUser_Call) RunAndReturn(run func(*model.Auth) (int64, *model.AppError)) *MockAuthRepository_CreateAuthUser_Call
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 ¶
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 (_c *MockAuthRepository_GetAuthUserByEmail_Call) Return(_a0 *model.Auth, _a1 *model.AppError) *MockAuthRepository_GetAuthUserByEmail_Call
func (*MockAuthRepository_GetAuthUserByEmail_Call) Run ¶
func (_c *MockAuthRepository_GetAuthUserByEmail_Call) Run(run func(email string)) *MockAuthRepository_GetAuthUserByEmail_Call
func (*MockAuthRepository_GetAuthUserByEmail_Call) RunAndReturn ¶
func (_c *MockAuthRepository_GetAuthUserByEmail_Call) RunAndReturn(run func(string) (*model.Auth, *model.AppError)) *MockAuthRepository_GetAuthUserByEmail_Call
type MockAuthService ¶
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 (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
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 ¶
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 (_c *MockAuthService_SignIn_Call) Return(_a0 *model.Token, _a1 *model.AppError) *MockAuthService_SignIn_Call
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 ¶
func (_c *MockAuthService_SignIn_Call) RunAndReturn(run func(string, string) (*model.Token, *model.AppError)) *MockAuthService_SignIn_Call
type MockAuthService_SignUp_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 (_c *MockAuthService_SignUp_Call) Return(_a0 *model.Token, _a1 *model.AppError) *MockAuthService_SignUp_Call
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 ¶
func (_c *MockAuthService_SignUp_Call) RunAndReturn(run func(string, string) (*model.Token, *model.AppError)) *MockAuthService_SignUp_Call
type MockAuthService_ValidateToken_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 (_c *MockAuthService_ValidateToken_Call) Return(_a0 string, _a1 *model.AppError) *MockAuthService_ValidateToken_Call
func (*MockAuthService_ValidateToken_Call) Run ¶
func (_c *MockAuthService_ValidateToken_Call) Run(run func(token string)) *MockAuthService_ValidateToken_Call
func (*MockAuthService_ValidateToken_Call) RunAndReturn ¶
func (_c *MockAuthService_ValidateToken_Call) RunAndReturn(run func(string) (string, *model.AppError)) *MockAuthService_ValidateToken_Call
type MockHashRepository ¶
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 (_m *MockHashRepository) EXPECT() *MockHashRepository_Expecter
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 ¶
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 (_c *MockHashRepository_HashString_Call) Return(_a0 string, _a1 *model.AppError) *MockHashRepository_HashString_Call
func (*MockHashRepository_HashString_Call) Run ¶
func (_c *MockHashRepository_HashString_Call) Run(run func(str string)) *MockHashRepository_HashString_Call
func (*MockHashRepository_HashString_Call) RunAndReturn ¶
func (_c *MockHashRepository_HashString_Call) RunAndReturn(run func(string) (string, *model.AppError)) *MockHashRepository_HashString_Call
type MockHashRepository_MatchHashAndString_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 (_c *MockHashRepository_MatchHashAndString_Call) Return(_a0 bool, _a1 *model.AppError) *MockHashRepository_MatchHashAndString_Call
func (*MockHashRepository_MatchHashAndString_Call) Run ¶
func (_c *MockHashRepository_MatchHashAndString_Call) Run(run func(hashedStr string, str string)) *MockHashRepository_MatchHashAndString_Call
func (*MockHashRepository_MatchHashAndString_Call) RunAndReturn ¶
func (_c *MockHashRepository_MatchHashAndString_Call) RunAndReturn(run func(string, string) (bool, *model.AppError)) *MockHashRepository_MatchHashAndString_Call
type MockTokenRepository ¶
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 ¶
CreateToken provides a mock function with given fields: authId
func (*MockTokenRepository) EXPECT ¶
func (_m *MockTokenRepository) EXPECT() *MockTokenRepository_Expecter
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 ¶
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 (_c *MockTokenRepository_CreateToken_Call) Return(_a0 *model.Token, _a1 *model.AppError) *MockTokenRepository_CreateToken_Call
func (*MockTokenRepository_CreateToken_Call) Run ¶
func (_c *MockTokenRepository_CreateToken_Call) Run(run func(authId int64)) *MockTokenRepository_CreateToken_Call
func (*MockTokenRepository_CreateToken_Call) RunAndReturn ¶
func (_c *MockTokenRepository_CreateToken_Call) RunAndReturn(run func(int64) (*model.Token, *model.AppError)) *MockTokenRepository_CreateToken_Call
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 ¶
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 (_c *MockTokenRepository_ValidateToken_Call) Return(_a0 int64, _a1 *model.AppError) *MockTokenRepository_ValidateToken_Call
func (*MockTokenRepository_ValidateToken_Call) Run ¶
func (_c *MockTokenRepository_ValidateToken_Call) Run(run func(token string)) *MockTokenRepository_ValidateToken_Call
func (*MockTokenRepository_ValidateToken_Call) RunAndReturn ¶
func (_c *MockTokenRepository_ValidateToken_Call) RunAndReturn(run func(string) (int64, *model.AppError)) *MockTokenRepository_ValidateToken_Call
type MockValidationRepository ¶
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 (_m *MockValidationRepository) EXPECT() *MockValidationRepository_Expecter
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 ¶
func (_e *MockValidationRepository_Expecter) ValidateToken(token interface{}) *MockValidationRepository_ValidateToken_Call
ValidateToken is a helper method to define mock.On call
- token string
type MockValidationRepository_ValidateToken_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 (_c *MockValidationRepository_ValidateToken_Call) Return(_a0 int64, _a1 *model.AppError) *MockValidationRepository_ValidateToken_Call
func (*MockValidationRepository_ValidateToken_Call) Run ¶
func (_c *MockValidationRepository_ValidateToken_Call) Run(run func(token string)) *MockValidationRepository_ValidateToken_Call
func (*MockValidationRepository_ValidateToken_Call) RunAndReturn ¶
func (_c *MockValidationRepository_ValidateToken_Call) RunAndReturn(run func(string) (int64, *model.AppError)) *MockValidationRepository_ValidateToken_Call
type MockValidationService ¶
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 (_m *MockValidationService) EXPECT() *MockValidationService_Expecter
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 ¶
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 (_c *MockValidationService_ValidateToken_Call) Return(_a0 string, _a1 *model.AppError) *MockValidationService_ValidateToken_Call
func (*MockValidationService_ValidateToken_Call) Run ¶
func (_c *MockValidationService_ValidateToken_Call) Run(run func(token string)) *MockValidationService_ValidateToken_Call
func (*MockValidationService_ValidateToken_Call) RunAndReturn ¶
func (_c *MockValidationService_ValidateToken_Call) RunAndReturn(run func(string) (string, *model.AppError)) *MockValidationService_ValidateToken_Call