mock_usecase

package
v0.0.0-...-5e1236a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_usecase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockICartUsecase

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

MockICartUsecase is a mock of ICartUsecase interface.

func NewMockICartUsecase

func NewMockICartUsecase(ctrl *gomock.Controller) *MockICartUsecase

NewMockICartUsecase creates a new mock instance.

func (*MockICartUsecase) CreateCart

func (m *MockICartUsecase) CreateCart(ctx context.Context, cart model.Cart) error

CreateCart mocks base method.

func (*MockICartUsecase) CreateCartline

func (m *MockICartUsecase) CreateCartline(ctx context.Context, cartline *model.CartLine) error

CreateCartline mocks base method.

func (*MockICartUsecase) CreateCartlines

func (m *MockICartUsecase) CreateCartlines(ctx context.Context, cartlines []*model.CartLine) error

CreateCartlines mocks base method.

func (*MockICartUsecase) DeleteCart

func (m *MockICartUsecase) DeleteCart(ctx context.Context, userID uuid.UUID) error

DeleteCart mocks base method.

func (*MockICartUsecase) DeleteCartCartlines

func (m *MockICartUsecase) DeleteCartCartlines(ctx context.Context, userID uuid.UUID) error

DeleteCartCartlines mocks base method.

func (*MockICartUsecase) DeleteCartline

func (m *MockICartUsecase) DeleteCartline(ctx context.Context, userID, productID uuid.UUID) error

DeleteCartline mocks base method.

func (*MockICartUsecase) DeleteProductCartlines

func (m *MockICartUsecase) DeleteProductCartlines(ctx context.Context, productID uuid.UUID) error

DeleteProductCartlines mocks base method.

func (*MockICartUsecase) EXPECT

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

func (*MockICartUsecase) GetCartline

func (m *MockICartUsecase) GetCartline(ctx context.Context, userID, productID uuid.UUID) (*model.CartLine, error)

GetCartline mocks base method.

func (*MockICartUsecase) GetUserCart

func (m *MockICartUsecase) GetUserCart(ctx context.Context, userID uuid.UUID) (*model.Cart, error)

GetUserCart mocks base method.

func (*MockICartUsecase) UpdateCartline

func (m *MockICartUsecase) UpdateCartline(ctx context.Context, cartline model.CartLine) (*model.CartLine, error)

UpdateCartline mocks base method.

type MockICartUsecaseMockRecorder

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

MockICartUsecaseMockRecorder is the mock recorder for MockICartUsecase.

func (*MockICartUsecaseMockRecorder) CreateCart

func (mr *MockICartUsecaseMockRecorder) CreateCart(ctx, cart interface{}) *gomock.Call

CreateCart indicates an expected call of CreateCart.

func (*MockICartUsecaseMockRecorder) CreateCartline

func (mr *MockICartUsecaseMockRecorder) CreateCartline(ctx, cartline interface{}) *gomock.Call

CreateCartline indicates an expected call of CreateCartline.

func (*MockICartUsecaseMockRecorder) CreateCartlines

func (mr *MockICartUsecaseMockRecorder) CreateCartlines(ctx, cartlines interface{}) *gomock.Call

CreateCartlines indicates an expected call of CreateCartlines.

func (*MockICartUsecaseMockRecorder) DeleteCart

func (mr *MockICartUsecaseMockRecorder) DeleteCart(ctx, userID interface{}) *gomock.Call

DeleteCart indicates an expected call of DeleteCart.

func (*MockICartUsecaseMockRecorder) DeleteCartCartlines

func (mr *MockICartUsecaseMockRecorder) DeleteCartCartlines(ctx, userID interface{}) *gomock.Call

DeleteCartCartlines indicates an expected call of DeleteCartCartlines.

func (*MockICartUsecaseMockRecorder) DeleteCartline

func (mr *MockICartUsecaseMockRecorder) DeleteCartline(ctx, userID, productID interface{}) *gomock.Call

DeleteCartline indicates an expected call of DeleteCartline.

func (*MockICartUsecaseMockRecorder) DeleteProductCartlines

func (mr *MockICartUsecaseMockRecorder) DeleteProductCartlines(ctx, productID interface{}) *gomock.Call

DeleteProductCartlines indicates an expected call of DeleteProductCartlines.

func (*MockICartUsecaseMockRecorder) GetCartline

func (mr *MockICartUsecaseMockRecorder) GetCartline(ctx, userID, productID interface{}) *gomock.Call

GetCartline indicates an expected call of GetCartline.

func (*MockICartUsecaseMockRecorder) GetUserCart

func (mr *MockICartUsecaseMockRecorder) GetUserCart(ctx, userID interface{}) *gomock.Call

GetUserCart indicates an expected call of GetUserCart.

func (*MockICartUsecaseMockRecorder) UpdateCartline

func (mr *MockICartUsecaseMockRecorder) UpdateCartline(ctx, cartline interface{}) *gomock.Call

UpdateCartline indicates an expected call of UpdateCartline.

Jump to

Keyboard shortcuts

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