mocks

package
v0.0.0-...-786533a Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 5 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.

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 MockProductRepository

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

MockProductRepository is a mock of ProductRepository interface.

func NewMockProductRepository

func NewMockProductRepository(ctrl *gomock.Controller) *MockProductRepository

NewMockProductRepository creates a new mock instance.

func (*MockProductRepository) EXPECT

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

func (*MockProductRepository) Fetch

func (m *MockProductRepository) Fetch(paginationRequest *dto.PaginationRequestParms) ([]domain.Product, error)

Fetch mocks base method.

func (*MockProductRepository) FetchOne

func (m *MockProductRepository) FetchOne(id string) (*domain.Product, error)

FetchOne mocks base method.

func (*MockProductRepository) Purchase

func (m *MockProductRepository) Purchase(subscription *domain.Subscription) (string, error)

Purchase mocks base method.

type MockProductRepositoryMockRecorder

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

MockProductRepositoryMockRecorder is the mock recorder for MockProductRepository.

func (*MockProductRepositoryMockRecorder) Fetch

func (mr *MockProductRepositoryMockRecorder) Fetch(paginationRequest interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockProductRepositoryMockRecorder) FetchOne

func (mr *MockProductRepositoryMockRecorder) FetchOne(id interface{}) *gomock.Call

FetchOne indicates an expected call of FetchOne.

func (*MockProductRepositoryMockRecorder) Purchase

func (mr *MockProductRepositoryMockRecorder) Purchase(subscription interface{}) *gomock.Call

Purchase indicates an expected call of Purchase.

type MockProductService

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

MockProductService is a mock of ProductService interface.

func NewMockProductService

func NewMockProductService(ctrl *gomock.Controller) *MockProductService

NewMockProductService creates a new mock instance.

func (*MockProductService) EXPECT

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

func (*MockProductService) Fetch

func (m *MockProductService) Fetch(response http.ResponseWriter, request *http.Request)

Fetch mocks base method.

func (*MockProductService) FetchOne

func (m *MockProductService) FetchOne(response http.ResponseWriter, request *http.Request)

FetchOne mocks base method.

func (*MockProductService) Purchase

func (m *MockProductService) Purchase(response http.ResponseWriter, request *http.Request)

Purchase mocks base method.

type MockProductServiceMockRecorder

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

MockProductServiceMockRecorder is the mock recorder for MockProductService.

func (*MockProductServiceMockRecorder) Fetch

func (mr *MockProductServiceMockRecorder) Fetch(response, request interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockProductServiceMockRecorder) FetchOne

func (mr *MockProductServiceMockRecorder) FetchOne(response, request interface{}) *gomock.Call

FetchOne indicates an expected call of FetchOne.

func (*MockProductServiceMockRecorder) Purchase

func (mr *MockProductServiceMockRecorder) Purchase(response, request interface{}) *gomock.Call

Purchase indicates an expected call of Purchase.

type MockProductUseCase

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

MockProductUseCase is a mock of ProductUseCase interface.

func NewMockProductUseCase

func NewMockProductUseCase(ctrl *gomock.Controller) *MockProductUseCase

NewMockProductUseCase creates a new mock instance.

func (*MockProductUseCase) EXPECT

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

func (*MockProductUseCase) Fetch

func (m *MockProductUseCase) Fetch(paginationRequest *dto.PaginationRequestParms) ([]domain.Product, error)

Fetch mocks base method.

func (*MockProductUseCase) FetchOne

func (m *MockProductUseCase) FetchOne(id string) (*domain.Product, error)

FetchOne mocks base method.

func (*MockProductUseCase) Purchase

func (m *MockProductUseCase) Purchase(purchaseRequest *dto.PurchaseRequest) (*domain.Subscription, error)

Purchase mocks base method.

type MockProductUseCaseMockRecorder

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

MockProductUseCaseMockRecorder is the mock recorder for MockProductUseCase.

func (*MockProductUseCaseMockRecorder) Fetch

func (mr *MockProductUseCaseMockRecorder) Fetch(paginationRequest interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockProductUseCaseMockRecorder) FetchOne

