mocks

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 MockAuthorization

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

MockAuthorization is a mock of Authorization interface.

func NewMockAuthorization

func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization

NewMockAuthorization creates a new mock instance.

func (*MockAuthorization) CreateUser

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

CreateUser mocks base method.

func (*MockAuthorization) EXPECT

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

func (*MockAuthorization) GenerateToken

func (m *MockAuthorization) GenerateToken(ctx context.Context, email, password string) (string, error)

GenerateToken mocks base method.

func (*MockAuthorization) ParseToken

func (m *MockAuthorization) ParseToken(accessToken string) (int, error)

ParseToken mocks base method.

type MockAuthorizationMockRecorder

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

MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.

func (*MockAuthorizationMockRecorder) CreateUser

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

CreateUser indicates an expected call of CreateUser.

func (*MockAuthorizationMockRecorder) GenerateToken

func (mr *MockAuthorizationMockRecorder) GenerateToken(ctx, email, password interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockAuthorizationMockRecorder) ParseToken

func (mr *MockAuthorizationMockRecorder) ParseToken(accessToken interface{}) *gomock.Call

ParseToken indicates an expected call of ParseToken.

type MockImages

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

MockImages is a mock of Images interface.

func NewMockImages

func NewMockImages(ctrl *gomock.Controller) *MockImages

NewMockImages creates a new mock instance.

func (*MockImages) Conversion

func (m *MockImages) Conversion(ctx context.Context, payload service.ConversionPayLoad) (string, error)

Conversion mocks base method.

func (*MockImages) DownloadImageFromID

func (m *MockImages) DownloadImageFromID(fileID string) (string, error)

DownloadImageFromID mocks base method.

func (*MockImages) EXPECT

func (m *MockImages) EXPECT() *MockImagesMockRecorder

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

func (*MockImages) GetImageByID

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

GetImageByID mocks base method.

func (*MockImages) GetRequestFromID

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

GetRequestFromID mocks base method.

func (*MockImages) InsertImage

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

InsertImage mocks base method.

func (*MockImages) RequestsHistory

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

RequestsHistory mocks base method.

func (*MockImages) UpdateRequest

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

UpdateRequest mocks base method.

type MockImagesMockRecorder

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

MockImagesMockRecorder is the mock recorder for MockImages.

func (*MockImagesMockRecorder) Conversion

func (mr *MockImagesMockRecorder) Conversion(ctx, payload interface{}) *gomock.Call

Conversion indicates an expected call of Conversion.

func (*MockImagesMockRecorder) DownloadImageFromID

func (mr *MockImagesMockRecorder) DownloadImageFromID(fileID interface{}) *gomock.Call

DownloadImageFromID indicates an expected call of DownloadImageFromID.

func (*MockImagesMockRecorder) GetImageByID

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

GetImageByID indicates an expected call of GetImageByID.

func (*MockImagesMockRecorder) GetRequestFromID

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

GetRequestFromID indicates an expected call of GetRequestFromID.

func (*MockImagesMockRecorder) InsertImage

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

InsertImage indicates an expected call of InsertImage.

func (*MockImagesMockRecorder) RequestsHistory

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

RequestsHistory indicates an expected call of RequestsHistory.

func (*MockImagesMockRecorder) UpdateRequest

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

UpdateRequest indicates an expected call of UpdateRequest.

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) Conversion

func (m *MockInterface) Conversion(ctx context.Context, payload service.ConversionPayLoad) (string, error)

Conversion mocks base method.

func (*MockInterface) CreateUser

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

CreateUser mocks base method.

func (*MockInterface) DownloadImageFromID

func (m *MockInterface) DownloadImageFromID(fileID string) (string, error)

DownloadImageFromID mocks base method.

func (*MockInterface) EXPECT

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

func (*MockInterface) GenerateToken

func (m *MockInterface) GenerateToken(ctx context.Context, email, password string) (string, error)

GenerateToken mocks base method.

func (*MockInterface) GetImageByID

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

GetImageByID mocks base method.

func (*MockInterface) GetRequestFromID

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

GetRequestFromID mocks base method.

func (*MockInterface) InsertImage

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

InsertImage mocks base method.

func (*MockInterface) ParseToken

func (m *MockInterface) ParseToken(accessToken string) (int, error)

ParseToken mocks base method.

func (*MockInterface) RequestsHistory

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

RequestsHistory mocks base method.

func (*MockInterface) UpdateRequest

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

UpdateRequest mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Conversion

func (mr *MockInterfaceMockRecorder) Conversion(ctx, payload interface{}) *gomock.Call

Conversion indicates an expected call of Conversion.

func (*MockInterfaceMockRecorder) CreateUser

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

CreateUser indicates an expected call of CreateUser.

func (*MockInterfaceMockRecorder) DownloadImageFromID

func (mr *MockInterfaceMockRecorder) DownloadImageFromID(fileID interface{}) *gomock.Call

DownloadImageFromID indicates an expected call of DownloadImageFromID.

func (*MockInterfaceMockRecorder) GenerateToken

func (mr *MockInterfaceMockRecorder) GenerateToken(ctx, email, password interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockInterfaceMockRecorder) GetImageByID

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

GetImageByID indicates an expected call of GetImageByID.

func (*MockInterfaceMockRecorder) GetRequestFromID

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

GetRequestFromID indicates an expected call of GetRequestFromID.

func (*MockInterfaceMockRecorder) InsertImage

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

InsertImage indicates an expected call of InsertImage.

func (*MockInterfaceMockRecorder) ParseToken

func (mr *MockInterfaceMockRecorder) ParseToken(accessToken interface{}) *gomock.Call

ParseToken indicates an expected call of ParseToken.

func (*MockInterfaceMockRecorder) RequestsHistory

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

RequestsHistory indicates an expected call of RequestsHistory.

func (*MockInterfaceMockRecorder) UpdateRequest

func (mr *MockInterfaceMockRecorder) 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