Documentation
¶
Overview ¶
Package dbtest provides Postgres-backed integration-test helpers.
Index ¶
- func ApplyDown(t *testing.T, sqlDB *sql.DB)
- func ApplyUp(t *testing.T, sqlDB *sql.DB)
- func MigrationFiles(t *testing.T, pattern string, reverse bool) []string
- func RequireCount(t *testing.T, sqlDB *sql.DB, query string, want int, args ...any)
- func RuntimeDSN(t *testing.T, sqlDB *sql.DB, superDSN string) string
- func SeedSecondTenant(t *testing.T, sqlDB *sql.DB, slug string) uuid.UUID
- func SeedSigningKey(t *testing.T, sqlDB *sql.DB, tenantID uuid.UUID)
- func SeedTenant(t *testing.T, sqlDB *sql.DB, slug string) uuid.UUID
- func TenantProjectSQL(tenantID uuid.UUID, slug string) string
- func TestMasterKey() []byte
- type Harness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireCount ¶
func TestMasterKey ¶
func TestMasterKey() []byte
Types ¶
Click to show internal directories.
Click to hide internal directories.