(t *testing.T, migrations []string)
| 13 | ) |
| 14 | |
| 15 | func MySQL(t *testing.T, migrations []string) (*sql.DB, func()) { |
| 16 | // For each test, pick a new database name at random. |
| 17 | name := "sqltest_mysql_" + id() |
| 18 | return CreateMySQLDatabase(t, name, migrations) |
| 19 | } |
| 20 | |
| 21 | func CreateMySQLDatabase(t *testing.T, name string, migrations []string) (*sql.DB, func()) { |
| 22 | t.Helper() |
nothing calls this directly
no test coverage detected