Documentation ¶
Index ¶
- func Logger() *zerolog.Logger
- func SetupCreateAutoPiIntegration(t *testing.T, pdb db.Store) *models.Integration
- func SetupCreateDeviceDefinition(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
- func SetupCreateDeviceDefinitionTeslaModel(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
- func SetupCreateDeviceDefinitionWithVehicleInfo(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
- func SetupCreateDeviceDefinitionWithVehicleInfoIncludePowerTrain(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
- func SetupCreateDeviceIntegration(t *testing.T, dd *models.DeviceDefinition, integrationID string, region string, ...) *models.DeviceIntegration
- func SetupCreateDeviceType(t *testing.T, pdb db.Store) *models.DeviceType
- func SetupCreateHardwareIntegration(t *testing.T, pdb db.Store) *models.Integration
- func SetupCreateMake(t *testing.T, mk string, pdb db.Store) models.DeviceMake
- func SetupCreateMakeWithTokenID(t *testing.T, mk string, tokenID int64, pdb db.Store) models.DeviceMake
- func SetupCreateSmartCarIntegration(t *testing.T, pdb db.Store) *models.Integration
- func SetupCreateStyle(t *testing.T, deviceDefinitionID string, name string, source string, ...) models.DeviceStyle
- func SetupCreateWMI(t *testing.T, id string, deviceMakeID string, pdb db.Store) *models.Wmi
- func SetupIntegrationFeature(t *testing.T, pdb db.Store) *models.IntegrationFeature
- func StartContainerDatabase(ctx context.Context, dbName string, t *testing.T, migrationsDirRelPath string) (db.Store, testcontainers.Container)
- func TruncateTables(db *sql.DB, t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupCreateAutoPiIntegration ¶ added in v0.1.41
func SetupCreateDeviceDefinition ¶
func SetupCreateDeviceDefinition(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
func SetupCreateDeviceDefinitionTeslaModel ¶ added in v1.0.15
func SetupCreateDeviceDefinitionTeslaModel(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
func SetupCreateDeviceDefinitionWithVehicleInfo ¶ added in v0.3.4
func SetupCreateDeviceDefinitionWithVehicleInfo(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
func SetupCreateDeviceDefinitionWithVehicleInfoIncludePowerTrain ¶ added in v1.0.14
func SetupCreateDeviceDefinitionWithVehicleInfoIncludePowerTrain(t *testing.T, dm models.DeviceMake, model string, year int, pdb db.Store) *models.DeviceDefinition
func SetupCreateDeviceIntegration ¶
func SetupCreateDeviceIntegration(t *testing.T, dd *models.DeviceDefinition, integrationID string, region string, pdb db.Store) *models.DeviceIntegration
func SetupCreateDeviceType ¶ added in v0.2.0
func SetupCreateHardwareIntegration ¶ added in v0.1.21
func SetupCreateMake ¶
func SetupCreateMakeWithTokenID ¶ added in v1.1.4
func SetupCreateStyle ¶
func SetupCreateWMI ¶ added in v0.7.9
func SetupIntegrationFeature ¶ added in v0.3.5
func StartContainerDatabase ¶
func StartContainerDatabase(ctx context.Context, dbName string, t *testing.T, migrationsDirRelPath string) (db.Store, testcontainers.Container)
StartContainerDatabase starts postgres container with default test settings, and migrates the db. Caller must terminate container.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.