Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockCustomerUseCase
- func (m *MockCustomerUseCase) CreateCustomer(ctx context.Context, params *usecase.CreateCustomerParams) error
- func (m *MockCustomerUseCase) DeleteCustomer(ctx context.Context, id string) error
- func (m *MockCustomerUseCase) EXPECT() *MockCustomerUseCaseMockRecorder
- func (m *MockCustomerUseCase) GetCustomer(ctx context.Context, id string) (*entity.Customer, error)
- func (m *MockCustomerUseCase) ListCustomers(ctx context.Context) ([]entity.Customer, error)
- func (m *MockCustomerUseCase) UpdateCustomer(ctx context.Context, params *usecase.UpdateCustomerParams) error
- type MockCustomerUseCaseMockRecorder
- func (mr *MockCustomerUseCaseMockRecorder) CreateCustomer(ctx, params interface{}) *gomock.Call
- func (mr *MockCustomerUseCaseMockRecorder) DeleteCustomer(ctx, id interface{}) *gomock.Call
- func (mr *MockCustomerUseCaseMockRecorder) GetCustomer(ctx, id interface{}) *gomock.Call
- func (mr *MockCustomerUseCaseMockRecorder) ListCustomers(ctx interface{}) *gomock.Call
- func (mr *MockCustomerUseCaseMockRecorder) UpdateCustomer(ctx, params interface{}) *gomock.Call
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 ¶
func (m *MockCustomerUseCase) EXPECT() *MockCustomerUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCustomerUseCase) GetCustomer ¶
GetCustomer mocks base method.
func (*MockCustomerUseCase) ListCustomers ¶
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.