mocks

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDeviceDefinitionRepository

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

MockDeviceDefinitionRepository is a mock of DeviceDefinitionRepository interface.

func NewMockDeviceDefinitionRepository

func NewMockDeviceDefinitionRepository(ctrl *gomock.Controller) *MockDeviceDefinitionRepository

NewMockDeviceDefinitionRepository creates a new mock instance.

func (*MockDeviceDefinitionRepository) CreateOrUpdate added in v0.2.0

func (m *MockDeviceDefinitionRepository) CreateOrUpdate(ctx context.Context, dd *models.DeviceDefinition, deviceStyles []*models.DeviceStyle, deviceIntegrations []*models.DeviceIntegration, metaData map[string]interface{}) (*models.DeviceDefinition, error)

CreateOrUpdate mocks base method.

func (*MockDeviceDefinitionRepository) EXPECT

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

func (*MockDeviceDefinitionRepository) FetchDeviceCompatibility added in v0.1.38

func (m *MockDeviceDefinitionRepository) FetchDeviceCompatibility(ctx context.Context, makeID, integrationID, region, cursor string, size int64) (models.DeviceDefinitionSlice, error)

FetchDeviceCompatibility mocks base method.

func (*MockDeviceDefinitionRepository) GetAll

GetAll mocks base method.

func (*MockDeviceDefinitionRepository) GetByID added in v0.1.2

GetByID mocks base method.

func (*MockDeviceDefinitionRepository) GetByMakeModelAndYears

func (m *MockDeviceDefinitionRepository) GetByMakeModelAndYears(ctx context.Context, make, model string, year int, loadIntegrations bool) (*models.DeviceDefinition, error)

GetByMakeModelAndYears mocks base method.

func (*MockDeviceDefinitionRepository) GetBySlugAndYear added in v0.2.7

func (m *MockDeviceDefinitionRepository) GetBySlugAndYear(ctx context.Context, slug string, year int, loadIntegrations bool) (*models.DeviceDefinition, error)

GetBySlugAndYear mocks base method.

func (*MockDeviceDefinitionRepository) GetOrCreate added in v0.1.4

func (m *MockDeviceDefinitionRepository) GetOrCreate(ctx context.Context, source, make, model string, year int, deviceTypeID string, metaData map[string]interface{}) (*models.DeviceDefinition, error)

GetOrCreate mocks base method.

func (*MockDeviceDefinitionRepository) GetWithIntegrations

GetWithIntegrations mocks base method.

type MockDeviceDefinitionRepositoryMockRecorder

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

MockDeviceDefinitionRepositoryMockRecorder is the mock recorder for MockDeviceDefinitionRepository.

func (*MockDeviceDefinitionRepositoryMockRecorder) CreateOrUpdate added in v0.2.0

func (mr *MockDeviceDefinitionRepositoryMockRecorder) CreateOrUpdate(ctx, dd, deviceStyles, deviceIntegrations, metaData interface{}) *gomock.Call

CreateOrUpdate indicates an expected call of CreateOrUpdate.

func (*MockDeviceDefinitionRepositoryMockRecorder) FetchDeviceCompatibility added in v0.1.38

func (mr *MockDeviceDefinitionRepositoryMockRecorder) FetchDeviceCompatibility(ctx, makeID, integrationID, region, cursor, size interface{}) *gomock.Call

FetchDeviceCompatibility indicates an expected call of FetchDeviceCompatibility.

func (*MockDeviceDefinitionRepositoryMockRecorder) GetAll

func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetAll(ctx interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockDeviceDefinitionRepositoryMockRecorder) GetByID added in v0.1.4

func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockDeviceDefinitionRepositoryMockRecorder) GetByMakeModelAndYears

func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetByMakeModelAndYears(ctx, make, model, year, loadIntegrations interface{}) *gomock.Call

GetByMakeModelAndYears indicates an expected call of GetByMakeModelAndYears.

func (*MockDeviceDefinitionRepositoryMockRecorder) GetBySlugAndYear added in v0.2.9

func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetBySlugAndYear(ctx, slug, year, loadIntegrations interface{}) *gomock.Call

GetBySlugAndYear indicates an expected call of GetBySlugAndYear.

func (*MockDeviceDefinitionRepositoryMockRecorder) GetOrCreate added in v0.1.4

func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetOrCreate(ctx, source, make, model, year, deviceTypeID, metaData interface{}) *gomock.Call

GetOrCreate indicates an expected call of GetOrCreate.

func (*MockDeviceDefinitionRepositoryMockRecorder) GetWithIntegrations

func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetWithIntegrations(ctx, id interface{}) *gomock.Call

GetWithIntegrations indicates an expected call of GetWithIntegrations.

type MockDeviceIntegrationRepository added in v0.1.4

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

MockDeviceIntegrationRepository is a mock of DeviceIntegrationRepository interface.

func NewMockDeviceIntegrationRepository added in v0.1.4

func NewMockDeviceIntegrationRepository(ctrl *gomock.Controller) *MockDeviceIntegrationRepository

NewMockDeviceIntegrationRepository creates a new mock instance.

func (*MockDeviceIntegrationRepository) Create added in v0.1.4

func (m *MockDeviceIntegrationRepository) Create(ctx context.Context, deviceDefinitionID, integrationID, region string, features []map[string]interface{}) (*models.DeviceIntegration, error)

Create mocks base method.

func (*MockDeviceIntegrationRepository) EXPECT added in v0.1.4

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

type MockDeviceIntegrationRepositoryMockRecorder added in v0.1.4

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

