Documentation
¶
Overview ¶
Package mock_contract is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAccount ¶
type MockIAccount struct {
// contains filtered or unexported fields
}
MockIAccount is a mock of IAccount interface.
func NewMockIAccount ¶
func NewMockIAccount(ctrl *gomock.Controller) *MockIAccount
NewMockIAccount creates a new mock instance.
func (*MockIAccount) EXPECT ¶
func (m *MockIAccount) EXPECT() *MockIAccountMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIAccount) GetLogin ¶
func (m *MockIAccount) GetLogin() string
GetLogin mocks base method.
func (*MockIAccount) SetPasswordHash ¶
func (m *MockIAccount) SetPasswordHash(arg0 string)
SetPasswordHash mocks base method.
type MockIAccountMockRecorder ¶
type MockIAccountMockRecorder struct {
// contains filtered or unexported fields
}
MockIAccountMockRecorder is the mock recorder for MockIAccount.
func (*MockIAccountMockRecorder) GetID ¶
func (mr *MockIAccountMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockIAccountMockRecorder) GetLogin ¶
func (mr *MockIAccountMockRecorder) GetLogin() *gomock.Call
GetLogin indicates an expected call of GetLogin.
func (*MockIAccountMockRecorder) SetPasswordHash ¶
func (mr *MockIAccountMockRecorder) SetPasswordHash(arg0 interface{}) *gomock.Call
SetPasswordHash indicates an expected call of SetPasswordHash.
type MockIAuthRepository ¶
type MockIAuthRepository struct {
// contains filtered or unexported fields
}
MockIAuthRepository is a mock of IAuthRepository interface.
func NewMockIAuthRepository ¶
func NewMockIAuthRepository(ctrl *gomock.Controller) *MockIAuthRepository
NewMockIAuthRepository creates a new mock instance.
func (*MockIAuthRepository) Create ¶
func (m *MockIAuthRepository) Create(ctx context.Context, login, password string) (contract.IAccount, error)
Create mocks base method.
func (*MockIAuthRepository) EXPECT ¶
func (m *MockIAuthRepository) EXPECT() *MockIAuthRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIAuthRepositoryMockRecorder ¶
type MockIAuthRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIAuthRepositoryMockRecorder is the mock recorder for MockIAuthRepository.
func (*MockIAuthRepositoryMockRecorder) Create ¶
func (mr *MockIAuthRepositoryMockRecorder) Create(ctx, login, password interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIAuthRepositoryMockRecorder) Find ¶
func (mr *MockIAuthRepositoryMockRecorder) Find(ctx, login, password interface{}) *gomock.Call
Find indicates an expected call of Find.
type MockIAuthService ¶
type MockIAuthService struct {
// contains filtered or unexported fields
}
MockIAuthService is a mock of IAuthService interface.
func NewMockIAuthService ¶
func NewMockIAuthService(ctrl *gomock.Controller) *MockIAuthService
NewMockIAuthService creates a new mock instance.
func (*MockIAuthService) EXPECT ¶
func (m *MockIAuthService) EXPECT() *MockIAuthServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIAuthServiceMockRecorder ¶
type MockIAuthServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIAuthServiceMockRecorder is the mock recorder for MockIAuthService.
func (*MockIAuthServiceMockRecorder) SignIn ¶
func (mr *MockIAuthServiceMockRecorder) SignIn(ctx, login, password interface{}) *gomock.Call
SignIn indicates an expected call of SignIn.
func (*MockIAuthServiceMockRecorder) SignUp ¶
func (mr *MockIAuthServiceMockRecorder) SignUp(ctx, login, password interface{}) *gomock.Call
SignUp indicates an expected call of SignUp.
type MockIPassHasher ¶
type MockIPassHasher struct {
// contains filtered or unexported fields
}
MockIPassHasher is a mock of IPassHasher interface.
func NewMockIPassHasher ¶
func NewMockIPassHasher(ctrl *gomock.Controller) *MockIPassHasher
NewMockIPassHasher creates a new mock instance.
func (*MockIPassHasher) ComparePassword ¶
func (m *MockIPassHasher) ComparePassword(hashedPwd string, plainPwd []byte) (bool, error)
ComparePassword mocks base method.
func (*MockIPassHasher) EXPECT ¶
func (m *MockIPassHasher) EXPECT() *MockIPassHasherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPassHasher) HashPassword ¶
func (m *MockIPassHasher) HashPassword(password []byte) (string, error)
HashPassword mocks base method.
type MockIPassHasherMockRecorder ¶
type MockIPassHasherMockRecorder struct {
// contains filtered or unexported fields
}
MockIPassHasherMockRecorder is the mock recorder for MockIPassHasher.
func (*MockIPassHasherMockRecorder) ComparePassword ¶
func (mr *MockIPassHasherMockRecorder) ComparePassword(hashedPwd, plainPwd interface{}) *gomock.Call
ComparePassword indicates an expected call of ComparePassword.
func (*MockIPassHasherMockRecorder) HashPassword ¶
func (mr *MockIPassHasherMockRecorder) HashPassword(password interface{}) *gomock.Call
HashPassword indicates an expected call of HashPassword.
type MockITokenProvider ¶
type MockITokenProvider struct {
// contains filtered or unexported fields
}
MockITokenProvider is a mock of ITokenProvider interface.
func NewMockITokenProvider ¶
func NewMockITokenProvider(ctrl *gomock.Controller) *MockITokenProvider
NewMockITokenProvider creates a new mock instance.
func (*MockITokenProvider) EXPECT ¶
func (m *MockITokenProvider) EXPECT() *MockITokenProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockITokenProvider) GenerateToken ¶
GenerateToken mocks base method.
func (*MockITokenProvider) ValidateToken ¶
ValidateToken mocks base method.
type MockITokenProviderMockRecorder ¶
type MockITokenProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockITokenProviderMockRecorder is the mock recorder for MockITokenProvider.
func (*MockITokenProviderMockRecorder) GenerateToken ¶
func (mr *MockITokenProviderMockRecorder) GenerateToken(ctx, userID interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockITokenProviderMockRecorder) ValidateToken ¶
func (mr *MockITokenProviderMockRecorder) ValidateToken(ctx, token interface{}) *gomock.Call
ValidateToken indicates an expected call of ValidateToken.