Documentation
¶
Overview ¶
Package testutil provides shared test utilities for integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UniqueFixtureName ¶
UniqueFixtureName generates a unique fixture name for testing.
func UniqueProjectName ¶
UniqueProjectName generates a unique project name for testing. This ensures tests don't conflict with each other.
Types ¶
type TestDB ¶
type TestDB struct {
DB *gorm.DB
ProjectRepo *repositories.ProjectRepository
FixtureRepo *repositories.FixtureRepository
LookRepo *repositories.LookRepository
CueListRepo *repositories.CueListRepository
CueRepo *repositories.CueRepository
}
TestDB holds the test database and repositories.
func SetupTestDB ¶
SetupTestDB creates an in-memory SQLite database for testing. It returns a TestDB with all repositories initialized and a cleanup function.
Click to show internal directories.
Click to hide internal directories.