Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockIAuthorizationRepo
- type MockIAuthorizationRepoMockRecorder
- type MockIAuthorizationService
- func (m *MockIAuthorizationService) EXPECT() *MockIAuthorizationServiceMockRecorder
- func (m *MockIAuthorizationService) LoginUser(login, password string) (string, error)
- func (m *MockIAuthorizationService) ParseToken(token string) (int, error)
- func (m *MockIAuthorizationService) RegisterUser(login, password string) (string, error)
- type MockIAuthorizationServiceMockRecorder
- type MockIBankRepo
- type MockIBankRepoMockRecorder
- type MockIBankService
- type MockIBankServiceMockRecorder
- type MockIMaker
- type MockIMakerMockRecorder
- type MockIPairsRepo
- type MockIPairsRepoMockRecorder
- type MockIPairsService
- type MockIPairsServiceMockRecorder
- type MockIPasswordHash
- type MockIPasswordHashMockRecorder
- type MockIRepo
- func (m *MockIRepo) CloseConnection() error
- func (m *MockIRepo) CreateUser(login, passwordHash string) (int, error)
- func (m *MockIRepo) EXPECT() *MockIRepoMockRecorder
- func (m *MockIRepo) GetAllCards(ctx context.Context, userID int) ([]entity.BankDAO, error)
- func (m *MockIRepo) GetAllNotes(ctx context.Context, userID int) ([]entity.TextDAO, error)
- func (m *MockIRepo) GetAllPairs(ctx context.Context, userID int) ([]entity.PairDAO, error)
- func (m *MockIRepo) GetUser(login string) (entity.UserDAO, error)
- type MockIRepoMockRecorder
- func (mr *MockIRepoMockRecorder) CloseConnection() *gomock.Call
- func (mr *MockIRepoMockRecorder) CreateUser(login, passwordHash interface{}) *gomock.Call
- func (mr *MockIRepoMockRecorder) GetAllCards(ctx, userID interface{}) *gomock.Call
- func (mr *MockIRepoMockRecorder) GetAllNotes(ctx, userID interface{}) *gomock.Call
- func (mr *MockIRepoMockRecorder) GetAllPairs(ctx, userID interface{}) *gomock.Call
- func (mr *MockIRepoMockRecorder) GetUser(login interface{}) *gomock.Call
- type MockIService
- func (m *MockIService) EXPECT() *MockIServiceMockRecorder
- func (m *MockIService) LoginUser(login, password string) (string, error)
- func (m *MockIService) ParseToken(token string) (int, error)
- func (m *MockIService) RegisterUser(login, password string) (string, error)
- func (m *MockIService) ViewAllCards(userID int) ([]entity.BankDTO, error)
- func (m *MockIService) ViewAllNotes(userID int) ([]entity.TextDTO, error)
- func (m *MockIService) ViewAllPairs(userID int) ([]entity.PairDTO, error)
- type MockIServiceMockRecorder
- func (mr *MockIServiceMockRecorder) LoginUser(login, password interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) ParseToken(token interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) RegisterUser(login, password interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) ViewAllCards(userID interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) ViewAllNotes(userID interface{}) *gomock.Call
- func (mr *MockIServiceMockRecorder) ViewAllPairs(userID interface{}) *gomock.Call
- type MockITextRepo
- type MockITextRepoMockRecorder
- type MockITextService
- type MockITextServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAuthorizationRepo ¶
type MockIAuthorizationRepo struct {
// contains filtered or unexported fields
}
MockIAuthorizationRepo is a mock of IAuthorizationRepo interface.
func NewMockIAuthorizationRepo ¶
func NewMockIAuthorizationRepo(ctrl *gomock.Controller) *MockIAuthorizationRepo
NewMockIAuthorizationRepo creates a new mock instance.
func (*MockIAuthorizationRepo) CreateUser ¶
func (m *MockIAuthorizationRepo) CreateUser(login, passwordHash string) (int, error)
CreateUser mocks base method.
func (*MockIAuthorizationRepo) EXPECT ¶
func (m *MockIAuthorizationRepo) EXPECT() *MockIAuthorizationRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIAuthorizationRepoMockRecorder ¶
type MockIAuthorizationRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockIAuthorizationRepoMockRecorder is the mock recorder for MockIAuthorizationRepo.
func (*MockIAuthorizationRepoMockRecorder) CreateUser ¶
func (mr *MockIAuthorizationRepoMockRecorder) CreateUser(login, passwordHash interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockIAuthorizationRepoMockRecorder) GetUser ¶
func (mr *MockIAuthorizationRepoMockRecorder) GetUser(login interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
type MockIAuthorizationService ¶
type MockIAuthorizationService struct {
// contains filtered or unexported fields
}
MockIAuthorizationService is a mock of IAuthorizationService interface.
func NewMockIAuthorizationService ¶
func NewMockIAuthorizationService(ctrl *gomock.Controller) *MockIAuthorizationService
NewMockIAuthorizationService creates a new mock instance.
func (*MockIAuthorizationService) EXPECT ¶
func (m *MockIAuthorizationService) EXPECT() *MockIAuthorizationServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIAuthorizationService) LoginUser ¶
func (m *MockIAuthorizationService) LoginUser(login, password string) (string, error)
LoginUser mocks base method.
func (*MockIAuthorizationService) ParseToken ¶
func (m *MockIAuthorizationService) ParseToken(token string) (int, error)
ParseToken mocks base method.
func (*MockIAuthorizationService) RegisterUser ¶
func (m *MockIAuthorizationService) RegisterUser(login, password string) (string, error)
RegisterUser mocks base method.
type MockIAuthorizationServiceMockRecorder ¶
type MockIAuthorizationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIAuthorizationServiceMockRecorder is the mock recorder for MockIAuthorizationService.
func (*MockIAuthorizationServiceMockRecorder) LoginUser ¶
func (mr *MockIAuthorizationServiceMockRecorder) LoginUser(login, password interface{}) *gomock.Call
LoginUser indicates an expected call of LoginUser.
func (*MockIAuthorizationServiceMockRecorder) ParseToken ¶
func (mr *MockIAuthorizationServiceMockRecorder) ParseToken(token interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
func (*MockIAuthorizationServiceMockRecorder) RegisterUser ¶
func (mr *MockIAuthorizationServiceMockRecorder) RegisterUser(login, password interface{}) *gomock.Call
RegisterUser indicates an expected call of RegisterUser.
type MockIBankRepo ¶
type MockIBankRepo struct {
// contains filtered or unexported fields
}
MockIBankRepo is a mock of IBankRepo interface.
func NewMockIBankRepo ¶
func NewMockIBankRepo(ctrl *gomock.Controller) *MockIBankRepo
NewMockIBankRepo creates a new mock instance.
func (*MockIBankRepo) EXPECT ¶
func (m *MockIBankRepo) EXPECT() *MockIBankRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIBankRepo) GetAllCards ¶
GetAllCards mocks base method.
type MockIBankRepoMockRecorder ¶
type MockIBankRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockIBankRepoMockRecorder is the mock recorder for MockIBankRepo.
func (*MockIBankRepoMockRecorder) GetAllCards ¶
func (mr *MockIBankRepoMockRecorder) GetAllCards(ctx, userID interface{}) *gomock.Call
GetAllCards indicates an expected call of GetAllCards.
type MockIBankService ¶
type MockIBankService struct {
// contains filtered or unexported fields
}
MockIBankService is a mock of IBankService interface.
func NewMockIBankService ¶
func NewMockIBankService(ctrl *gomock.Controller) *MockIBankService
NewMockIBankService creates a new mock instance.
func (*MockIBankService) EXPECT ¶
func (m *MockIBankService) EXPECT() *MockIBankServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIBankService) ViewAllCards ¶
func (m *MockIBankService) ViewAllCards(userID int) ([]entity.BankDTO, error)
ViewAllCards mocks base method.
type MockIBankServiceMockRecorder ¶
type MockIBankServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIBankServiceMockRecorder is the mock recorder for MockIBankService.
func (*MockIBankServiceMockRecorder) ViewAllCards ¶
func (mr *MockIBankServiceMockRecorder) ViewAllCards(userID interface{}) *gomock.Call
ViewAllCards indicates an expected call of ViewAllCards.
type MockIMaker ¶
type MockIMaker struct {
// contains filtered or unexported fields
}
MockIMaker is a mock of IMaker interface.
func NewMockIMaker ¶
func NewMockIMaker(ctrl *gomock.Controller) *MockIMaker
NewMockIMaker creates a new mock instance.
func (*MockIMaker) EXPECT ¶
func (m *MockIMaker) EXPECT() *MockIMakerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIMakerMockRecorder ¶
type MockIMakerMockRecorder struct {
// contains filtered or unexported fields
}
MockIMakerMockRecorder is the mock recorder for MockIMaker.
func (*MockIMakerMockRecorder) Create ¶
func (mr *MockIMakerMockRecorder) Create(userID, duration interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIMakerMockRecorder) Verify ¶
func (mr *MockIMakerMockRecorder) Verify(in interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockIPairsRepo ¶
type MockIPairsRepo struct {
// contains filtered or unexported fields
}
MockIPairsRepo is a mock of IPairsRepo interface.
func NewMockIPairsRepo ¶
func NewMockIPairsRepo(ctrl *gomock.Controller) *MockIPairsRepo
NewMockIPairsRepo creates a new mock instance.
func (*MockIPairsRepo) EXPECT ¶
func (m *MockIPairsRepo) EXPECT() *MockIPairsRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPairsRepo) GetAllPairs ¶
GetAllPairs mocks base method.
type MockIPairsRepoMockRecorder ¶
type MockIPairsRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockIPairsRepoMockRecorder is the mock recorder for MockIPairsRepo.
func (*MockIPairsRepoMockRecorder) GetAllPairs ¶
func (mr *MockIPairsRepoMockRecorder) GetAllPairs(ctx, userID interface{}) *gomock.Call
GetAllPairs indicates an expected call of GetAllPairs.
type MockIPairsService ¶
type MockIPairsService struct {
// contains filtered or unexported fields
}
MockIPairsService is a mock of IPairsService interface.
func NewMockIPairsService ¶
func NewMockIPairsService(ctrl *gomock.Controller) *MockIPairsService
NewMockIPairsService creates a new mock instance.
func (*MockIPairsService) EXPECT ¶
func (m *MockIPairsService) EXPECT() *MockIPairsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPairsService) ViewAllPairs ¶
func (m *MockIPairsService) ViewAllPairs(userID int) ([]entity.PairDTO, error)
ViewAllPairs mocks base method.
type MockIPairsServiceMockRecorder ¶
type MockIPairsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIPairsServiceMockRecorder is the mock recorder for MockIPairsService.
func (*MockIPairsServiceMockRecorder) ViewAllPairs ¶
func (mr *MockIPairsServiceMockRecorder) ViewAllPairs(userID interface{}) *gomock.Call
ViewAllPairs indicates an expected call of ViewAllPairs.
type MockIPasswordHash ¶
type MockIPasswordHash struct {
// contains filtered or unexported fields
}
MockIPasswordHash is a mock of IPasswordHash interface.
func NewMockIPasswordHash ¶
func NewMockIPasswordHash(ctrl *gomock.Controller) *MockIPasswordHash
NewMockIPasswordHash creates a new mock instance.
func (*MockIPasswordHash) Check ¶
func (m *MockIPasswordHash) Check(password, hashedPassword string) error
Check mocks base method.
func (*MockIPasswordHash) EXPECT ¶
func (m *MockIPasswordHash) EXPECT() *MockIPasswordHashMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIPasswordHashMockRecorder ¶
type MockIPasswordHashMockRecorder struct {
// contains filtered or unexported fields
}
MockIPasswordHashMockRecorder is the mock recorder for MockIPasswordHash.
func (*MockIPasswordHashMockRecorder) Check ¶
func (mr *MockIPasswordHashMockRecorder) Check(password, hashedPassword interface{}) *gomock.Call
Check indicates an expected call of Check.
func (*MockIPasswordHashMockRecorder) Hash ¶
func (mr *MockIPasswordHashMockRecorder) Hash(password interface{}) *gomock.Call
Hash indicates an expected call of Hash.
type MockIRepo ¶
type MockIRepo struct {
// contains filtered or unexported fields
}
MockIRepo is a mock of IRepo interface.
func NewMockIRepo ¶
func NewMockIRepo(ctrl *gomock.Controller) *MockIRepo
NewMockIRepo creates a new mock instance.
func (*MockIRepo) CloseConnection ¶
CloseConnection mocks base method.
func (*MockIRepo) CreateUser ¶
CreateUser mocks base method.
func (*MockIRepo) EXPECT ¶
func (m *MockIRepo) EXPECT() *MockIRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIRepo) GetAllCards ¶
GetAllCards mocks base method.
func (*MockIRepo) GetAllNotes ¶
GetAllNotes mocks base method.
func (*MockIRepo) GetAllPairs ¶
GetAllPairs mocks base method.
type MockIRepoMockRecorder ¶
type MockIRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockIRepoMockRecorder is the mock recorder for MockIRepo.
func (*MockIRepoMockRecorder) CloseConnection ¶
func (mr *MockIRepoMockRecorder) CloseConnection() *gomock.Call
CloseConnection indicates an expected call of CloseConnection.
func (*MockIRepoMockRecorder) CreateUser ¶
func (mr *MockIRepoMockRecorder) CreateUser(login, passwordHash interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockIRepoMockRecorder) GetAllCards ¶
func (mr *MockIRepoMockRecorder) GetAllCards(ctx, userID interface{}) *gomock.Call
GetAllCards indicates an expected call of GetAllCards.
func (*MockIRepoMockRecorder) GetAllNotes ¶
func (mr *MockIRepoMockRecorder) GetAllNotes(ctx, userID interface{}) *gomock.Call
GetAllNotes indicates an expected call of GetAllNotes.
func (*MockIRepoMockRecorder) GetAllPairs ¶
func (mr *MockIRepoMockRecorder) GetAllPairs(ctx, userID interface{}) *gomock.Call
GetAllPairs indicates an expected call of GetAllPairs.
func (*MockIRepoMockRecorder) GetUser ¶
func (mr *MockIRepoMockRecorder) GetUser(login interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
type MockIService ¶
type MockIService struct {
// contains filtered or unexported fields
}
MockIService is a mock of IService interface.
func NewMockIService ¶
func NewMockIService(ctrl *gomock.Controller) *MockIService
NewMockIService creates a new mock instance.
func (*MockIService) EXPECT ¶
func (m *MockIService) EXPECT() *MockIServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIService) LoginUser ¶
func (m *MockIService) LoginUser(login, password string) (string, error)
LoginUser mocks base method.
func (*MockIService) ParseToken ¶
func (m *MockIService) ParseToken(token string) (int, error)
ParseToken mocks base method.
func (*MockIService) RegisterUser ¶
func (m *MockIService) RegisterUser(login, password string) (string, error)
RegisterUser mocks base method.
func (*MockIService) ViewAllCards ¶
func (m *MockIService) ViewAllCards(userID int) ([]entity.BankDTO, error)
ViewAllCards mocks base method.
func (*MockIService) ViewAllNotes ¶
func (m *MockIService) ViewAllNotes(userID int) ([]entity.TextDTO, error)
ViewAllNotes mocks base method.
func (*MockIService) ViewAllPairs ¶
func (m *MockIService) ViewAllPairs(userID int) ([]entity.PairDTO, error)
ViewAllPairs mocks base method.
type MockIServiceMockRecorder ¶
type MockIServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIServiceMockRecorder is the mock recorder for MockIService.
func (*MockIServiceMockRecorder) LoginUser ¶
func (mr *MockIServiceMockRecorder) LoginUser(login, password interface{}) *gomock.Call
LoginUser indicates an expected call of LoginUser.
func (*MockIServiceMockRecorder) ParseToken ¶
func (mr *MockIServiceMockRecorder) ParseToken(token interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
func (*MockIServiceMockRecorder) RegisterUser ¶
func (mr *MockIServiceMockRecorder) RegisterUser(login, password interface{}) *gomock.Call
RegisterUser indicates an expected call of RegisterUser.
func (*MockIServiceMockRecorder) ViewAllCards ¶
func (mr *MockIServiceMockRecorder) ViewAllCards(userID interface{}) *gomock.Call
ViewAllCards indicates an expected call of ViewAllCards.
func (*MockIServiceMockRecorder) ViewAllNotes ¶
func (mr *MockIServiceMockRecorder) ViewAllNotes(userID interface{}) *gomock.Call
ViewAllNotes indicates an expected call of ViewAllNotes.
func (*MockIServiceMockRecorder) ViewAllPairs ¶
func (mr *MockIServiceMockRecorder) ViewAllPairs(userID interface{}) *gomock.Call
ViewAllPairs indicates an expected call of ViewAllPairs.
type MockITextRepo ¶
type MockITextRepo struct {
// contains filtered or unexported fields
}
MockITextRepo is a mock of ITextRepo interface.
func NewMockITextRepo ¶
func NewMockITextRepo(ctrl *gomock.Controller) *MockITextRepo
NewMockITextRepo creates a new mock instance.
func (*MockITextRepo) EXPECT ¶
func (m *MockITextRepo) EXPECT() *MockITextRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockITextRepo) GetAllNotes ¶
GetAllNotes mocks base method.
type MockITextRepoMockRecorder ¶
type MockITextRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockITextRepoMockRecorder is the mock recorder for MockITextRepo.
func (*MockITextRepoMockRecorder) GetAllNotes ¶
func (mr *MockITextRepoMockRecorder) GetAllNotes(ctx, userID interface{}) *gomock.Call
GetAllNotes indicates an expected call of GetAllNotes.
type MockITextService ¶
type MockITextService struct {
// contains filtered or unexported fields
}
MockITextService is a mock of ITextService interface.
func NewMockITextService ¶
func NewMockITextService(ctrl *gomock.Controller) *MockITextService
NewMockITextService creates a new mock instance.
func (*MockITextService) EXPECT ¶
func (m *MockITextService) EXPECT() *MockITextServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockITextService) ViewAllNotes ¶
func (m *MockITextService) ViewAllNotes(userID int) ([]entity.TextDTO, error)
ViewAllNotes mocks base method.
type MockITextServiceMockRecorder ¶
type MockITextServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockITextServiceMockRecorder is the mock recorder for MockITextService.
func (*MockITextServiceMockRecorder) ViewAllNotes ¶
func (mr *MockITextServiceMockRecorder) ViewAllNotes(userID interface{}) *gomock.Call
ViewAllNotes indicates an expected call of ViewAllNotes.