(t *testing.T)
| 40 | ) |
| 41 | |
| 42 | func requireMySQLVars(t *testing.T) { |
| 43 | switch "" { |
| 44 | case *mysqlConnName: |
| 45 | t.Fatal("'mysql_conn_name' not set") |
| 46 | case *mysqlUser: |
| 47 | t.Fatal("'mysql_user' not set") |
| 48 | case *mysqlPass: |
| 49 | t.Fatal("'mysql_pass' not set") |
| 50 | case *mysqlDB: |
| 51 | t.Fatal("'mysql_db' not set") |
| 52 | case *mysqlMCPConnName: |
| 53 | t.Fatal("'mysql_mcp_conn_name' not set") |
| 54 | case *mysqlMCPPass: |
| 55 | t.Fatal("'mysql_mcp_pass' not set") |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func mysqlDSN() string { |
| 60 | cfg := mysql.Config{ |
no outgoing calls
no test coverage detected