func (mr *MockProductUseCaseMockRecorder) FetchOne(id interface{}) *gomock.Call

FetchOne indicates an expected call of FetchOne.

func (*MockProductUseCaseMockRecorder) Purchase

func (mr *MockProductUseCaseMockRecorder) Purchase(purchaseRequest interface{}) *gomock.Call

Purchase indicates an expected call of Purchase.

type MockSubscriptionRepository

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

MockSubscriptionRepository is a mock of SubscriptionRepository interface.

func NewMockSubscriptionRepository

func NewMockSubscriptionRepository(ctrl *gomock.Controller) *MockSubscriptionRepository

NewMockSubscriptionRepository creates a new mock instance.

func (*MockSubscriptionRepository) EXPECT

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

func (*MockSubscriptionRepository) FetchOne

FetchOne mocks base method.

func (*MockSubscriptionRepository) UpdateStatus

UpdateStatus mocks base method.

type MockSubscriptionRepositoryMockRecorder

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

MockSubscriptionRepositoryMockRecorder is the mock recorder for MockSubscriptionRepository.

func (*MockSubscriptionRepositoryMockRecorder) FetchOne

func (mr *MockSubscriptionRepositoryMockRecorder) FetchOne(id interface{}) *gomock.Call

FetchOne indicates an expected call of FetchOne.

func (*MockSubscriptionRepositoryMockRecorder) UpdateStatus

func (mr *MockSubscriptionRepositoryMockRecorder) UpdateStatus(id, status interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

type MockSubscriptionService

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

MockSubscriptionService is a mock of SubscriptionService interface.

func NewMockSubscriptionService

func NewMockSubscriptionService(ctrl *gomock.Controller) *MockSubscriptionService

NewMockSubscriptionService creates a new mock instance.

func (*MockSubscriptionService) EXPECT

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

func (*MockSubscriptionService) FetchOne

func (m *MockSubscriptionService) FetchOne(response http.ResponseWriter, request *http.Request)

FetchOne mocks base method.

func (*MockSubscriptionService) UpdateStatus

func (m *MockSubscriptionService) UpdateStatus(response http.ResponseWriter, request *http.Request)

UpdateStatus mocks base method.

type MockSubscriptionServiceMockRecorder

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

MockSubscriptionServiceMockRecorder is the mock recorder for MockSubscriptionService.

func (*MockSubscriptionServiceMockRecorder) FetchOne

func (mr *MockSubscriptionServiceMockRecorder) FetchOne(response, request interface{}) *gomock.Call

FetchOne indicates an expected call of FetchOne.

func (*MockSubscriptionServiceMockRecorder) UpdateStatus

func (mr *MockSubscriptionServiceMockRecorder) UpdateStatus(response, request interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

type MockSubscriptionUseCase

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

MockSubscriptionUseCase is a mock of SubscriptionUseCase interface.

func NewMockSubscriptionUseCase

func NewMockSubscriptionUseCase(ctrl *gomock.Controller) *MockSubscriptionUseCase

NewMockSubscriptionUseCase creates a new mock instance.

func (*MockSubscriptionUseCase) EXPECT

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

func (*MockSubscriptionUseCase) FetchOne

FetchOne mocks base method.

func (*MockSubscriptionUseCase) UpdateStatus

func (m *MockSubscriptionUseCase) UpdateStatus(id string, status *dto.UpdateSubscriptionStatus) error

UpdateStatus mocks base method.

type MockSubscriptionUseCaseMockRecorder

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

MockSubscriptionUseCaseMockRecorder is the mock recorder for MockSubscriptionUseCase.

func (*MockSubscriptionUseCaseMockRecorder) FetchOne

func (mr *MockSubscriptionUseCaseMockRecorder) FetchOne(id interface{}) *gomock.Call

FetchOne indicates an expected call of FetchOne.

func (*MockSubscriptionUseCaseMockRecorder) UpdateStatus

func (mr *MockSubscriptionUseCaseMockRecorder) UpdateStatus(id, status interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

Jump to

Keyboard shortcuts

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