Documentation
¶
Overview ¶
Package testdb coordinates suites that share the Postgres service provided by the Dagger Test check.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotConfigured = errors.New(envVar + " is not set; run tests with `make test` so Dagger provisions Postgres")
ErrNotConfigured indicates that the suite is not running in Dagger's test environment.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct {
// contains filtered or unexported fields
}
Suite holds the DSN and advisory lock for a DB-backed test suite.
func AcquireSuite ¶
AcquireSuite resolves Dagger's Postgres DSN and serializes suites whose whole-table cleanup cannot safely overlap. Other test packages remain free to run in parallel.
Click to show internal directories.
Click to hide internal directories.