Documentation ¶
Overview ¶
Package attributemocks is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CreateAttribute(ctx context.Context, req domain.Attribute) (int64, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) ListAttributes(ctx context.Context, modelUID string) ([]domain.Attribute, int64, error)
- func (m *MockService) SearchAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error)
- type MockServiceCreateAttributeCall
- func (c *MockServiceCreateAttributeCall) Do(f func(context.Context, domain.Attribute) (int64, error)) *MockServiceCreateAttributeCall
- func (c *MockServiceCreateAttributeCall) DoAndReturn(f func(context.Context, domain.Attribute) (int64, error)) *MockServiceCreateAttributeCall
- func (c *MockServiceCreateAttributeCall) Return(arg0 int64, arg1 error) *MockServiceCreateAttributeCall
- type MockServiceListAttributesCall
- func (c *MockServiceListAttributesCall) Do(f func(context.Context, string) ([]domain.Attribute, int64, error)) *MockServiceListAttributesCall
- func (c *MockServiceListAttributesCall) DoAndReturn(f func(context.Context, string) ([]domain.Attribute, int64, error)) *MockServiceListAttributesCall
- func (c *MockServiceListAttributesCall) Return(arg0 []domain.Attribute, arg1 int64, arg2 error) *MockServiceListAttributesCall
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CreateAttribute(ctx, req any) *MockServiceCreateAttributeCall
- func (mr *MockServiceMockRecorder) ListAttributes(ctx, modelUID any) *MockServiceListAttributesCall
- func (mr *MockServiceMockRecorder) SearchAttributeFieldsByModelUid(ctx, modelUid any) *MockServiceSearchAttributeFieldsByModelUidCall
- type MockServiceSearchAttributeFieldsByModelUidCall
- func (c *MockServiceSearchAttributeFieldsByModelUidCall) Do(f func(context.Context, string) ([]string, error)) *MockServiceSearchAttributeFieldsByModelUidCall
- func (c *MockServiceSearchAttributeFieldsByModelUidCall) DoAndReturn(f func(context.Context, string) ([]string, error)) *MockServiceSearchAttributeFieldsByModelUidCall
- func (c *MockServiceSearchAttributeFieldsByModelUidCall) Return(arg0 []string, arg1 error) *MockServiceSearchAttributeFieldsByModelUidCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CreateAttribute ¶
CreateAttribute mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) ListAttributes ¶
func (m *MockService) ListAttributes(ctx context.Context, modelUID string) ([]domain.Attribute, int64, error)
ListAttributes mocks base method.
func (*MockService) SearchAttributeFieldsByModelUid ¶
func (m *MockService) SearchAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error)
SearchAttributeFieldsByModelUid mocks base method.
type MockServiceCreateAttributeCall ¶
MockServiceCreateAttributeCall wrap *gomock.Call
func (*MockServiceCreateAttributeCall) Do ¶
func (c *MockServiceCreateAttributeCall) Do(f func(context.Context, domain.Attribute) (int64, error)) *MockServiceCreateAttributeCall
Do rewrite *gomock.Call.Do
func (*MockServiceCreateAttributeCall) DoAndReturn ¶
func (c *MockServiceCreateAttributeCall) DoAndReturn(f func(context.Context, domain.Attribute) (int64, error)) *MockServiceCreateAttributeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceCreateAttributeCall) Return ¶
func (c *MockServiceCreateAttributeCall) Return(arg0 int64, arg1 error) *MockServiceCreateAttributeCall
Return rewrite *gomock.Call.Return
type MockServiceListAttributesCall ¶
MockServiceListAttributesCall wrap *gomock.Call
func (*MockServiceListAttributesCall) Do ¶
func (c *MockServiceListAttributesCall) Do(f func(context.Context, string) ([]domain.Attribute, int64, error)) *MockServiceListAttributesCall
Do rewrite *gomock.Call.Do
func (*MockServiceListAttributesCall) DoAndReturn ¶
func (c *MockServiceListAttributesCall) DoAndReturn(f func(context.Context, string) ([]domain.Attribute, int64, error)) *MockServiceListAttributesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceListAttributesCall) Return ¶
func (c *MockServiceListAttributesCall) Return(arg0 []domain.Attribute, arg1 int64, arg2 error) *MockServiceListAttributesCall
Return rewrite *gomock.Call.Return
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CreateAttribute ¶
func (mr *MockServiceMockRecorder) CreateAttribute(ctx, req any) *MockServiceCreateAttributeCall
CreateAttribute indicates an expected call of CreateAttribute.
func (*MockServiceMockRecorder) ListAttributes ¶
func (mr *MockServiceMockRecorder) ListAttributes(ctx, modelUID any) *MockServiceListAttributesCall
ListAttributes indicates an expected call of ListAttributes.
func (*MockServiceMockRecorder) SearchAttributeFieldsByModelUid ¶
func (mr *MockServiceMockRecorder) SearchAttributeFieldsByModelUid(ctx, modelUid any) *MockServiceSearchAttributeFieldsByModelUidCall
SearchAttributeFieldsByModelUid indicates an expected call of SearchAttributeFieldsByModelUid.
type MockServiceSearchAttributeFieldsByModelUidCall ¶
MockServiceSearchAttributeFieldsByModelUidCall wrap *gomock.Call
func (*MockServiceSearchAttributeFieldsByModelUidCall) Do ¶
func (c *MockServiceSearchAttributeFieldsByModelUidCall) Do(f func(context.Context, string) ([]string, error)) *MockServiceSearchAttributeFieldsByModelUidCall
Do rewrite *gomock.Call.Do
func (*MockServiceSearchAttributeFieldsByModelUidCall) DoAndReturn ¶
func (c *MockServiceSearchAttributeFieldsByModelUidCall) DoAndReturn(f func(context.Context, string) ([]string, error)) *MockServiceSearchAttributeFieldsByModelUidCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceSearchAttributeFieldsByModelUidCall) Return ¶
func (c *MockServiceSearchAttributeFieldsByModelUidCall) Return(arg0 []string, arg1 error) *MockServiceSearchAttributeFieldsByModelUidCall
Return rewrite *gomock.Call.Return