mockrepo

package
v0.0.0-...-45bb23c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthorizationRepository

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

MockAuthorizationRepository is a mock of AuthorizationRepository interface.

func NewMockAuthorizationRepository

func NewMockAuthorizationRepository(ctrl *gomock.Controller) *MockAuthorizationRepository

NewMockAuthorizationRepository creates a new mock instance.

func (*MockAuthorizationRepository) CreateUser

func (m *MockAuthorizationRepository) CreateUser(ctx context.Context, user models.User) (int, error)

CreateUser mocks base method.

func (*MockAuthorizationRepository) EXPECT

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

func (*MockAuthorizationRepository) GetUser

GetUser mocks base method.

type MockAuthorizationRepositoryMockRecorder

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

MockAuthorizationRepositoryMockRecorder is the mock recorder for MockAuthorizationRepository.

func (*MockAuthorizationRepositoryMockRecorder) CreateUser

func (mr *MockAuthorizationRepositoryMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockAuthorizationRepositoryMockRecorder) GetUser

func (mr *MockAuthorizationRepositoryMockRecorder) GetUser(ctx, email interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

type MockImagesRepository

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

MockImagesRepository is a mock of ImagesRepository interface.

func NewMockImagesRepository

func NewMockImagesRepository(ctrl *gomock.Controller) *MockImagesRepository

NewMockImagesRepository creates a new mock instance.

func (*MockImagesRepository) EXPECT

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

func (*MockImagesRepository) GetImageByID

func (m *MockImagesRepository) GetImageByID(ctx context.Context, id string) (models.Images, error)

GetImageByID mocks base method.

func (*MockImagesRepository) GetRequestFromID

func (m *MockImagesRepository) GetRequestFromID(ctx context.Context, userID int) ([]models.Request, error)

GetRequestFromID mocks base method.

func (*MockImagesRepository) InsertImage

func (m *MockImagesRepository) InsertImage(ctx context.Context, filename, format string) (string, error)

InsertImage mocks base method.

func (*MockImagesRepository) RequestsHistory

func (m *MockImagesRepository) RequestsHistory(ctx context.Context, sourceFormat, targetFormat, imageID, filename string, userID, ratio int) (string, error)

RequestsHistory mocks base method.

func (*MockImagesRepository) UpdateRequest

func (m *MockImagesRepository) UpdateRequest(ctx context.Context, status, imageID, targetID string) error

UpdateRequest mocks base method.

type MockImagesRepositoryMockRecorder

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

MockImagesRepositoryMockRecorder is the mock recorder for MockImagesRepository.

func (*MockImagesRepositoryMockRecorder) GetImageByID

func (mr *MockImagesRepositoryMockRecorder) GetImageByID(ctx, id interface{}) *gomock.Call

GetImageByID indicates an expected call of GetImageByID.

func (*MockImagesRepositoryMockRecorder) GetRequestFromID

func (mr *MockImagesRepositoryMockRecorder) GetRequestFromID(ctx, userID interface{}) *gomock.Call

GetRequestFromID indicates an expected call of GetRequestFromID.

func (*MockImagesRepositoryMockRecorder) InsertImage

func (mr *MockImagesRepositoryMockRecorder) InsertImage(ctx, filename, format interface{}) *gomock.Call

InsertImage indicates an expected call of InsertImage.

func (*MockImagesRepositoryMockRecorder) RequestsHistory

func (mr *MockImagesRepositoryMockRecorder) RequestsHistory(ctx, sourceFormat, targetFormat, imageID, filename, userID, ratio interface{}) *gomock.Call

RequestsHistory indicates an expected call of RequestsHistory.

func (*MockImagesRepositoryMockRecorder) UpdateRequest

func (mr *MockImagesRepositoryMockRecorder) UpdateRequest(ctx, status, imageID, targetID interface{}) *gomock.Call

UpdateRequest indicates an expected call of UpdateRequest.

type MockRepoInterface

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

MockRepoInterface is a mock of RepoInterface interface.

func NewMockRepoInterface

func NewMockRepoInterface(ctrl *gomock.Controller) *MockRepoInterface

NewMockRepoInterface creates a new mock instance.

func (*MockRepoInterface) CreateUser

func (m *MockRepoInterface) CreateUser(ctx context.Context, user models.User) (int, error)

CreateUser mocks base method.

func (*MockRepoInterface) EXPECT

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

func (*MockRepoInterface) GetImageByID

func (m *MockRepoInterface) GetImageByID(ctx context.Context, id string) (models.Images, error)

GetImageByID mocks base method.

func (*MockRepoInterface) GetRequestFromID

func (m *MockRepoInterface) GetRequestFromID(ctx context.Context, userID int) ([]models.Request, error)

GetRequestFromID mocks base method.

func (*MockRepoInterface) GetUser

func (m *MockRepoInterface) GetUser(ctx context.Context, email string) (models.User, error)

GetUser mocks base method.

func (*MockRepoInterface) InsertImage

func (m *MockRepoInterface) InsertImage(ctx context.Context, filename, format string) (string, error)

InsertImage mocks base method.

func (*MockRepoInterface) RequestsHistory

func (m *MockRepoInterface) RequestsHistory(ctx context.Context, sourceFormat, targetFormat, imageID, filename string, userID, ratio int) (string, error)

RequestsHistory mocks base method.

func (*MockRepoInterface) Transactional

func (m *MockRepoInterface) Transactional(f func(repository.RepoInterface) error) error

Transactional mocks base method.

func (*MockRepoInterface) UpdateRequest

func (m *MockRepoInterface) UpdateRequest(ctx context.Context, status, imageID, targetID string) error

UpdateRequest mocks base method.

type MockRepoInterfaceMockRecorder

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

MockRepoInterfaceMockRecorder is the mock recorder for MockRepoInterface.

func (*MockRepoInterfaceMockRecorder) CreateUser

func (mr *MockRepoInterfaceMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockRepoInterfaceMockRecorder) GetImageByID

func (mr *MockRepoInterfaceMockRecorder) GetImageByID(ctx, id interface{}) *gomock.Call

GetImageByID indicates an expected call of GetImageByID.

func (*MockRepoInterfaceMockRecorder) GetRequestFromID

func (mr *MockRepoInterfaceMockRecorder) GetRequestFromID(ctx, userID interface{}) *gomock.Call

GetRequestFromID indicates an expected call of GetRequestFromID.

func (*MockRepoInterfaceMockRecorder) GetUser

func (mr *MockRepoInterfaceMockRecorder) GetUser(ctx, email interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockRepoInterfaceMockRecorder) InsertImage

func (mr *MockRepoInterfaceMockRecorder) InsertImage(ctx, filename, format interface{}) *gomock.Call

InsertImage indicates an expected call of InsertImage.

func (*MockRepoInterfaceMockRecorder) RequestsHistory

func (mr *MockRepoInterfaceMockRecorder) RequestsHistory(ctx, sourceFormat, targetFormat, imageID, filename, userID, ratio interface{}) *gomock.Call

RequestsHistory indicates an expected call of RequestsHistory.

func (*MockRepoInterfaceMockRecorder) Transactional

func (mr *MockRepoInterfaceMockRecorder) Transactional(f interface{}) *gomock.Call

Transactional indicates an expected call of Transactional.

func (*MockRepoInterfaceMockRecorder) UpdateRequest

func (mr *MockRepoInterfaceMockRecorder) UpdateRequest(ctx, status, imageID, targetID interface{}) *gomock.Call

UpdateRequest indicates an expected call of UpdateRequest.

Jump to

Keyboard shortcuts

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