attributemocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package attributemocks is a generated GoMock package.

Index

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

func (m *MockService) CreateAttribute(ctx context.Context, req domain.Attribute) (int64, error)

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

type MockServiceCreateAttributeCall struct {
	*gomock.Call
}

MockServiceCreateAttributeCall wrap *gomock.Call

func (*MockServiceCreateAttributeCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceCreateAttributeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreateAttributeCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListAttributesCall

type MockServiceListAttributesCall struct {
	*gomock.Call
}

MockServiceListAttributesCall wrap *gomock.Call

func (*MockServiceListAttributesCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListAttributesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListAttributesCall) Return

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

type MockServiceSearchAttributeFieldsByModelUidCall struct {
	*gomock.Call
}

MockServiceSearchAttributeFieldsByModelUidCall wrap *gomock.Call

func (*MockServiceSearchAttributeFieldsByModelUidCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceSearchAttributeFieldsByModelUidCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceSearchAttributeFieldsByModelUidCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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