mocks

package
v0.0.0-...-4db5c07 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks 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 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

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

func (*MockIAuthorizationRepo) GetUser

func (m *MockIAuthorizationRepo) GetUser(login string) (entity.UserDAO, error)

GetUser mocks base method.

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

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

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

func (*MockIBankRepo) GetAllCards

func (m *MockIBankRepo) GetAllCards(ctx context.Context, userID int) ([]entity.BankDAO, error)

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

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) Create

func (m *MockIMaker) Create(userID int, duration time.Duration) (string, error)

Create mocks base method.

func (*MockIMaker) EXPECT

func (m *MockIMaker) EXPECT() *MockIMakerMockRecorder

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

func (*MockIMaker) Verify

func (m *MockIMaker) Verify(in string) (*token.Payload, error)

Verify mocks base method.

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

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

func (*MockIPairsRepo) GetAllPairs

func (m *MockIPairsRepo) GetAllPairs(ctx context.Context, userID int) ([]entity.PairDAO, error)

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

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

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

func (*MockIPasswordHash) Hash

func (m *MockIPasswordHash) Hash(password string) (string, error)

Hash mocks base method.

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

func (m *MockIRepo) CloseConnection() error

CloseConnection mocks base method.

func (*MockIRepo) CreateUser

func (m *MockIRepo) CreateUser(login, passwordHash string) (int, error)

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

func (m *MockIRepo) GetAllCards(ctx context.Context, userID int) ([]entity.BankDAO, error)

GetAllCards mocks base method.

func (*MockIRepo) GetAllNotes

func (m *MockIRepo) GetAllNotes(ctx context.Context, userID int) ([]entity.TextDAO, error)

GetAllNotes mocks base method.

func (*MockIRepo) GetAllPairs

func (m *MockIRepo) GetAllPairs(ctx context.Context, userID int) ([]entity.PairDAO, error)

GetAllPairs mocks base method.

func (*MockIRepo) GetUser

func (m *MockIRepo) GetUser(login string) (entity.UserDAO, error)

GetUser 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

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

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

func (*MockITextRepo) GetAllNotes

func (m *MockITextRepo) GetAllNotes(ctx context.Context, userID int) ([]entity.TextDAO, error)

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

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.

Jump to

Keyboard shortcuts

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