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.
Code generated by MockGen. DO NOT EDIT. Source: vin_repo.go
Generated by this command:
mockgen -source vin_repo.go -destination mocks/vin_repo_mock.go -package mocks
Package mocks is a generated GoMock package.
Index ¶
- type MockDeviceDefinitionRepository
- func (m *MockDeviceDefinitionRepository) CreateOrUpdate(ctx context.Context, dd *models.DeviceDefinition, ...) (*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) EXPECT() *MockDeviceDefinitionRepositoryMockRecorder
- func (m *MockDeviceDefinitionRepository) FetchDeviceCompatibility(ctx context.Context, makeID, integrationID, region, cursor string, size int64) (models.DeviceDefinitionSlice, error)
- func (m *MockDeviceDefinitionRepository) GetAll(ctx context.Context) ([]*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetByID(ctx context.Context, id string) (*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetByMakeModelAndYears(ctx context.Context, make, model string, year int, loadIntegrations bool) (*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetBySlugAndYear(ctx context.Context, slug string, year int, loadIntegrations bool) (*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetBySlugName(ctx context.Context, slug string, loadIntegrations bool) (*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetDevicesByMakeYearRange(ctx context.Context, makeID string, yearStart, yearEnd int32) ([]*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetDevicesMMY(ctx context.Context) ([]*repositories.DeviceMMYJoinQueryOutput, error)
- func (m *MockDeviceDefinitionRepository) GetOrCreate(ctx context.Context, tx *sql.Tx, source, extID, makeOrID, model string, ...) (*models.DeviceDefinition, error)
- func (m *MockDeviceDefinitionRepository) GetWithIntegrations(ctx context.Context, id string) (*models.DeviceDefinition, error)
- type MockDeviceDefinitionRepositoryMockRecorder
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) CreateOrUpdate(ctx, dd, deviceStyles, deviceIntegrations any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) FetchDeviceCompatibility(ctx, makeID, integrationID, region, cursor, size any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetAll(ctx any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetByID(ctx, id any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetByMakeModelAndYears(ctx, make, model, year, loadIntegrations any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetBySlugAndYear(ctx, slug, year, loadIntegrations any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetBySlugName(ctx, slug, loadIntegrations any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetDevicesByMakeYearRange(ctx, makeID, yearStart, yearEnd any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetDevicesMMY(ctx any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetOrCreate(ctx, tx, source, extID, makeOrID, model, year, deviceTypeID, metaData, ... any) *gomock.Call
- func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetWithIntegrations(ctx, id any) *gomock.Call
- type MockDeviceIntegrationRepository
- type MockDeviceIntegrationRepositoryMockRecorder
- type MockDeviceMakeRepository
- type MockDeviceMakeRepositoryMockRecorder
- type MockDeviceStyleRepository
- type MockDeviceStyleRepositoryMockRecorder
- type MockVINRepository
- type MockVINRepositoryMockRecorder
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) (*models.DeviceDefinition, error)
CreateOrUpdate mocks base method.
func (*MockDeviceDefinitionRepository) EXPECT ¶
func (m *MockDeviceDefinitionRepository) EXPECT() *MockDeviceDefinitionRepositoryMockRecorder
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 ¶
func (m *MockDeviceDefinitionRepository) GetAll(ctx context.Context) ([]*models.DeviceDefinition, error)
GetAll mocks base method.
func (*MockDeviceDefinitionRepository) GetByID ¶ added in v0.1.2
func (m *MockDeviceDefinitionRepository) GetByID(ctx context.Context, id string) (*models.DeviceDefinition, error)
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) GetBySlugName ¶ added in v1.1.1
func (m *MockDeviceDefinitionRepository) GetBySlugName(ctx context.Context, slug string, loadIntegrations bool) (*models.DeviceDefinition, error)
GetBySlugName mocks base method.
func (*MockDeviceDefinitionRepository) GetDevicesByMakeYearRange ¶ added in v1.0.29
func (m *MockDeviceDefinitionRepository) GetDevicesByMakeYearRange(ctx context.Context, makeID string, yearStart, yearEnd int32) ([]*models.DeviceDefinition, error)
GetDevicesByMakeYearRange mocks base method.
func (*MockDeviceDefinitionRepository) GetDevicesMMY ¶ added in v0.7.2
func (m *MockDeviceDefinitionRepository) GetDevicesMMY(ctx context.Context) ([]*repositories.DeviceMMYJoinQueryOutput, error)
GetDevicesMMY mocks base method.
func (*MockDeviceDefinitionRepository) GetOrCreate ¶ added in v0.1.4
func (m *MockDeviceDefinitionRepository) GetOrCreate(ctx context.Context, tx *sql.Tx, source, extID, makeOrID, model string, year int, deviceTypeID string, metaData null.JSON, verified bool, hardwareTemplateID *string) (*models.DeviceDefinition, error)
GetOrCreate mocks base method.
func (*MockDeviceDefinitionRepository) GetWithIntegrations ¶
func (m *MockDeviceDefinitionRepository) GetWithIntegrations(ctx context.Context, id string) (*models.DeviceDefinition, error)
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 any) *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 any) *gomock.Call
FetchDeviceCompatibility indicates an expected call of FetchDeviceCompatibility.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetAll ¶
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetAll(ctx any) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetByID ¶ added in v0.1.4
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetByID(ctx, id any) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetByMakeModelAndYears ¶
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetByMakeModelAndYears(ctx, make, model, year, loadIntegrations any) *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 any) *gomock.Call
GetBySlugAndYear indicates an expected call of GetBySlugAndYear.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetBySlugName ¶ added in v1.1.1
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetBySlugName(ctx, slug, loadIntegrations any) *gomock.Call
GetBySlugName indicates an expected call of GetBySlugName.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetDevicesByMakeYearRange ¶ added in v1.0.29
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetDevicesByMakeYearRange(ctx, makeID, yearStart, yearEnd any) *gomock.Call
GetDevicesByMakeYearRange indicates an expected call of GetDevicesByMakeYearRange.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetDevicesMMY ¶ added in v0.7.2
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetDevicesMMY(ctx any) *gomock.Call
GetDevicesMMY indicates an expected call of GetDevicesMMY.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetOrCreate ¶ added in v0.1.4
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetOrCreate(ctx, tx, source, extID, makeOrID, model, year, deviceTypeID, metaData, verified, hardwareTemplateID any) *gomock.Call
GetOrCreate indicates an expected call of GetOrCreate.
func (*MockDeviceDefinitionRepositoryMockRecorder) GetWithIntegrations ¶
func (mr *MockDeviceDefinitionRepositoryMockRecorder) GetWithIntegrations(ctx, id any) *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
func (m *MockDeviceIntegrationRepository) EXPECT() *MockDeviceIntegrationRepositoryMockRecorder
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 ¶
func (m *MockDeviceMakeRepository) EXPECT() *MockDeviceMakeRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeviceMakeRepository) GetAll ¶
func (m *MockDeviceMakeRepository) GetAll(ctx context.Context) ([]*models.DeviceMake, error)
GetAll mocks base method.
func (*MockDeviceMakeRepository) GetOrCreate ¶ added in v0.1.4
func (m *MockDeviceMakeRepository) GetOrCreate(ctx context.Context, makeName, logURL, externalIds, metadata, hardwareTemplateID 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, hardwareTemplateID interface{}) *gomock.Call
GetOrCreate indicates an expected call of GetOrCreate.
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, templateID string) (*models.DeviceStyle, error)
Create mocks base method.
func (*MockDeviceStyleRepository) EXPECT ¶ added in v0.2.4
func (m *MockDeviceStyleRepository) EXPECT() *MockDeviceStyleRepositoryMockRecorder
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, templateID interface{}) *gomock.Call
Create indicates an expected call of Create.
type MockVINRepository ¶ added in v0.7.9
type MockVINRepository struct {
// contains filtered or unexported fields
}
MockVINRepository is a mock of VINRepository interface.
func NewMockVINRepository ¶ added in v0.7.9
func NewMockVINRepository(ctrl *gomock.Controller) *MockVINRepository
NewMockVINRepository creates a new mock instance.
func (*MockVINRepository) EXPECT ¶ added in v0.7.9
func (m *MockVINRepository) EXPECT() *MockVINRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVINRepository) GetOrCreateWMI ¶ added in v0.7.9
func (m *MockVINRepository) GetOrCreateWMI(ctx context.Context, wmi, make string) (*models.Wmi, error)
GetOrCreateWMI mocks base method.
type MockVINRepositoryMockRecorder ¶ added in v0.7.9
type MockVINRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockVINRepositoryMockRecorder is the mock recorder for MockVINRepository.
func (*MockVINRepositoryMockRecorder) GetOrCreateWMI ¶ added in v0.7.9
func (mr *MockVINRepositoryMockRecorder) GetOrCreateWMI(ctx, wmi, make any) *gomock.Call
GetOrCreateWMI indicates an expected call of GetOrCreateWMI.