(t *testing.T)
| 94 | } |
| 95 | |
| 96 | func TestMySQLUnix(t *testing.T) { |
| 97 | if testing.Short() { |
| 98 | t.Skip("skipping MySQL integration tests") |
| 99 | } |
| 100 | requireMySQLVars(t) |
| 101 | tmpDir, cleanup := createTempDir(t) |
| 102 | defer cleanup() |
| 103 | |
| 104 | cfg := mysql.Config{ |
| 105 | User: *mysqlUser, |
| 106 | Passwd: *mysqlPass, |
| 107 | DBName: *mysqlDB, |
| 108 | AllowNativePasswords: true, |
| 109 | // re-use utility function to determine the Unix address in a |
| 110 | // Windows-friendly way. |
| 111 | Addr: proxy.UnixAddress(tmpDir, *mysqlConnName), |
| 112 | Net: "unix", |
| 113 | } |
| 114 | // Prepare the initial arguments |
| 115 | args := []string{"--unix-socket", tmpDir, *mysqlConnName} |
| 116 | // Add the IP type flag using the helper |
| 117 | args = AddIPTypeFlag(args) |
| 118 | // Run the test |
| 119 | proxyConnTest(t, args, "mysql", cfg.FormatDSN()) |
| 120 | } |
| 121 | |
| 122 | func TestMySQLMCPUnix(t *testing.T) { |
| 123 | if testing.Short() { |
nothing calls this directly
no test coverage detected