Documentation
¶
Index ¶
- func Logger() *zerolog.Logger
- func SetupCreateAutoPiIntegration(t *testing.T, pdb db.Store) *models.Integration
- func SetupCreateDeviceDefinition(t *testing.T, manufacturerName, model string, year int, pdb db.Store) *coremodels.DeviceDefinitionTablelandModel
- func SetupCreateDeviceDefinitionWithVehicleInfo(t *testing.T, dm coremodels.Manufacturer, model string, year int, pdb db.Store) *coremodels.DeviceDefinitionTablelandModel
- func SetupCreateDeviceType(t *testing.T, pdb db.Store) *models.DeviceType
- func SetupCreateMake(mk string) coremodels.Manufacturer
- func SetupCreateStyle(t *testing.T, definitionID string, name string, source string, subModel string, ...) models.DeviceStyle
- func SetupCreateWMI(t *testing.T, id string, manufacturerName string, pdb db.Store) *models.Wmi
- 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, manufacturerName, model string, year int, pdb db.Store) *coremodels.DeviceDefinitionTablelandModel
func SetupCreateDeviceDefinitionWithVehicleInfo ¶ added in v0.3.4
func SetupCreateDeviceDefinitionWithVehicleInfo(t *testing.T, dm coremodels.Manufacturer, model string, year int, pdb db.Store) *coremodels.DeviceDefinitionTablelandModel
func SetupCreateDeviceType ¶ added in v0.2.0
func SetupCreateMake ¶
func SetupCreateMake(mk string) coremodels.Manufacturer
func SetupCreateStyle ¶
func SetupCreateWMI ¶ added in v0.7.9
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.