Versions in this module Expand all Collapse all v1 v1.1.0 Feb 28, 2026 v1.0.0 Feb 25, 2026 Changes in this version + func NewMySQLContainer(t *testing.T, serviceName string, schemaFiles ...string) *sql.DB + func RunCollectorTests[T prometheus.Collector](t *testing.T, tests []CollectorTestCase, newCollector CollectorFactory[T]) + func SeedSQL(t *testing.T, db *sql.DB, statements ...string) + func SkipIfNoDocker(t *testing.T) + type CollectorFactory func(*sql.DB, *slog.Logger) T + type CollectorTestCase struct + ExpectError bool + ExpectedMetrics string + Name string + SetupMock func(sqlmock.Sqlmock) + type MySQLContainerResult struct + DB *sql.DB + URL string + func NewMySQLContainerWithURL(t *testing.T, serviceName string, schemaFiles ...string) MySQLContainerResult + func (r MySQLContainerResult) Terminate(ctx context.Context) error