mock

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

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCustomerUseCase

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

MockCustomerUseCase is a mock of CustomerUseCase interface.

func NewMockCustomerUseCase

func NewMockCustomerUseCase(ctrl *gomock.Controller) *MockCustomerUseCase

NewMockCustomerUseCase creates a new mock instance.

func (*MockCustomerUseCase) CreateCustomer

func (m *MockCustomerUseCase) CreateCustomer(ctx context.Context, params *usecase.CreateCustomerParams) error

CreateCustomer mocks base method.

func (*MockCustomerUseCase) DeleteCustomer

func (m *MockCustomerUseCase) DeleteCustomer(ctx context.Context, id string) error

DeleteCustomer mocks base method.

func (*MockCustomerUseCase) EXPECT

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

func (*MockCustomerUseCase) GetCustomer

func (m *MockCustomerUseCase) GetCustomer(ctx context.Context, id string) (*entity.Customer, error)

GetCustomer mocks base method.

func (*MockCustomerUseCase) ListCustomers

func (m *MockCustomerUseCase) ListCustomers(ctx context.Context) ([]entity.Customer, error)

ListCustomers mocks base method.

func (*MockCustomerUseCase) UpdateCustomer

func (m *MockCustomerUseCase) UpdateCustomer(ctx context.Context, params *usecase.UpdateCustomerParams) error

UpdateCustomer mocks base method.

type MockCustomerUseCaseMockRecorder

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

MockCustomerUseCaseMockRecorder is the mock recorder for MockCustomerUseCase.

func (*MockCustomerUseCaseMockRecorder) CreateCustomer

func (mr *MockCustomerUseCaseMockRecorder) CreateCustomer(ctx, params interface{}) *gomock.Call

CreateCustomer indicates an expected call of CreateCustomer.

func (*MockCustomerUseCaseMockRecorder) DeleteCustomer

func (mr *MockCustomerUseCaseMockRecorder) DeleteCustomer(ctx, id interface{}) *gomock.Call

DeleteCustomer indicates an expected call of DeleteCustomer.

func (*MockCustomerUseCaseMockRecorder) GetCustomer

func (mr *MockCustomerUseCaseMockRecorder) GetCustomer(ctx, id interface{}) *gomock.Call

GetCustomer indicates an expected call of GetCustomer.

func (*MockCustomerUseCaseMockRecorder) ListCustomers

func (mr *MockCustomerUseCaseMockRecorder) ListCustomers(ctx interface{}) *gomock.Call

ListCustomers indicates an expected call of ListCustomers.

func (*MockCustomerUseCaseMockRecorder) UpdateCustomer

func (mr *MockCustomerUseCaseMockRecorder) UpdateCustomer(ctx, params interface{}) *gomock.Call

UpdateCustomer indicates an expected call of UpdateCustomer.

Jump to

Keyboard shortcuts

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