MockDeviceIntegrationRepositoryMockRecorder is the mock recorder for MockDeviceIntegrationRepository.

func (*MockDeviceIntegrationRepositoryMockRecorder) Create added in v0.1.4

func (mr *MockDeviceIntegrationRepositoryMockRecorder) Create(ctx, deviceDefinitionID, integrationID, region, features interface{}) *gomock.Call

Create indicates an expected call of Create.

type MockDeviceMakeRepository

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

MockDeviceMakeRepository is a mock of DeviceMakeRepository interface.

func NewMockDeviceMakeRepository

func NewMockDeviceMakeRepository(ctrl *gomock.Controller) *MockDeviceMakeRepository

NewMockDeviceMakeRepository creates a new mock instance.

func (*MockDeviceMakeRepository) EXPECT

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

func (*MockDeviceMakeRepository) GetAll

GetAll mocks base method.

func (*MockDeviceMakeRepository) GetOrCreate added in v0.1.4

func (m *MockDeviceMakeRepository) GetOrCreate(ctx context.Context, makeName, logURL, externalIds, metadata string) (*models.DeviceMake, error)

GetOrCreate mocks base method.

type MockDeviceMakeRepositoryMockRecorder

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

MockDeviceMakeRepositoryMockRecorder is the mock recorder for MockDeviceMakeRepository.

func (*MockDeviceMakeRepositoryMockRecorder) GetAll

func (mr *MockDeviceMakeRepositoryMockRecorder) GetAll(ctx interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockDeviceMakeRepositoryMockRecorder) GetOrCreate added in v0.1.4

func (mr *MockDeviceMakeRepositoryMockRecorder) GetOrCreate(ctx, makeName, logURL, externalIds, metadata interface{}) *gomock.Call

GetOrCreate indicates an expected call of GetOrCreate.

type MockDeviceNHTSARecallsRepository added in v0.2.4

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

MockDeviceNHTSARecallsRepository is a mock of DeviceNHTSARecallsRepository interface.

func NewMockDeviceNHTSARecallsRepository added in v0.2.4

func NewMockDeviceNHTSARecallsRepository(ctrl *gomock.Controller) *MockDeviceNHTSARecallsRepository

NewMockDeviceNHTSARecallsRepository creates a new mock instance.

func (*MockDeviceNHTSARecallsRepository) Create added in v0.2.4

func (m *MockDeviceNHTSARecallsRepository) Create(ctx context.Context, deviceDefinitionID null.String, data []string, metadata null.JSON, hash []byte) (*models.DeviceNhtsaRecall, error)

Create mocks base method.

func (*MockDeviceNHTSARecallsRepository) EXPECT added in v0.2.4

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

func (*MockDeviceNHTSARecallsRepository) GetLastDataRecordID added in v0.2.4

func (m *MockDeviceNHTSARecallsRepository) GetLastDataRecordID(ctx context.Context) (*null.Int, error)

GetLastDataRecordID mocks base method.

func (*MockDeviceNHTSARecallsRepository) MatchDeviceDefinition added in v0.2.4

func (m *MockDeviceNHTSARecallsRepository) MatchDeviceDefinition(ctx context.Context, matchingVersion string) (int64, error)

MatchDeviceDefinition mocks base method.

type MockDeviceNHTSARecallsRepositoryMockRecorder added in v0.2.4

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

MockDeviceNHTSARecallsRepositoryMockRecorder is the mock recorder for MockDeviceNHTSARecallsRepository.

func (*MockDeviceNHTSARecallsRepositoryMockRecorder) Create added in v0.2.4

func (mr *MockDeviceNHTSARecallsRepositoryMockRecorder) Create(ctx, deviceDefinitionID, data, metadata, hash interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockDeviceNHTSARecallsRepositoryMockRecorder) GetLastDataRecordID added in v0.2.4

func (mr *MockDeviceNHTSARecallsRepositoryMockRecorder) GetLastDataRecordID(ctx interface{}) *gomock.Call

GetLastDataRecordID indicates an expected call of GetLastDataRecordID.

func (*MockDeviceNHTSARecallsRepositoryMockRecorder) MatchDeviceDefinition added in v0.2.4

func (mr *MockDeviceNHTSARecallsRepositoryMockRecorder) MatchDeviceDefinition(ctx, matchingVersion interface{}) *gomock.Call

MatchDeviceDefinition indicates an expected call of MatchDeviceDefinition.

type MockDeviceStyleRepository added in v0.2.4

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

MockDeviceStyleRepository is a mock of DeviceStyleRepository interface.

func NewMockDeviceStyleRepository added in v0.2.4

func NewMockDeviceStyleRepository(ctrl *gomock.Controller) *MockDeviceStyleRepository

NewMockDeviceStyleRepository creates a new mock instance.

func (*MockDeviceStyleRepository) Create added in v0.2.4

func (m *MockDeviceStyleRepository) Create(ctx context.Context, deviceDefinitionID, name, externalStyleID, source, subModel string) (*models.DeviceStyle, error)

Create mocks base method.

func (*MockDeviceStyleRepository) EXPECT added in v0.2.4

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

type MockDeviceStyleRepositoryMockRecorder added in v0.2.4

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

MockDeviceStyleRepositoryMockRecorder is the mock recorder for MockDeviceStyleRepository.

func (*MockDeviceStyleRepositoryMockRecorder) Create added in v0.2.4

func (mr *MockDeviceStyleRepositoryMockRecorder) Create(ctx, deviceDefinitionID, name, externalStyleID, source, subModel interface{}) *gomock.Call

Create indicates an expected call of Create.

Jump to

Keyboard shortcuts

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